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

Server start error in SUSE Enterprise 12

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: Packaging
    • Environment:
      SLES 12
    • Operating System:
      Linux
    • Steps To Reproduce:
      Hide

      1. Install mongodb from zypper repository.
      2. # systemctl start mongod.service

      Show
      1. Install mongodb from zypper repository. 2. # systemctl start mongod.service

      Description

      Mongod can not start with error:
      I CONTROL ERROR: Cannot write pid file to /var/run/mongodb/mongod.pid: No such file or directory

      The mongodb was installed from zypper repository "http://repo.mongodb.org/zypper/suse/11/mongodb-org/3.0/x86_64/".

      This should be a rpm package issue, the rpm do not create /var/run/mongodb/ with the correct permission.

      So, the workaround is create /var/run/mongodb/ manually:

      1. mkdir -p /var/run/mongodb
      2. chown mongod:mongod /var/run/mongodb

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              mengzyou Mengzhe You
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: