DEV Community

Discussion on: How to setup a MongoDB Replica set for development using Docker

Collapse
 
baayfaal profile image
baayfaal • Edited

Hi,
Thank you very much for this share. I'm trying to test it on my local environment but I have following error :

Error

Could you please advise ?

Regards
Pape

Collapse
 
sntnupl profile image
Santanu Paul

Hi Pape,

My guess is that the keyfile, which the mongo nodes will be using for authentication, is not created with proper file permissions. Kindly go through the steps as mentioned in the github repo and recreate the 'file.key'.

Both chmod and chown commands are important, and should not be skipped.

Hope this helps.

Santanu

Collapse
 
baayfaal profile image
baayfaal

Hi Santanu,

Tahnk you for you reply ! I'm on windows 10 and I will try to find how to do same on the file permission and ownership.

Regards,
Pape