Unable to start service with error " ERROR: Cannot write pid file to /var/run/mongodb/mongod.pid: Success"

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Admin
    • None
    • ALL
    • Platforms F (01/29/16)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      CentOS 6.x
      mongodb 3.0.5

      I started my service manually using "mongod -f /etc/mongod.conf". I think this messed up permissions.

      However I reset permissions using "chown -R mongod:mongod /mongodb_data"

      However after this I am unable to start the service anymore. It fails with error message
      2016-01-06T08:20:19.867+0000 I CONTROL ***** SERVER RESTARTED *****
      2016-01-06T08:20:19.882+0000 I CONTROL ERROR: Cannot write pid file to /var/run/mongodb/mongod.pid: Success

      The pid file and director are present and are writeable by mongod

            Assignee:
            Ramon Fernandez Marina
            Reporter:
            Dharshan Rangegowda
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: