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

Mongod service not starting after updating config with yaml format

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: Admin
    • None
    • ALL

      I am running mongod version 3.0 currently i am going to post my mongod.conf and the error i am getting. I am using the default mongod script that comes with the rpm with no changes being made. All the permissions are correct from what i see. Not getting a permissions error.

      [root@ctsnapmongodev01 ~]# cat /etc/mongod.conf
      # mongod.conf
      storage:
          dbPath: "/data/db"
      systemLog:
          path: "/var/log/mongodb/mongod.log"
          logAppend: true
      processManagement:
          pidfilepath=/var/run/mongodb/mongod.pid
          fork: true
      net:
          bindIp: 127.0.0.1
          port: 27018
      sharding:
         clusterRole: shardsvr
      replication:
         oplogSizeMB: 1024
      }'
      

      Error:

      Sep 16 13:56:43 ctsnapmongodev01.surveysampling.com runuser[7372]: pam_unix(runuser:session): session opened for user mongod by (uid=0)
      Sep 16 13:56:43 ctsnapmongodev01.surveysampling.com runuser[7372]: pam_unix(runuser:session): session closed for user mongod
      Sep 16 13:56:43 ctsnapmongodev01.surveysampling.com mongod[7366]: Starting mongod: [FAILED]
      Sep 16 13:56:43 ctsnapmongodev01.surveysampling.com systemd[1]: mongod.service: control process exited, code=exited status=1
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            dsrakkar Dharminder Singh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: