I’ve installed MongoDB on my Mac using the documentation on the MongoDB site. When I go to start the server this is the message I am getting.
harry11@MacBook-Pro local % brew services start mongodb-community@7.0
Bootstrap failed: 5: Input/output error Try re-running the command as root for richer errors. Error: Failure while executing; /bin/launchctl bootstrap gui/503 /Users/harry11/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist
exited with 5. harry11@MacBook-Pro local %
then I tried with SUDO
harry11@MacBook-Pro ~ % sudo brew services start mongodb-community@7.0 Password: Warning: Taking root:admin ownership of some mongodb-community paths: /usr/local/Cellar/mongodb-community/7.0.12/bin /usr/local/Cellar/mongodb-community/7.0.12/bin/mongod /usr/local/opt/mongodb-community /usr/local/opt/mongodb-community/bin /usr/local/var/homebrew/linked/mongodb-community This will require manual removal of these paths using sudo rm
on brew upgrade/reinstall/uninstall. Warning: mongodb-community must be run as non-root to start at user login! Bootstrap failed: 5: Input/output error Error: Failure while executing; /bin/launchctl bootstrap system /Library/LaunchDaemons/homebrew.mxcl.mongodb-community.plist
exited with 5.
See above details on both attempts at starting the DB server on my Mac