Saturday, January 04, 2014

Moped::Errors::ConnectionFailure (Could not connect to any secondary or primary nodes for replica set)

Solution:

For this error we need to remove mongod.lock first and for that use below command for remove that  and also restart server

sudo rm /var/lib/mongodb/mongod.lock
sudo service mongodb start
If you want to restart service then do it:
sudo service mongodb restart
Reactions:

0 comments:

Post a Comment