Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fabric hangs when using SSH proxy and paramiko 1.12 #1020
[Maintainer edit: #1042 seems to be a dupe with its own big set of affected users.]
I'm using the most current Fabric version available in pypi: Fabric 1.8.0 with Paramiko 1.12 on Ubuntu 13.04. When I execute
#!/usr/bin/env python from fabric.api import * # Respect the proxy SSH host setting. env.use_ssh_config = True env.hosts = ["my_host_name"] def deploy(): run("ls .") return
Fabric executes the
Note that it happens only when I use SSH proxy, i.e. this is the important part of the
A solution to this problem turned out to be downgrading paramiko library installed in my system to version 1.11.1 (downgrading to a little more current version 1.11.2 doesn't fix the problem).
4 similar comments
Definitely seems to be a patch submitted as part of 1.11.2, however that patch itself is fixing a different deadlock problem so we can't simply revert it. I'd like more info from y'all if I can get it, please!
referenced this issue
Feb 12, 2014
Please try using this branch (it's based off of the 1.11 line, FYI) and see how it addresses the problem for you. It may cause things overall to be slower than normal, though that may be my paranoia at work.
Makes things terminate cleanly for me in a base case setup (ProxyCommand of
See Paramiko #252 discussion for details on what I dug up, if you care, but that branch is the result.
Awesome, thanks guys. Merged the branch for Paramiko 1.11.x and 1.12.x, will release those lines today if I can, then you can just grab latest Paramiko in your desired line and it will include this change.
New Fabric will be out around the same time but besides the typo fix mentioned above, nothing had to change to support the Paramiko-level fixes.
@lepture Can you open a new ticket with some details please? E.g. are you using the example snippets up top here; if not, what's your config & fabfile look like; etc. Also, please try to use multiple Paramiko versions (something below 1.15 for sure, as that made moderate changes) and see how that affects things.
(Again - in a new ticket, please & thanks!)