Uploaded image for project: 'MongoDB ETL Tools'
  1. MongoDB ETL Tools
  2. TOOLS-898

Mongo tools attempt to connect as ipv6 rather than ipv4 by default, when built with go 1.5

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.0.6, 3.1.8
    • Fix Version/s: 3.0.7
    • Component/s: None
    • Labels:
    • Environment:
      Mongodb 3.0.6-1, MongoDBTools-3.1.7-1, linux

      Description

      Cannot import json files with the mongoimport included in 3.1.7. However those same file import with the exact same command using 3.1.6.

      $ mongoimport version: 3.1.7
      git version: not-built-with-ldflags
      $ mongoimport --file grades.json
      2015-08-31T14:54:12.987-0600 no collection specified
      2015-08-31T14:54:12.987-0600 using filename 'grades' as collection
      2015-08-31T14:54:15.988-0600 [........................] test.grades 0.0 B/93.2 KB (0.0%)
      2015-08-31T14:54:16.492-0600 [........................] test.grades 0.0 B/93.2 KB (0.0%)
      2015-08-31T14:54:16.492-0600 Failed: error connecting to db server: no reachable servers
      2015-08-31T14:54:16.492-0600 imported 0 documents

      $ mongoimport version: 3.1.6
      git version: not-built-with-ldflags
      $ mongoimport --file grades.json
      2015-08-31T14:54:45.584-0600 no collection specified
      2015-08-31T14:54:45.584-0600 using filename 'grades' as collection
      2015-08-31T14:54:45.588-0600 connected to: localhost
      2015-08-31T14:54:45.764-0600 imported 800 documents

      Explicitly specifying the server and port does not fix the issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mpobrien Michael O'Brien
                Reporter:
                jvreeland Justin Vreeland
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: