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?
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
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/
Mine was resolved by removing the SocketTimeOut parameter from the call ConnectionString::connect().
ConnectionString::connect()
i.e.
pDBClientBase = cs.connect(strErr /*,2 */);