Search code examples
mongodbhomebrewmacos-monterey

Trouble running MongoDB server on macOS Monterey 12.0.1


I've installed MongoDB through Homebrew and when I start the server using brew services start mongodb-community (or mongodb-community@5.0) command it immediately fails and turn the brew services list to error!

I already tried giving permission - using Rosetta to install and run - etc. but ended up with the same error.

The only thing I don't know how do (which might potentially work) is to change the directory of MongoDB, but I am not sure that could be a solution or not!


Solution

  • Unloading and loading launchctl solved the permission issue.