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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • 100.3.1
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: