I am facing this error continuously.
DBClientBase::findN: transport error()
I searched the problem and found that there are so many people who faced this problem but didn't find exact reason of this error.
why this error is coming ?
This is probably due to a network error connecting to the mongod server or a mongos cannot connect to the mongod.
The first thing to try in here is to restart the mongod/s
This also occurs if the MongoDB server only accepts SSL encrypted connections. For that you need a MongoDB client compiled with SSL support.
Further readings:
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 SocketTimeOut parameter from the ConnectionString::connect() call.
i.e.
pDBClientBase = cs.connect(strErr /*,2 */);
Related
I update data in mongodb with robo3t and get error: "Network error while attempting to run command 'getlasterror' on host.."
Has anybody got ideas about this?
Check whether you're connected to the primary.
I was having the same issue moments ago and it turned out I had a typo in the domain name of the database server, so I had inadvertently hit the load balancer and reached a non-primary replica.
Has any of your experienced and solved this issue on MongoDB where in it shows this error when connecting to the DB through the Mongo shell
DNSHostNotFound: Failed to look up service "":No records found for given DNS query. try 'mongo --help' for more information
I have the mongo added into the path, unfortunately this is blocking me from continuing to use MongoDB Atlas.
From the error it seems that the srv connection string is not being resolved.
Could you try to connect using the standard connection string.
Trying to setup ssl connection to my server every file path seems to be right
but keeping get error SSL connection error: SSL_CTX_set_default_verify_paths failed what this may be?
I had a similar issue and was able to fix the issue by changing my pem files to utf-8 encoding and that resolved the problem.
I tried setting up MongoDB for the first time and I got this error - I recently changed my DNS so I'm not sure if it's related to that. Any ideas what this might mean?
I was following a tutorial on YouTube (Video Here: https://www.youtube.com/watch?v=MIByvzueqHQ). I've seen other entries/issues similar to my one but I believe it might be different. People have said it may be ownership problems. I haven't seen one that says Connection refused - so I will change my DNS back and see if that does anything.
MongoDB shell version v4.0.9
connecting to:
mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb`
2019-07-30T16:14:05.184+1000 E QUERY
`[js] Error: couldn't connect to server 127.0.0.1:27017`,
connection attempt failed: SocketException: Error connecting to `127.0.0.1:27017` :: caused by ::
Connection refused :
`connect#src/mongo/shell/mongo.js:343:13#(connect):2:6
exception: connect failed`
I expected it to start MongoDB so I could give it a test run. This was the only error I saw.
This can happen when the mongodb service is not running on the mac.
To start it, try this:
brew services start mongodb
I'm getting this error when I try to connect to my mongolab DB.
I saw some different topics talking about this issue, but solutions they gave was:
-Add mongoDB exception in my firewall. I done it without result
-Check if I was using the mongolab.com user and password instead of the user database. That's not the problem, even I created new users.
-Check if my version of mongoDB was older than the version used by mongolab (3.x). I also specified the auth system in the command to be sure.
I tried all those answers without success. I also checked the connection with the server, and it neither was the problem. I'm going crazy.
What could be the issue?
Thanks for your attention!
It was finally a network problem. I was lucky to discover it, cause I lost many hours.