Ask Your Question
0

Mongo DB : Origin

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

Vivian Yang gravatar image

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

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
0

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

tmcgrath 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

Stats

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

Seen: 43 times

Last updated: Sep 27 '17