-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Connection.end never calls callback when connected through an SSH tunnel #1029
Comments
Hm, I'm not sure. I would even say maybe pasting the following information (probably as a Gist) may help us here:
Then paste the stuff starting from when you see a line that shows the |
does it normally work without tunnel? |
The |
@dougwilson Thanks for the quick response. Debug output is below.
Process finished with exit code 130 (when I killed the script) |
Thank! So the Node.js log definitely shows it just hanging there--the TCP connection was never cleanly shutdown. With that log, I would definitely look into |
It doesn't seem like |
I just installed |
I manually updated to the latest ssh2, but that didn't fix the issue. Here is the github repo btw: https://github.com/Finanzchef24-GmbH/tunnel-ssh. I'll take a look at the code after work, and I'll cross-reference this issue on the tunnel-ssh repo. |
Awesome. I'm also leaving this issue open, because I still don't know exactly what is going on, so until we have a definitive answer, it's still unresolved in my mind :) |
Hey guys thanks for reporting. I think i got the problem fixed in the next major version. Thanks for reporting. |
Awesome, thanks, @agebrock ! |
I'm trying to use node-mysql to connect to an AWS RDS instance that's only reachable from EC2 instances within the same VPC. My specific use case is allowing a CI tool such as Codeship to run DB migrations before deploying new builds. Since the Codeship hosts don't have access to my DB instance, it will have to tunnel through one of my EC2 instances. This works like a charm, and I can execute queries against the DB fine, but when I try to close the connection, the callback is never called. Since I need to close the tunnel after the db connection is closed, the script hangs. I'm able to repro this with the following code (ssh/db config changed).
I was able to follow the stack into the Quit sequence, but couldn't find where the problem was happening. Let me know if you need any more info, or if you think this is a problem on the tunnel-ssh side.
Thanks,
Jared
The text was updated successfully, but these errors were encountered: