MongoDb 3.4 Replica set Fail after adding keyFile

161 views
Skip to first unread message

Bhargav Patel

unread,
Oct 30, 2017, 8:11:38 AM10/30/17
to mongodb-user
Hi,


I have created replicaset with mongodb which is working as expected after all i have re-install mongo and tried with authentication but it is not working. 

after adding 
       security:
           keyFile: path


After adding above line its always fail to restart. 

i have tried 400 and 600 permission. 

Here posting the log


mongod.service - SYSV: Mongo is a scalable, document-oriented database.
   Loaded: loaded (/etc/rc.d/init.d/mongod; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2017-10-30 15:18:23 PHT; 7s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 29434 ExecStop=/etc/rc.d/init.d/mongod stop (code=exited, status=0/SUCCESS)
  Process: 29492 ExecStart=/etc/rc.d/init.d/mongod start (code=exited, status=1/FAILURE)

Oct 30 15:18:23 localhost.localdomain systemd[1]: Starting SYSV: Mongo is a scalable, document-oriented database....
Oct 30 15:18:23 localhost.localdomain runuser[29499]: pam_unix(runuser:session): session opened for user mongod by (uid=0)
Oct 30 15:18:23 localhost.localdomain runuser[29499]: pam_unix(runuser:session): session closed for user mongod
Oct 30 15:18:23 localhost.localdomain mongod[29492]: Starting mongod: [FAILED]
Oct 30 15:18:23 localhost.localdomain systemd[1]: mongod.service: control process exited, code=exited status=1
Oct 30 15:18:23 localhost.localdomain systemd[1]: Failed to start SYSV: Mongo is a scalable, document-oriented database..
Oct 30 15:18:23 localhost.localdomain systemd[1]: Unit mongod.service entered failed state.
Oct 30 15:18:23 localhost.localdomain systemd[1]: mongod.service failed.





Thanks,
Bhargav

Kevin Adistambha

unread,
Nov 3, 2017, 12:47:05 AM11/3/17
to mongodb-user

Hi Bhargav

Could you post the relevant entries in the mongod logs? What you posted is the error from starting the service, which did not show why the service failed to start.

Also more information would be helpful:

Best regards
Kevin

Reply all
Reply to author
Forward
0 new messages