Mongodb not working
Introduction
In open edx if you are facing error in login either in lms or cms, or having any type of error regarding fetching data go to your edx log and if you find error like below then the problem is that your mongo server may not working.
ConnectionFailure at /home/
[Errno 111] Connection refused
Request Method: GET
Django Version: 1.4.20
Exception Type: ConnectionFailure
Exception Value: [Errno 111] Connection refused
Exception Location: /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pymongo/mongo_client.py in __init__, line 369
Python Executable: /edx/app/edxapp/venvs/edxapp/bin/python
Python Version: 2.7.3
Solution
You need to check either your mongo server is running or not.
sudo systemctl status mongod.service
If you see inactive then try to restart the mongodb server.
sudo systemctl restart mongod.service