Getting this error while starting mongo db community 6.0 on my mac mini.
Failure while executing; /bin/launchctl bootstrap gui/502 /Users/niravvachhani/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist
exited with 5.
brew services start mongodb-community@6.0 used this comman.
Check your mongod.log
It may give more details on why it is failing to start
Rob_Wilson
(Rob Wilson)
November 16, 2022, 8:41pm
#3
I had this when upgrading from 4.4 to 5.0 and I suspect it’s similar for you.
check your mongo log, e.g.
vi /usr/local/var/log/mongodb/mongo.log
Look for any errors relating to file/directory permissions and fix those, e.g. though I’m not quite sure whether ‘wheel’ or ‘admin’ is right.
sudo chown yourloginname:wheel thedirectory/*
Roll back to your previous working version of mongo (e.g. 5.x)
Start Mongo 5
Start a Mongo Shell and type
db.adminCommand( { setFeatureCompatibilityVersion: "5.0" } )
Check the logs to verify the database has detected 5.0
Uninstall 5.x
Re-install 6.x
It should now work?
system
(system)
Closed
March 29, 2023, 3:37am
#4
This topic was automatically closed after 180 days. New replies are no longer allowed.