2 / 4
Mar 2024

Using a Mac M2, after installing Mongodb and trying to configure parameters for db and log am getting this error. Can anyone please help me with this? I used this command to check
" mongod --dbpath ~/data/db --logpath ~/data/log/mongodb/mongo.log --fork "

checked the logs " Failed to unlink socket file",“attr”:{“path”:“/tmp/mongodb-27017.sock”,“error”:“Permission denied”}} "

1 year later

@Anand Singh, Im also facing same issue, don’t see much info in log, did issue resolve, if yes what was the solution, please reply.

What are the permissions shown on that tmp sock file
How did you run the mongod
Full command and the user you ran can help investigating further