Hi Ted, Offhand that doesn't look like a config issue, especially if it's intermittent. Are you saying that sometimes that exact command below will work, or does it always bail out? What other commands have you successfully run with run() or sudo(), and what other commands have died -- or is it truly random?
What version of Fabric are you using, a git clone or 0.9b1 or what? :) What version of Paramiko do you have installed? IIRC some older versions of Paramiko can cause problems, you'll want 1.7.4 or newer. (In fact, 1.7.5 came out recently, and looks like it may fix those Python 2.6 warnings, hooray!) Finally, it looks like you're using Python 2.6 on...OS X 10.3 Panther? Is that accurate or is your egg path leading me astray? Don't know of any specific issues on 10.3, just want to make sure I know what your platform is for the record. Sorry for the interrogation but that's tech support for you :) Best, Jeff On Sat, Aug 8, 2009 at 7:27 PM, Ted Carroll<ted.a.carr...@gmail.com> wrote: > I'm trying out fabric for the first time so this is probably a silly config > problem on my part, but I'm running ubuntu 9.04 in a vmware vm and having a > lot of problems getting SSHExceptions. Here's a fabfile that reproduces the > problem: > > from fabric.api import * > > def production(): > env.hosts = ['192.168.1.228'] > env.user = 'deployment' > env.password = 'password' > > def test_sudo(): > require('hosts', provided_by=[production]) > put('apache-website-config', 'apache-website-config') > sudo('rm -f apache-website-config') > sudo('rm -f bad_file_name2') > > The output is: > > /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Crypto/Hash/SHA.py:6: > DeprecationWarning: the sha module is deprecated; use the hashlib module > instead > from sha import * > /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Crypto/Hash/MD5.py:6: > DeprecationWarning: the md5 module is deprecated; use hashlib instead > from md5 import * > [192.168.1.228] put: apache-website-config -> apache-website-config > [192.168.1.228] sudo: rm -f apache-website-config > Traceback (most recent call last): > File "build/bdist.macosx-10.3-i386/egg/fabric/main.py", line 481, in main > File "/Users/tedc/project_46062/deployment/fabfile.py", line 11, in > test_sudo > sudo('rm -f apache-website-config') > File "build/bdist.macosx-10.3-i386/egg/fabric/network.py", line 369, in > host_prompting_wrapper > File "build/bdist.macosx-10.3-i386/egg/fabric/operations.py", line 517, in > sudo > File "build/bdist.macosx-10.3-i386/egg/paramiko/channel.py", line 212, in > exec_command > File "build/bdist.macosx-10.3-i386/egg/paramiko/channel.py", line 1077, in > _wait_for_event > paramiko.SSHException: Channel closed. > Disconnecting from 192.168.1.228... done. > > > It seams to be intermittent -- occasionally it will work but mostly it > fails. > > Any ideas? > > Thanks, > > Ted C > > > _______________________________________________ > Fab-user mailing list > Fab-user@nongnu.org > http://lists.nongnu.org/mailman/listinfo/fab-user > _______________________________________________ Fab-user mailing list Fab-user@nongnu.org http://lists.nongnu.org/mailman/listinfo/fab-user