MongoDB create user kills restart -


we use ansible installing mongodb, have problem installing mongodb (2.2 - old version, standard in our platform) on centos 6.x 64bit.

this playbook download mongodb-linux-x86_64-2.2.0.tgz file , extract /opt. add /etc/mongodb.conf , install init script. fine , can (re)start mongo service on provisioned machines.

but when create user in 'admin' database:

echo 'db.adduser("mongoadmin", "password");' | mongo admin 

it succeed, when restart mongodb, fail , keep failing. "played" auth = true option, keeps failing. not 'admin' database, 'local' or other newly created databases.

it worked until few weeks ago , don't know why. have on multiple machines, isn't related single machine.

what issue?


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -