Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looks like 3.0 broke SSH tunneling #146

Closed
morcmarc opened this issue Oct 17, 2014 · 21 comments
Closed

Looks like 3.0 broke SSH tunneling #146

morcmarc opened this issue Oct 17, 2014 · 21 comments

Comments

@morcmarc
Copy link

Just installed the new update and I can't get onto any of my remote servers using SSH tunnels. When I open a connection it connects to my local Mongo instance instead. Tried re-adding my existing connections to no avail. Has anyone else got the same?

@jeromelebel
Copy link
Owner

What is your setup?

@morcmarc
Copy link
Author

OS X Mavericks if that's what you meant. As for the ssh config, I can send a screenshot later when I'm at my Mac.

@jeromelebel
Copy link
Owner

The screenshot would be great.

@EricJahn
Copy link

It is the same for me (except I am not using SSH), I just updated to the latest version (from 2.6) and all my connection settings are reset to localhost. However when I add them again, I can not connect to any of my remote databases.

@jeromelebel
Copy link
Owner

@EricJahn can you explain me which information you put in the connection panel?

@EricJahn
Copy link

Just the usual stuff (Server, Port, Database Name, Username and Password). It seems to work with the new update (3.0.1).

@jeromelebel
Copy link
Owner

Do you have a database password with some characters like @: ?

@EricJahn
Copy link

No, only a-z and 0-9.

@jeromelebel
Copy link
Owner

Very weird. I didn't change anything related to ssh. Or maybe if there is some kind of url characters in the default database or the replica set name, that could explain.
In the log window, you should see an url mongodb://xxxx if there is now a % encoding. That would be the reason. Otherwise, I don't know. But at least it's working for you.

@samuellow
Copy link

Just updated to 3.0.1 and experiencing the same issue. The logs seem to indicate that the SSH tunnel is successful but the client seems like it's not using the tunnel and is instead trying to connect locally to my computer.

2014-10-20 04:13:30 +0000 somewhere.url debug mongodb://127.0.0.1/?

@rlaferla
Copy link

I'm seeing this exact same problem and it's a DEAL BREAKER. Please fix it. I can no longer use the app.

@rlaferla
Copy link

Even worse, I can't revert to 2.5 because it's complaining:

Persistent store migration failed, missing source managed object model.

@rlaferla
Copy link

Here's the log:

2014-10-20 04:23:56 +0000 mongoc.cluster info Client initialized in direct mode.
2014-10-20 04:23:56 +0000 mongoc.client info Using custom stream initiator.
2014-10-20 04:23:56 +0000 mongoc.client warning Failed to connect to: 127.0.0.1:27017, error: 61, Connection refused
2014-10-20 04:23:56 +0000 mongoc.client warning Failed to connect to: 127.0.0.1:27017, error: 61, Connection refused

@rlaferla
Copy link

If you need to revert to 2.5, delete the folder ~/Library/Application Support/MongoHub. You will need to recreate all your connection meta data though. I also deleted the preferences with defaults delete com.fotonauts.MongoHub

jeromelebel pushed a commit to jeromelebel/MongoObjCDriver that referenced this issue Oct 20, 2014
@jeromelebel
Copy link
Owner

I need the content of the log window of one of you.

@jeromelebel
Copy link
Owner

Maybe fixed in 3.0.2 (if it is the case, you can close this issue, otherwise, I really need more information)

@samuellow
Copy link

Update 3.0.2 has fixed the problem, thanks.

@morcmarc
Copy link
Author

Indeed, it's working now! Thanks very much!

@jeromelebel
Copy link
Owner

So the fact you had no ip at all for the server was the issue.

I'm glad it's working for you again!

@nover
Copy link

nover commented Oct 21, 2014

Working here as well, also had SSH connection issues after the 3.0.1 upgrade, 3.0.2 and I can connect again :)

Just thought you should know...

@rlaferla
Copy link

Works for me. THANK YOU!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants