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

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

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

      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@mongodb.com Ramon Fernandez Marina
            Reporter:
            dharshanr@scalegrid.net Dharshan Rangegowda
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: