[CDRIVER-4581] Calling plist_options is deprecated! Use service.require_root instead Created: 17/Feb/23  Updated: 18/Feb/23  Resolved: 18/Feb/23

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: Riku Kallio Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2023-02-17 at 12.33.55.png    
Issue Links:
Duplicate
duplicates SERVER-74134 Calling plist_options is deprecated! ... Closed

 Description   

Summary

This is considering the brew package of mongodb (https://github.com/mongodb/homebrew-brew).

I consider this a Critical bug, since you mongodb manual is proposing to use home brew to install mongodb on mac os x: https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/  

 

After updating to the latest version of brew (4.0.0 https://brew.sh/2023/02/16/homebrew-4.0.0/) mongodb does not start.

 

Running 

brew services start mongodb-community

 

 

gives out the following error:

 

==> Downloading https://formulae.brew.sh/api/formula.jsonWarning: Calling plist_options is deprecated! Use service.require_root instead.
Please report this issue to the mongodb/brew tap (not Homebrew/brew or Homebrew/homebrew-core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/mongodb/homebrew-brew/Formula/mongodb-community.rb:55Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors. 

 

 

What this means, is that all the calls to plist_options are deprecated and should be changed to service.require_root

Environment

OS: MacOS Monterey 12.6

MongoDB community version: 6.0

installed through command

brew install mongodb-community@6.0

How to Reproduce

Upgrade or install latest homebrew 

brew update

or

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install mongo with brew

 

brew tap mongodb/brew
brew update
brew install mongodb-community@6.0

 

Start mongo (this is where the error comes)

brew services start mongodb-community@6.0

Additional Background

plist_options should be replaced with service.require_root 



 Comments   
Comment by Riku Kallio [ 17/Feb/23 ]

Ok Apparently you have to submit to SERVER project. I'm sorry for this. You guys can delete this (I think I don't have the rights to do it), I've already made another ticket in the SERVER project: https://jira.mongodb.org/browse/SERVER-74134

Comment by Riku Kallio [ 17/Feb/23 ]

For reference: Two days ago a user wppoland reported an issue to homebrew, and they directed them to post an issue to mong: https://github.com/Homebrew/brew/issues/14641

Comment by Riku Kallio [ 17/Feb/23 ]

Woops, wrong project (this is not supposed to be in C driver)

 

However, I did not find a suitable project for things belonging to Brew package. Do you have a project for that or where do I report issues with that project?

Generated at Wed Feb 07 21:21:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.