Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2918

mongoexport - could not connect to server: connection() : dial tcp: i/o timeout

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: 100.3.1
    • Fix Version/s: No versions
    • Labels:
    • Environment:
    • Documentation Changes:
      Not Needed

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              moishinetzer@gmail.com Moishi Netzer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: