Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-25748

mongod fails to start with the default systemd service file

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Packaging
    • Labels:
      None
    • ALL
    • Hide

      1. install mongod 3.2 on ubuntu xenial (16.04)
      2. systemctl start mongod
      3. check /var/log/mongodb/mongod.log for the error

      Show
      1. install mongod 3.2 on ubuntu xenial (16.04) 2. systemctl start mongod 3. check /var/log/mongodb/mongod.log for the error

      Using the default systemd service file, either from the deb package or from the documentation[1] results in a fatal assertion (attached log).

      However, adding the following in the systemd service file, under [Service]:

      Type=forking

      makes it start up without any issues.

      I'm guessing it should be added by default?

      [1] - https://docs.mongodb.com/master/tutorial/install-mongodb-on-ubuntu/

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            emilburzo Emil Burzo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: