fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] SSHException with Ubuntu 9.04


From: Ted Carroll
Subject: [Fab-user] SSHException with Ubuntu 9.04
Date: Sat, 8 Aug 2009 16:27:09 -0700

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]