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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 100.3.1
    • Labels:
    • Environment:
    • 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.

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

              Created:
              Updated:
              Resolved: