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 on execute a "brew services start mongodb-community" command #607

Closed
RusselKL opened this issue Dec 19, 2023 · 4 comments
Closed

Error on execute a "brew services start mongodb-community" command #607

RusselKL opened this issue Dec 19, 2023 · 4 comments
Labels

Comments

@RusselKL
Copy link

Apparently there is an outdated script for mongodb-community formula. When you try to execute brew services start [email protected] command this happens:

==> Tapping homebrew/services
Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-services'...
remote: Enumerating objects: 2614, done.
remote: Counting objects: 100% (2614/2614), done.
remote: Compressing objects: 100% (1162/1162), done.
remote: Total 2614 (delta 1268), reused 2549 (delta 1258), pack-reused 0
Receiving objects: 100% (2614/2614), 682.52 KiB | 2.86 MiB/s, done.
Resolving deltas: 100% (1268/1268), done.
Tapped 1 command (45 files, 856.3KB).
Error: undefined method `plist_startup' for #<Formula mongodb-community (stable) /opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/mongodb-community.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:130:in `services'
/opt/homebrew/Library/Homebrew/brew.rb:86:in `<main>'

As you see it tries to find some plist_startup method and gives an error. I temporarily resolved this by commented this line in formula_wrapper.rb file, but I guess its not a solution))

@SMillerDev
Copy link
Member

The mongodb maintainers should update their formula. plist_startup has been removed from brew.

@MikeMcQuaid MikeMcQuaid closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2023
@tgfisher4
Copy link

Hi @SMillerDev! I'm happy to open an issue upstream, but can you clarify how the mongodb-community formulae need to be updated? Specifically, I am running into this issue with [email protected], but from what I can tell, its formula does not reference plist_startup at all.

Instead, the references to plist_startup I can find are in homebrew-services itself. In fact, from what I can tell, the error seems to be specifically caused by the lack of a plist_startup in the [email protected] formula:

Error: undefined method `plist_startup' for #<Formula [email protected] (stable) /opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/[email protected]>

If it helps color the issue at all, I am running into this issue after brew updateing to 4.2.0: is it possible this is caused by differing behavior between ruby 2.6 and ruby 3.1, or some other breaking change introduced in that update?

@dmoody256
Copy link

For those in this issue that may be interested the mongodb formula have been updated to work with homebrew 4.2.

@MikeMcQuaid
Copy link
Member

Thanks @dmoody256!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 20, 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

5 participants