Mongo error: DBClientBase :: findN: transport error ()

I constantly encounter this error.

 DBClientBase::findN: transport error()

I searched for a problem and found that there are so many people who have encountered this problem but have not found the exact cause of this error. why does this error occur?

+5
source share
3 answers

This is probably due to a network error connecting to the mongod server, or the mongors cannot connect to the mongod.

The first thing to try is restarting mongod / s

+2
source

This also happens if the MongoDB server accepts only SSL encrypted connections. To do this, you need a MongoDB client compiled with SSL support.

: http://docs.mongodb.org/manual/tutorial/configure-ssl-clients/#connect-to-mongodb-instance-with-ssl-encryption http://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/

0

Mine was resolved by removing the SocketTimeOut parameter from the call ConnectionString::connect().

i.e.

pDBClientBase = cs.connect(strErr /*,2 */);
-1
source

All Articles