[DOCS-1143] Add sharding FAQ for "mongos specified a different config database string" Created: 20/Feb/13  Updated: 29/Aug/13  Resolved: 21/Aug/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Critical - P2
Reporter: Stennie Steneker (Inactive) Assignee: Bob Grabar
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:
Days since reply: 10 years, 24 weeks, 6 days ago

 Description   

If a mongos tries to connect with a different config string (for example if hostnames changed from local to fully qualified names) an exception will be logged showing the old & new configuration string and " mongos specified a different config database string ":

Tue Feb 19 17:19:37 [conn1] warning: db exception when initializing on config:mongo-c1.sample.corp:27017,mongo-c2.sample.corp:27017,mongo-c3.sample.corp:27017, current connection state is { state: { conn: "", vinfo: "config:mongo-c1.sample.corp:27017,mongo-c2.sample.corp:27017,mongo-c3.sample.corp:27017", cursor: "(none)", count: 0, done: false }, retryNext: false, init: false, finish: false, errored: false } :: caused by :: 15907 could not initialize sharding on connection data/p1.sample.corp:27017,p2.sample.corp:27017,p3.sample.corp:27017,p4.sample.corp:27017 :: caused by :: mongos specified a different config database string : stored : mongo-c1:27017,mongo-c2:27017,mongo-c3:27017 vs given : mongo-c1.sample.corp:27017,mongo-c2.sample.corp:27017,mongo-c3.sample.corp:27017

This can be resolved either by restarting with the correct (old) config string or by restarting mongos/mongods to reflect the new config string.



 Comments   
Comment by auto [ 29/Aug/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-1143 DOCS-425 edits
Branch: master
https://github.com/mongodb/docs/commit/6e97fa8acc7aba0d7c48a353b47af797df6c795f

Comment by auto [ 29/Aug/13 ]

Author:

{u'username': u'bgrabar', u'name': u'Bob Grabar', u'email': u'bob.grabar@10gen.com'}

Message: DOCS-1143 DOCS-425 mongos troubleshooting

Signed-off-by: Sam Kleinman <samk@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/f5ddfc13811e26cc7fe302245b3ca89439650381

Comment by Bob Grabar [ 21/Aug/13 ]

I've created a new source/tutorial/troubleshoot-sharded-clusters doc
in parallel to the source/tutorial/troubleshoot-replica-sets doc
and put the info on "different config database string" there.

I also added DOCS-425 to the new troubleshoot-sharded-clusters doc.

Generated at Thu Feb 08 07:40:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.