Answers for "MongoDB.service failed with result exit-code"

0

start mongod Failed with result 'exit-code'

$ sudo rm -rf /tmp/mongodb-27017.sock
$ sudo service mongod start
Posted by: Guest on September-08-2021
0

mongodb active failed (result exit-code)

chown -R mongodb:mongodb /var/lib/mongodb
chown mongodb:mongodb /tmp/mongodb-27017.sock
Posted by: Guest on August-14-2021
0

mongod.service: Failed with result 'exit-code'.

chown -R mongodb:mongodb /var/lib/mongodb
chown mongodb:mongodb /tmp/mongodb-27017.sock
Posted by: Guest on October-01-2021
0

MongoDB.service failed with result exit-code

# MongoDB.service failed with result exit-code
# check permissions below directories using cmd:
	ls -l

# directories checklist:
	/var/lib/mongodb
	/var/log/mongodb
	/tmp/mongodb-27017.sock

# Above directories must have prmsn mongodb:mongodb if not below cmd:
 	chown -R mongodb:mongodb 
 	
    #(-R) for recursive dir,  if file remove it

# if all have same permission then its good
	
    sudo service mongod start

# if not same then remove it ... 
 	
    sudo rm -rf /file_or_folder_name/

###  start with below comands

sudo service mongod start
sudo service mongod status
Posted by: Guest on February-18-2022

Code answers related to "MongoDB.service failed with result exit-code"

Browse Popular Code Answers by Language