-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 100.3.1
-
Component/s: mongo-tools-common, mongoexport
-
Not Needed
Problem Statement/Rationale
Sporadically shown the below error:
could not connect to server: connection() : dial tcp: i/o timeout
I am using mongoexport to export my file to csv using the below command:
mongoexport --uri mongodb+srv://NAME:PASSWORD@DB.xxxxx.mongodb.net/DB --collection deals --type=csv --fields "Contact*Title","Contact First Name", "Contact Last Name" --out latest.csv
My database is hosted on mongodb Atlas running 4.4.6 on AWS
M0 Sandbox (Shared RAM, 512 MB Storage)
Steps to Reproduce
Happens irregularly and randomly, however can be brute forced sometimes when running mongoexport multiple times sequentially. Although not always.
I do notice that when the command is taking longer than a few seconds that I will get this error, as successful exports (which work as normal and intended) are exported almost immediately.
- is duplicated by
-
TOOLS-2917 could not connect to server: connection() : dial tcp: i/o timeout
- Closed