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

Centos7 mongodb 3.07, 3.04, if pidfilepath is changed, service mongod start will freeze

    • Type: Icon: Bug Bug
    • Resolution: Incomplete
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.0.4, 3.0.7
    • Component/s: Admin
    • None
    • ALL
    • Hide

      Platform: centos 7.1
      mongodb version: 3.07 3.04
      mongodb repo: https://repo.mongodb.org/yum/redhat/7/mongodb-org/3.0/x86_64/RPMS/

      in /etc/mongod.conf
      pidfilepath=/var/run/mongodb/mongod_changed.pid
      selinux is stopped and pid file is writable by mongod

      run command: service mongod start

      Show
      Platform: centos 7.1 mongodb version: 3.07 3.04 mongodb repo: https://repo.mongodb.org/yum/redhat/7/mongodb-org/3.0/x86_64/RPMS/ in /etc/mongod.conf pidfilepath=/var/run/mongodb/mongod_changed.pid selinux is stopped and pid file is writable by mongod run command: service mongod start

      Centos7 mongodb 3.07, 3.04, if pidfilepath is changed, service mongod start will freeze, even if pidfilepath is writable.
      Platform: centos 7.1
      mongodb version: 3.07 3.04
      mongodb repo: https://repo.mongodb.org/yum/redhat/7/mongodb-org/3.0/x86_64/RPMS/

      in /etc/mongod.conf
      pidfilepath=/var/run/mongodb/mongod_changed.pid
      selinux is stopped and pid file is writable by mongod

      run command: service mongod start
      terminal stopped on and timeout at last but service actually was up

      [root@ec2-bj-uat-jdc-db01 site-cookbooks]# netstat -ntlop
      Active Internet connections (only servers)
      Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name     Timer
      tcp        0      0 127.0.0.1:27017         0.0.0.0:*               LISTEN      20885/mongod         off (0.00/0/0)
      
      [root@ec2-bj-uat-jdc-db01 site-cookbooks]# cat /var/run/mongodb/mongod_changed.pid
      20885
      

      tail log:

      2015-11-23T09:49:27.536+0000 I CONTROL  [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "127.0.0.1" }, processManagement: { fork: true, pidFilePath: "/var/run/mongodb/mongod_changed.pid" }, storage: { dbPath: "/var/lib/mongo" }, systemLog: { destination: "file", logAppend: true, path: "/var/log/mongodb/mongod.log" } }
      2015-11-23T09:49:27.542+0000 I NETWORK  [initandlisten] waiting for connections on port 27017
      

            Assignee:
            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            Reporter:
            jaywanglevelup Jay Wang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: