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

后端 未结 2 2038
逝去的感伤
逝去的感伤 2020-12-14 23:10

I had to forcefully shutdown my Ubuntu system after it got hanged. Now I get this error while trying to run my Rails app.

Moped::Er         


        
2条回答
  •  不思量自难忘°
    2020-12-14 23:27

    Uninstall mongodb using

    sudo apt-get autoremove mongodb-*
    

    then install with

    apt-get install mongodb-server
    

    run mongo
    it will solve the problem

提交回复
热议问题