2 / 2
Aug 2024

I installed mongodb via brew and when I try to start the mongo process brew services start mongodb/brew/mongodb-community and I try to see the services list brew services list I see the process is under error:

mongodb-community error 4 root ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist

This is my config file:

systemLog: destination: file path: /usr/local/var/log/mongodb/output.log logAppend: true storage: dbPath: /usr/local/var/mongodb net: port: 27017 bindIp: 127.0.0.1, ::1 ipv6: true

The log file is currently empty.

1 month later

You have an m1 macbook?
I have an m1pro and I’m having this problem too. The thing is that the terminal was run through rosetta 2 because of this homebrew and mongodb were installed incorrectly.
I had to uninstall mongodb and homebrew first.
The terminal should be started without rosetta 2.
After that you can install homebrew and mongodb and it worked.

Found the solution here https://www.reddit.com/r/mongodb/comments/w5p352/trouble_with_apple_silicon/