Toggle search
Search
Toggle menu
notifications
Toggle personal menu
Editing
MongoDB
(section)
From iFixWiki
Views
Read
Edit
View history
associated-pages
Page
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Issues = == MongoDB fails to start == When running the command ''sudo systemctl status mongod'' the MongoDB server will fail to start with the message (code=exited, status=62) '''Solution''' Attempt to repair the MongoDB installation by running the command: sudo mongod --repair If this command fails and it shows the error ''Data directory /data/db not found'' create the directory using this command: sudo mkdir -p /data/db Then restart mongodb: # sudo systemctl stop mongod # sudo systemctl start mongod # sudo systemctl status mongod == MongoDB fails to start immediately after installation == When running the command ''sudo systemctl start mongod'' an error will appear saying: Failed to start mongod.service: Unit mongod.service not found. '''Solution''' Enter the command: sudo systemctl enable mongod This will link the service and allow it to start.
Summary:
Please note that all contributions to iFixWiki are considered to be released under the Creative Commons Attribution Share Alike (see
IFixWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)