MongoDB does not start after a reboot, sudo tail -10 /var/log/mongodb/mongod.log indicates
1 | Failed to unlink socket file /tmp/mongodb-27017.sock Operation not permitted |
To resolve the issue, run commands
1 2 3 | sudo rm -f /tmp/mongodb-27017.sock sudo systemctl restart mongod.service sudo systemctl status mongod.service |