Results 1 to 3 of 3

Thread: Mongodb service won't start

  1. #1

    Default Mongodb service won't start


    I've installed mongodb and when I run:

    systemctl start mongod
    It will fail with

    Job for mongod.service failed because the control process exited with error code. See "systemctl status mongod.service" and "journalctl -xe" for details.
    Upon investigation it turns out that it can create the run pid in `/var/run/mongodb/` because the it can't create the mongodb dir.
    I created the dir by hand and made mongo the owner but every time I restart the system the dir will get deleted.

    Any idea why the dir get's removed?

  2. #2
    Join Date
    Jun 2008
    San Diego, Ca, USA
    Blog Entries

    Default Re: Mongodb service won't start

    Well, firstly
    Where did you get your mongodb?
    I just ran a test on a TW using mongodb installed from the server repository. Although you can go to, the following would install the repo
    zypper ar -f
    The name of the service is "mongodb.service" so if you're really trying to start "mongod.service" it should return non-existent.
    The following successfully starts mongodb
    systemctl start mongodb.service

  3. #3

    Default Re: Mongodb service won't start

    Thanks for the reply,

    I followed the instructions from here

    As I said in my initial post the service actually starts using `systemctl start mongodb` after I add the run folder.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts