Why does Fabric display a message about disconnecting from the server for almost 2 minutes?

Fabric displays Disconnecting from username@server... done.for almost 2 minutes before displaying a new command line whenever I issue the fab command.

This issue exists when using Fabric commands issued for both the back-end server and the Rackspace cloud server. Below I turned on auth.log from the server, and did not see anything in the logs on my MacBook.

Any thoughts on what the problem is?

SSH auth.log server with LogLevel VERBOSE

Apr 21 13:30:52 qsandbox01 sshd[19503]: Accepted password for mrankin from 10.10.100.106 port 52854 ssh2
Apr 21 13:30:52 qsandbox01 sshd[19503]: pam_unix(sshd:session): session opened for user mrankin by (uid=0)
Apr 21 13:30:52 qsandbox01 sudo:  mrankin : TTY=unknown ; PWD=/home/mrankin ; USER=root ; COMMAND=/bin/bash -l -c apache2ctl graceful
Apr 21 13:30:53 qsandbox01 sshd[19503]: pam_unix(sshd:session): session closed for user mrankin

Server configuration

  • OS: Ubuntu 9.10 and Ubuntu 6.10 (tested 4 servers with these OSs)
  • OpenSSH: Ubuntu Package Version 1.5.1p1-6ubuntu2

Client configuration

  • OS: Mac OS X 10.6.3
  • Fabric ver 0.9
  • Vritualenv ver 1.4.7
  • pip ver 0.7

Simple fabfile.py Used for testing

, fab -H server_ip host_type .

from fabric.api import run

def host_type():
    run('uname -s')

, , , , Fabric.

  • virtualenv, virtualenv 1.4.7, virtualenvwrapper 2.1 pip 0.7. , , , .
  • OS X. OS X, , .
+5
2

, virtualenv:

pip install -U paramiko

paramiko-1.7.6 pycrypto-2.0.1. -1.7.4 pycrypto-2.0.1.

, paramiko , pycrypto . , paramiko 1.7.4 Fabric 0.9, paramiko 1.7.6.

: paramiko-1.7.6 , . virtualenv, paramiko-1.7.4, , , . paramiko 1.7.4 1.7.6 , virtualenv.

+6

, . , Paramiko 1.7.4 Fabric 0.9, ( ), ( Python - ) , 1.7.4.

Paramiko 1.7.5/1.7.6 / Python/ .., , .

: Redmine : http://code.fabfile.org/issues/show/158

+2

All Articles