Back in September I updated my homebrew install of mongodb community from v4.2 to v5.0.21 on my M2 Max Mac (currently running macOS 14.1.1) and ever since then if I have to restart following an issue with my Mac (which will typically be a problem with DisplayLink Manager) monogodb-community fails to start properly
It seems to be some sort of permissions issue… at least I know that if I do the following steps it resolves the problem and mongodb then starts OK:
- delete /tmp/mongodb-27017.sock (when the issue occurs the owner of the file seems to end up being root/wheel instead of me/wheel)
- run
sudo chown -R $(whoami) $(brew --prefix)/* - run
brew services restart mongodb-community@5.0
But obviously it’s really annoying having to do this whenever the problem occurs so I’m just wondering if there’s something I can do to fix it?
I do have a snapshot of my mongodb.log from around the time the problem occurs to the point where I successfully get it restarted - but unfortunately as a new user here I don’t have permission to upload files in posts yet ![]()
One interesting thing I do notice is that in the logs it says ‘You are running this process as the root user, which is not recommended’ - but I’m not sure if a) this is the source of the problem or b) how to fix it if it is
Any help/recommendations gratefully received!