This is the one that did it for me: sudo chown mongodb:mongodb /tmp/mongodb-27017.sock

The mongodb user is mongodb, and the sock file was owned by root.

1 Like