Mongo Won’t Restart

MongoDB does not start after a reboot, sudo tail -10 /var/log/mongodb/mongod.log indicates

Failed to unlink socket file /tmp/mongodb-27017.sock Operation not permitted

To resolve the issue, run commands

sudo rm -f /tmp/mongodb-27017.sock
sudo systemctl restart mongod.service
sudo systemctl status mongod.service

Leave a Reply