2 / 12
Mar 2022

I am having a problem updating mongodb. It was first version 4.2.8 (If I recall correctly). Mongodb @5.0.6 is my current version and it has been updated but I cannot start the services with Homebrew.

Similar Problem, but this user’s problem did not include an error 3854, still I followed the solution and it still isn’t resolved. Below is an image of my terminal:

Check permissions on that file
ls -ls /tmp/mongodb-27017.sock

Do you have any other mongod running?
ps -ef|grep mongod
stop all mongod
Try to change permissions (it should be owned by mongod)

So after removing the file how did you start mongod?
ps -ef |grep mongod will show only those started manually from command line

Just issue mongo and see if you can connect to default mongod running from your service

When you run mongod without any parameters it will try to start on default port 27017 and default dirpath / data/db
Since dir is missing it failed to start
Follow the error message-create the missing dir or give alternate path where mongod can write
What was the result if you try to start from service after deleting .sock file?

4 months later

I ran into a similar error and ended up resolving by starting mongod with a --dbpath option

mongod --dbpath ~/data/db
9 months later

I can’t make the service to run, I restarted services, uninstalled and installed back… Can make it work. im a Mac user