brew services to launch
mongodb-community on my M1 Mac. However, I’m getting an error
Operation timed out when trying to run
mongo or connect to it on a different machine.
brew services ls it is
started, and doesn’t look to have any errors.
mongod --config /opt/homebrew/etc/mongod.conf and trying to connect again, it works fine.
When looking at the
Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist file everything looks correct:
... <key>ProgramArguments</key> <array> <string>/opt/homebrew/opt/mongodb-community/bin/mongod</string> <string>--config</string> <string>/opt/homebrew/etc/mongod.conf</string> </array> ...
This problem started to happen after I tried to copy the data folder to an external hard drive.
For reference my
/opt/homebrew/etc/mongod.conf file looks like:
systemLog: destination: file path: /opt/homebrew/var/log/mongodb/mongo.log logAppend: true storage: dbPath: /Volumes/Drive13_A/mongodb net: bindIp: 0.0.0.0
Any ideas about why it would fail when using
brew services but not