V
V
vk222019-01-22 14:58:39
MongoDB
vk22, 2019-01-22 14:58:39

Can't run MongoDB on Ubuntu 16. What to do?

Friends, help!
I just can’t run MongoDB on Ubuntu 16. I’ve been struggling all morning ((( I tried different versions of Mongo. As a result, now it’s like this:

mongo -version
MongoDB shell version v4.0.5
git version: 3739429dd92b92d1b0ab120911a23d50bf03c412
OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016
allocator: tcmalloc
modules: none
build environment:
    distmod: ubuntu1604
    distarch: x86_64
    target_arch: x86_64

/etc/systemd/system/mongodb.service
[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target

[Service]
User=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf

[Install]
WantedBy=multi-user.target

but sudo service mongod status
gives:
mongod.service - MongoDB Database Server
   Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2019-01-22 11:43:31 UTC; 12min ago
     Docs: https://docs.mongodb.org/manual
  Process: 24207 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=1/FAILURE)
 Main PID: 24207 (code=exited, status=1/FAILURE)

Jan 22 11:43:31 mahumach systemd[1]: Started MongoDB Database Server.
Jan 22 11:43:31 mahumach systemd[1]: mongod.service: Main process exited, code=exited, status=1/FAILURE
Jan 22 11:43:31 mahumach systemd[1]: mongod.service: Unit entered failed state.
Jan 22 11:43:31 mahumach systemd[1]: mongod.service: Failed with result 'exit-code'.

Tell me what to do! Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question