Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4581

Calling plist_options is deprecated! Use service.require_root instead

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      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 

            Assignee:
            Unassigned Unassigned
            Reporter:
            riku.kallio.ext@konecranes.com Riku Kallio
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: