[SERVER-10737] could not verify that config servers are in sync Created: 11/Sep/13  Updated: 10/Dec/14  Resolved: 15/Jan/14

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 2.4.1
Fix Version/s: None

Type: Question Priority: Critical - P2
Reporter: dongweiming Assignee: David Hows
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 12.04 LTS 3.2.0-23-generic x86_64 x86_64


Issue Links:
Related
is related to DOCS-2124 Document steps to recover when config... Closed
Participants:

 Description   

I want to test the fragmentation and under mongodb replication set functions, config server has three: port 27021,27022,27023 . I also tested when the config server down what will happen. after test is complete .I start three config server , when I start mongos like this :

  1. mongos --configdb social-11:27021,social-11:27022,social-11:27023 --port 40000

I got this error:

Wed Sep 11 14:04:05.705 [mongosMain] MongoS version 2.4.6 starting: pid=27636 port=40000 64-bit host=bj-social-11 (--help for usage)
Wed Sep 11 14:04:05.705 [mongosMain] git version: b9925db5eac369d77a3a5f5d98a145eaaacd9673
Wed Sep 11 14:04:05.705 [mongosMain] build info: Linux ip-10-2-29-40 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49
Wed Sep 11 14:04:05.706 [mongosMain] options:

{ configdb: "social-11:27021,social-11:27022,social-11:27023", port: 40000 }

Wed Sep 11 14:04:05.735 [mongosMain] warning: config servers social-11:27021 and social-11:27023 differ
Wed Sep 11 14:04:05.738 [mongosMain] warning: config servers social-11:27021 and social-11:27023 differ
Wed Sep 11 14:04:05.740 [mongosMain] warning: config servers social-11:27021 and social-11:27023 differ
Wed Sep 11 14:04:05.742 [mongosMain] warning: config servers social-11:27021 and social-11:27023 differ
Wed Sep 11 14:04:05.742 [mongosMain] ERROR: could not verify that config servers are in sync :: caused by :: config servers social-11:27021 and social-11:27023 differ
chunks: "03e366169519413a151a30ec70f2e87b" chunks: "03e366169519413a151a30ec70f2e87b"
databases: "a374f6b9385551520d0132ce09e5e442" databases: "b0a287b335f0ecb537855003acf5dfce"
Wed Sep 11 14:04:05.742 [mongosMain] configServer connection startup check failed

please tell me how to solve it? thanks



 Comments   
Comment by David Hows [ 21/Oct/13 ]

Hi dongweiming,

From that error message it appears that the configs servers social-11:27021 and social-11:27023 have different content within the config.databases collection.

You will need to manually clone the contents of social-11:27021 onto social-11:27023.

You can do this by:

  1. Stop the two config servers; social-11:27021 and social-11:27023
  2. Issue a command to copy the whole dbpath of social-11:27021 into the location of social-11:27023
  3. Start the two config servers again
  4. Start a MongoS and confirm if the errors have cleared up.

Regards,
David

Generated at Thu Feb 08 03:23:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.