EdX connection error MongoDB 111

When I try to log into edX Studio, I always get an error message:

ConnectionFailure at /home/ [Errno 111] Connection refused Request Method: GET Request URL: http://localhost:8001/home/ 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 

I did my due diligence on Google and did the following:

 sudo rm /var/lib/mongodb/mongod.lock sudo mongod --repair sudo service mongodb start 

and all its options, and nothing did the trick.

Can someone help me please? Thanks for reading.

EDIT: An error occurs when I try to login to edX Studio via: staff@example.com EDX

I get a message about successful login on the server, but right after that I get this error.

+7
mongodb edx
source share
3 answers

This did the trick:

 sudo rm /edx/var/mongo/mongodb/mongod.lock sudo -u mongodb mongod --dbpath /edx/var/mongo/mongodb --repair --repairpath /edx/var/mongo/mongodb sudo start mongodb 

I got this from this site, many thanks to the author. In my case, the last line was:

 sudo start mongod 

without a โ€œbโ€ at the end.

Thank you all for your efforts!

UPDATE:

If you get this error sudo: /etc/init.d/mongod: command not found when running the script on Ubuntu 16.04. host, try the following command:

 sudo rm /edx/var/mongo/mongodb/mongod.lock && sudo mongod -repair --config /etc/mongod.conf && sudo chown -R mongodb:mongodb /edx/var/mongo/. && sudo systemctl start mongod.service 

This is the same as the last, except that the one-liner and the last part are replaced by the start.txt command.

+20
source share

This set of commands solved my problem (similar to the Vedran solution):

 sudo rm /edx/var/mongo/mongodb/mongod.lock sudo mongod -repair --config /etc/mongod.conf sudo chown -R mongodb:mongodb /edx/var/mongo/. sudo service mongod start 

This always happens when you shut down your computer with a running machine. Therefore, my recommendation is to perform a โ€œroaming stopโ€ before shutting down the host machine.

+4
source share

Run these commands in the tramp

 sudo rm /edx/var/mongo/mongodb/mongod.lock sudo service mongod start 
0
source share

All Articles