Question

Can't start MongoDB

Not even sure where to start. I am following the guide at:

https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-18-04

But when I get to Step 2, I enter sudo systemctl status mongodb and receive this result:

##################################
mongodb.service - An object/document-oriented database
   Loaded: loaded (/lib/systemd/system/mongodb.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2020-01-16 22:17:06 UTC; 2 weeks 5 days ago
     Docs: man:mongod(1)
 Main PID: 6859 (code=exited, status=100)

Jan 16 22:17:06 HothBase systemd[1]: Started An object/document-oriented database.
Jan 16 22:17:06 HothBase systemd[1]: mongodb.service: Main process exited, code=exited, status
Jan 16 22:17:06 HothBase systemd[1]: mongodb.service: Failed with result 'exit-code'.
####################################

Help!


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @raphaelrashkin,

IF you try and start the mongodb, are there any errors generated or shown?

The command to start it should be

service mongodb start
or
systemctl start mongodb

If there aren’t any errors, then great, if there are, please do provide them here.

To see all the errors if starting fails, just type in

journalctl -xe

Looking forward to your next reply

Regards, KDSys