Uploaded image for project: 'MongoDB Command Line Tools'
  1. MongoDB Command Line Tools
  2. TOOLS-1741

mongoimport --uri throws errors when passed Atlas Connection String URI

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.4.6
    • Fix Version/s: 3.4.7, 3.6.0-rc0
    • Component/s: mongoimport
    • Labels:
    • Environment:
      OSX 10.11.6

      Description

      Summary: mongoimport throws errors when passed the MongoDB URI as it is in the Atlas Connection dialog

      mongoimport --uri 'mongodb://importUser:importme123@gettingstarted-shard-00-00-msxz1.mongodb.net:27017,gettingstarted-shard-00-01-msxz1.mongodb.net:27017,gettingstarted-shard-00-02-msxz1.mongodb.net:27017/guidebook?ssl=true&replicaSet=GettingStarted-shard-0&authSource=admin' --collection=restaurants --file primer-dataset.json 
      2017-07-25T15:42:36.839-0400	connected to: localhost
      2017-07-25T15:42:36.851-0400	Failed: error configuring session: write concern error: cannot specify writeConcern string and connectionString object
      2017-07-25T15:42:36.851-0400	imported 0 documents
      

      NOTE: CLOUDP-19464 and CLOUDP-20324 may resolve the issue if its related to the connection string itself

      mongoimport version: r3.4.6
      git version: c55eb86ef46ee7aede3b1e2a5d184a7df4bfb5b5
      Go version: go1.7
         os: darwin
         arch: amd64
         compiler: gc
      OpenSSL version: OpenSSL 0.9.8zh 14 Jan 2016
      

        Attachments

          Activity

            People

            • Assignee:
              william.banfield William Banfield
              Reporter:
              ravind.kumar Ravind Kumar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: