Mongodb will do nothing

I am not a mongoDB expert and I tried to modify the conf file to activate authentication. This eventually led to mongoDB getting completely stuck:

  • My node.js apps (using mongoose) cannot connect to mongo
  • If I use the mongo shell and try to type some basic stuff like "show dbs", I always have an answer that looks like this:

root @ *: ~ # mongo

MongoDB shell version: 1.6.3

Mon Jan 21 12:46:26 * warning: spider monkey build without utf8 support. consider rebuilding with utf8 support

connection to: test

show dbs

assert failed : listDatabases failed:{
    "assertion" : "unauthorized db:admin lock type:-1 client:127.0.0.1",
    "assertionCode" : 10057,
    "errmsg" : "db assertion failure",
    "ok" : 0
}

Mon Jan 21 12:46:33 uncaught exception: assert failed : listDatabases failed:{
    "assertion" : "unauthorized db:admin lock type:-1 client:127.0.0.1",
    "assertionCode" : 10057,
    "errmsg" : "db assertion failure",
    "ok" : 0

      

Things I've tried:

  • Going to mongo conf file to deactivate authentication (and restart mongo and even my server)

PS: Sorry for the formatting, I can't figure out how to do this correctly.

+3


source to share


1 answer


Ok I tried to completely uninstall mongo and back up everything. I was actually on an old version of mongo and found out there is another package (http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/).



I installed this, re-created my users and that's it, and it ended well.

0


source







All Articles