Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-62506

Mongodump throwing error

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Tools
    • None
    • Environment:
      Pre-Production
    • ALL
    • Hide

      set GODEBUG=x509ignoreCN=0 && mongodump --host xxxxxxx:27017 -d xxxxxx --ssl --sslCAFile "xxxxxxxxxx\CA.crt" --sslPEMKeyFile "xxxxxxxxxxxx\client.pem" --archive="xxxxxxx_bkp" & set GODEBUG=

      Show
      set GODEBUG=x509ignoreCN=0 && mongodump --host xxxxxxx:27017 -d xxxxxx --ssl --sslCAFile "xxxxxxxxxx\CA.crt" --sslPEMKeyFile "xxxxxxxxxxxx\client.pem" --archive="xxxxxxx_bkp" & set GODEBUG=

      I am facing error while trying to take mongodump using the above syntax, can you please help.

      Note: I am using OS(windows2019) MongoDB v5.0.2.

       

      set GODEBUG=x509ignoreCN=0 && mongodump --host xxxxxxx:27017 -d xxxxxx --ssl --sslCAFile "xxxxxxxxxx\CA.crt" --sslPEMKeyFile "xxxxxxxxxxxx\client.pem" --archive="xxxxxxx_bkp" & set GODEBUG=
      2022-01-11T04:10:57.016+0000 Failed: error creating intents to dump: error getting collections for database `xxxxxxxx`: (Unauthorized) command listCollections requires authentication

       

      Please let me know if I am missing anything here.

            Assignee:
            eric.sedor@mongodb.com Eric Sedor
            Reporter:
            r.saha10051989@gmail.com Rana Saha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: