Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: undefined method plist_startup when starting v2ray-core with brew services #644

Closed
clintaire opened this issue Apr 17, 2024 · 1 comment
Labels

Comments

@clintaire
Copy link

I am encountering a persistent issue when attempting to start the v2ray-core service using Homebrew services. Despite ensuring that my Homebrew installation is up to date and checking the formula for any incorrect or deprecated method references, the error continues to occur.

Steps to Reproduce:

  1. Attempt to start v2ray-core using Homebrew services:
    brew services start v2ray/v2ray/v2ray-core
    
  2. Receive the following error message:
    Error: undefined method `plist_startup' for #<Formula v2ray-core (stable) /opt/homebrew/Library/Taps/v2ray/homebrew-v2ray/Formula/v2ray-core.rb>
    Did you mean?  plist_name
    /opt/homebrew/Library/Taps/homebrew/homebrew-services/lib/service/formula_wrapper.rb:71:in `service_startup?'
    /opt/homebrew/Library/Taps/homebrew/homebrew-services/lib/service/services_cli.rb:280:in `service_load'
    /opt/homebrew/Library/Taps/homebrew/homebrew-services/lib/service/services_cli.rb:122:in `block in start'
    /opt/homebrew/Library/Taps/homebrew/homebrew-services/lib/service/services_cli.rb:97:in `each'
    /opt/homebrew/Library/Taps/homebrew/homebrew-services/lib/service/services_cli.rb:97:in `start'
    /opt/homebrew/Library/Taps/homebrew/homebrew-services/lib/service/commands/start.rb:12:in `run'
    /opt/homebrew/Library/Taps/homebrew/homebrew-services/cmd/services.rb:139:in `run'
    /opt/homebrew/Library/Homebrew/brew.rb:89:in `<main>'
    

What I Have Tried:

  • Updating Homebrew and all related services.
  • Checking and editing the v2ray-core formula to ensure no outdated methods like plist_startup are referenced (none were found).
  • Unlinking and relinking the v2ray-core.
  • Attempting to start the service after ensuring no conflicts with other formulas.

Expected Result:
v2ray-core should start without errors and be managed by Homebrew services.

Actual Result:
The service fails to start due to an undefined method error related to plist_startup.

Additional Information:

  • Homebrew version: (output of brew --version)
  • macOS version: (output of sw_vers)
  • Output of brew doctor

I would appreciate any insights into why this error is occurring and any potential fixes or workarounds. It seems possible that there might be an issue with how Homebrew services are interpreting the formula or a bug in the services management script.

@SMillerDev
Copy link
Member

This needs to be fixed by the developers of the formula, they are using outdated methods

@SMillerDev SMillerDev closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants