Hi there I am trying to start the Mongo db community 6.0 on my mac mini OS 12.5.1 but it's showing the error any help is appreciated

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

I had this when upgrading from 4.4 to 5.0 and I suspect it’s similar for you.

  1. check your mongo log, e.g.
vi /usr/local/var/log/mongodb/mongo.log
  1. 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/*
  1. Roll back to your previous working version of mongo (e.g. 5.x)

  2. Start Mongo 5

  3. Start a Mongo Shell and type

db.adminCommand( { setFeatureCompatibilityVersion: "5.0" } ) 
  1. Check the logs to verify the database has detected 5.0

  2. Uninstall 5.x

  3. Re-install 6.x

It should now work?

This topic was automatically closed after 180 days. New replies are no longer allowed.