Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

error during global initialization mongodb

==> check /var/log/mongodb and /var/lib/mongodb for mongondb with (user==>mongodb) and the permissions.

sudo chown mongodb:mongodb /var/log/mongodb/mongod.log
sudo chown mongodb:mongodb /var/lib/mongodb/*

==> then start/restart the mongod service

sudo service mongod start
sudo service mongod restart

Source by dba.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #error #global #initialization #mongodb
ADD COMMENT
Topic
Name
9+6 =