Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Replica Set Config #1

Open
sebysr opened this issue Jan 25, 2022 · 1 comment
Open

Invalid Replica Set Config #1

sebysr opened this issue Jan 25, 2022 · 1 comment

Comments

@sebysr
Copy link

sebysr commented Jan 25, 2022

From the master instance of MongoDb,
With this command: rs.status()
I got this:

{
	"ok" : 0,
	"errmsg" : "Our replica set config is invalid or we are not a member of it",
	"code" : 93,
	"codeName" : "InvalidReplicaSetConfig"
}

Could you help me?

@alefiori82
Copy link
Owner

You can remove the volume mongostatus and then restart the docker-compose file. In this way the rsconfig is re-executed. Otherwise you can connect to one instance of mongo and run the script mongo-setup.js you find in the folder mongo-setup). Please note that the initialization of the replica set takes at least one minute, thus do not interrupt any container in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants