Report this

What is the reason for this report?

Can't start MongoDB

Posted on February 5, 2020

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!



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!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.