Ask Your Question

Mongo DB : Origin

asked 2017-09-27 04:52:58 -0500

Vivian Y gravatar image

updated 2017-09-27 15:16:26 -0500

metadaddy gravatar image

Getting this error as below while try to read from mongo.

MongoDB 1
CONTAINER_0701 - Stage 'MongoDB_01' initialization error: com.mongodb.MongoInterruptedException: Interrupted while waiting for a server that matches ReadPreferenceServerSelector{readPreference=ReadPreference{name=secondaryPreferred}}

What is the caused and how i can solve this? I try to connect using roboMongo and i have no issues in it.

Thanks & Regards

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-01-16 13:58:30 -0500

todd gravatar image

Not sure of your Mongo environment, but you could try adjusting the default setting of "Read Preference" to something other than Secondary Preferred.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-09-27 04:52:58 -0500

Seen: 951 times

Last updated: Sep 27 '17