[SERVER-27291] Can't start mongod if there's no config server(csrs) connections are available Created: 06/Dec/16  Updated: 08/Feb/23  Resolved: 07/Dec/16

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

Type: Bug Priority: Major - P3
Reporter: 아나 하리 Assignee: Kelsey Schubert
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Operating System: ALL
Steps To Reproduce:

1) Setup sharded cluster (CSRS)
2) Insert some data to cluster
3) Take backup (snapshot or cold file copy backup) from one member
4) Shutdown all mongod and config server
5) Start mongod with backup data files without replication options

Participants:

 Description   

If there's no config servers (CSRS) are available, we can't start mongod even without replication configuration options.

I have seen the SERVER-23041. And My case is little bit different.
I want to start mongod as standalone with backup data (backup was taken from sharded cluster member). Mongodb is trying to initialize something on config server (old config server). But config server doesn't exist or host name is changed or not accessible at the time of recovery old backup copy.

Mongod print this message all the time, and refuse mongo client connection.

SHARDING [ShardingState initialization] Error initializing sharding state, sleeping for 2 seconds and trying again ...



 Comments   
Comment by Kelsey Schubert [ 07/Dec/16 ]

Thanks for confirming the issue is resolved.

Comment by 아나 하리 [ 07/Dec/16 ]

Hi Thomas.

Sorry. I didn't know this option. No problem with the option.
I have thought that both replication and sharding things are ignored when I unset replication option.

Thanks.

Comment by Kelsey Schubert [ 06/Dec/16 ]

Hi matt.lee,

Thanks for reporting this behavior. Would you please follow the steps on this page in our documentation, and confirm the issue is resolved? In particular, I think you may be missing step 6 in your process.

Kind regards,
Thomas

Generated at Thu Feb 08 04:14:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.