[SERVER-13005] MongoDump on server with SSL enabled not able to connect to non ssl server Created: 03/Mar/14  Updated: 18/Aug/16  Resolved: 17/Apr/14

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

Type: Bug Priority: Major - P3
Reporter: Dharshan Rangegowda Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

I have a mongo server with ssl enabled. On this server I want to import data that is present on another server. So I want to mongodump and them mongorestore the data. Here is the mongodump command I ran

mongodump -h <host> -d <db> -u <user> -p <pass>.

I always see the following error
assertion: 18

{ code: 18, ok: 0.0, errmsg: "auth fails" }

I was able to run this command fine on other servers.



 Comments   
Comment by Spencer Brody (Inactive) [ 17/Apr/14 ]

Hi Dharshan,
I haven't heard from you in a while so I'm going to go ahead and close this ticket due to lack of activity. If this is still a problem for you feel free to re-open the ticket with the information I requested.

Cheers,
-Spencer

Comment by Spencer Brody (Inactive) [ 06/Mar/14 ]

If you use mongodump from a non-ssl enabled build, does it work then? If so, can you attach log output from a run of non-ssl mongodump working to dump from the non-ssl source, followed by an ssl-capable mongodump failing to dump from the same non-ssl source mongod?

Comment by Dharshan Rangegowda [ 05/Mar/14 ]

The server and tools are 2.4.8. The DB I am trying to connect is an older version.

Comment by Andy Schwerin [ 05/Mar/14 ]

You're certain you have the correct user name, password and target database? What version of the server and tools are you running?

Comment by Dharshan Rangegowda [ 05/Mar/14 ]

The other way around.I am unable to run mongodump on non SSL servers from a build that has SSL enabled.

Comment by Andy Schwerin [ 05/Mar/14 ]

To clarify, you're unable to run mongodump when the target host has SSL enabled? Please try passing the ssl flag, as follows:

mongodump --ssl -h <host> -d <db> -u <user> -p <pass>

Generated at Thu Feb 08 03:30:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.