Mongodump failed with error : connection handshake: context deadline exceeded

when I run mongodump against one database, it failed a few times, not always.
the primary node mongod stopped. I added readpreferrence to secondary but it failed sometimes too.
error message like following:
“error creating intents to dump: error creating intents for database, io_service: connection() error occured during connection handshake: context deadline exceeded”
anyone had the same experience? mongodb ent 4.4.3. mongodump version 100.2.1
thanks,

  • Hank

I am facing the same problem, the backup on my local hosted database is working, but when it comes to mongo atlas, it is failing with that error sometimes returning partial data.

I am facing the same issue but to run mongorestore

connection() error occurred during connection handshake: context deadline exceeded

Hey guys, I solved the problem! It is a connection issue, I changed my connection and it works!

How did u solve it

please tell me