"ErrMsg": "Our replica set config was invalid or we are not a member of it"

Source: Internet
Author: User

View replica set status, error:

> Rs.status ();
{
"State": 10,
"Statestr": "Removed",
"Uptime": 93,
"Optime": Timestamp (1478239977, 594),
"Optimedate": Isodate ("2016-11-04t06:12:57z"),
"OK": 0,
"ErrMsg": "Our replica set config was invalid or we are not a member of it",
"Code": 93
}

View the log and discover:

2016-11-07t14:43:25.497+0800 W REPL [replicationexecutor] Local replica Set configuration document reports set name of Myreplset, but command line reports Myreplicate; waitng for reconfig or remote heartbeat

I started the MONGO command before:/usr/local/mongodb/bin/mongod--config/usr/local/mongodb/bin/mongod.cnf--repliset MyReplset

This command is:/usr/local/mongodb/bin/mongod--config/usr/local/mongodb/bin/mongod.cnf--repliset MyReplicate

So two times the specified replica set name is inconsistent, resulting in an error.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.