Fabric displays Disconnecting from username@server... done.
for almost 2 minutes prior to showing a new command prompt whenever I issue a fab command.
This problem exists when using Fabric commands issued to both an internal server and a Rackspace cloud server. Below I've included the auth.log from the server, and I didn't see anything in the logs on my MacBook.
Any thoughts as to what the problem is?
Server's SSH auth.log 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 those OSes)
- 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
The problem persists even when I just run fab -H server_ip host_type
with the following fabfile.
from fabric.api import run
def host_type():
run('uname -s')
Thoughts on Cause of the Issue
I'm not certain how long this problem has persisted, but below are some things that have changed since I started to notice the slow server disconnect using Fabric.
I recreated my virtualenv's using virtualenv 1.4.7, virtualenvwrapper 2.1, and pip 0.7. Not sure if this is related, but it is a thought since I run my fabfiles from within a virtualenv.I enabled OS X's firewall.I disabled OS X's firewall and the problem persisted, so this is not the issue.