Could not verify config servers were active and reachable before write

Source: Internet
Author: User

When you start MONGOs, config server configuration information must not use localhost, 127.0.0.1, or add other machine shard when the error message appears:
"Can ' t use localhost as a shard since all shards need to communicate. Either use all shards and configdbs on localhost or all in actual IPs host:xxxxx Islocalhost "

Start MONGOs with the new config server, and you will also need to restart Config server, otherwise there may be an error message:
"Could not verify config servers were active and reachable before write"

If the "MONGOs specified a different config database string" error occurs after the change, the Mongod also needs to be restarted,

Config server modified almost all instances to restart. Also, you must not use localhost, 127.0.0.1 when configuring replica set.
Reference: http://stackoverflow.com/questions/21226255/where-is-the-mongos-config-database-string-being-stored

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.