[SERVER-62506] Mongodump throwing error Created: 11/Jan/22  Updated: 25/Jan/22  Resolved: 25/Jan/22

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Rana Saha Assignee: Eric Sedor
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Pre-Production


Operating System: ALL
Steps To Reproduce:

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

Participants:

 Description   

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.



 Comments   
Comment by Eric Sedor [ 25/Jan/22 ]

Glad to hear r.saha10051989@gmail.com!

Comment by Rana Saha [ 14/Jan/22 ]

Hi Eric,

The issue is resolved, I added the username, password and authDB name in mongodump syntax, which fixed the issue

set GODEBUG=x509ignoreCN=0 && mongodump --host hostname:27017 -d <db_name> -u <UID> --authenticationDatabase admin -p <password> --ssl --sslPEMKeyFile "xxxxxxxxx\server.pem" --sslCAFile "xxxxxxxxxx\CA.crt" --archive="xxxxxxx" & set GODEBUG=

 

But, Thanks for your support Eric.

 

Regards,

Rana Saha

Comment by Eric Sedor [ 11/Jan/22 ]

Hi r.saha10051989@gmail.com, for this issue could you to start by asking our community for help by posting on the MongoDB Developer Community Forums?

If the discussion there leads you to suspect a bug in the MongoDB server, then we'd want to investigate it here in the SERVER project.

Gratefully,
Eric

Comment by Rana Saha [ 11/Jan/22 ]

Please do let me know if you need any information from me.

Generated at Thu Feb 08 05:55:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.