Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-74134

Calling plist_options is deprecated! Use service.require_root instead

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 6.0.2
    • Component/s: None
    • None
    • Server Development Platform
    • ALL
    • Hide

      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
      
      Show
      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

      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:

      Unable to find source-code formatter for language: terminal. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      ==> 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
      

      TLDR:

      plist_options should be replaced with service.require_root

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            riku.kallio.ext@konecranes.com Riku Kallio
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: