Results 1 to 3 of 3

Thread: Mongodb service won't start

  1. #1

    Default Mongodb service won't start

    Hi,

    I've installed mongodb and when I run:

    Code:
    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/mongodb.pid` 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
    Location
    San Diego, Ca, USA
    Posts
    11,405
    Blog Entries
    2

    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 http://software.opensuse.org, the following would install the repo
    Code:
    zypper ar -f http://download.opensuse.org/repositories/server:/database/openSUSE_Factory/ http-download.opensuse.org-934d7ca7
    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
    Code:
    systemctl start mongodb.service
    TSU

  3. #3

    Default Re: Mongodb service won't start

    Thanks for the reply,

    I followed the instructions from here https://docs.mongodb.org/master/tuto...ongodb-on-suse

    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
  •