Mongo DB Troubleshooting

Useful commands to troubleshoot why Mongo DB is in an error state

Mongo Change Log
https://www.mongodb.com/docs/manual/release-notes/5.0/

Check for disk space

1
df -h

Check the version

1
mongod -version

Check the status of the running instance

1
systemctl status mongod

Check the log

1
sudo tail -50 /var/log/mongodb/mongod.log

Review the config

1
sudo nano /etc/mongod.conf

Restart the service

1
sudo service mongod restart