Cannot Start mongodb-community

Hello guys,

I have solved the problem.

When the error was error 3584, what I did was to delete the 27017.sock file as you have said before.
I did this using these commands one by one; (I’m sure there are easier ways but I wanted to see everything clearly.)

macbook@SamsMacbook ~ % cd /tmp
macbook@SamsMacbook /tmp % ls -a
macbook@SamsMacbook /tmp % sudo rm mongodb-27017.sock

And then restarted the mongo.

macbook@SamsMacbook ~ % brew services restart mongodb-community

I saw this error when I check if it is working properly or not.

macbook@SamsMacbook ~ % brew services list
Name              Status       User File
mongodb-community error  25600 root ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist

I have learned that this is caused because of the .conf file details. How to reach it? Easy.

macbook@SamsMacbook ~ % open /usr/local/etc/mongod.conf

The file includes some code like this;

systemLog:
  destination: file
  path: /usr/local/var/log/mongodb/mongo.log
  logAppend: true
storage:
  dbPath: /usr/local/var/mongodb
net:
  bindIp: 127.0.0.1, ::1
  ipv6: true

See if there is different than the one I shared above. My dbPath was empty. I changed it to the default value I found in the internet.

dbPath: /usr/local/var/mongodb

And then, we command

brew services restart mongodb-community

That’s all folks! These are the solutions for error 3584 and error 25600 in Mongo.

Thanks @Doug_Duncan and @Ramachandra_Tummala

2 Likes