1. Colin Copeland
  2. caktus-deployment
  3. Issues
Issue #1 new

mallet add_client hangs on paramiko

Cristóbal Palmer
created an issue

Observed behavior:

Running a 'mallet add_client [...]' does all the correct creation of user, creation of files, etc. tasks, but hangs at the end, and if you press return, you get:

{{{ Mon, 23 Aug 2010 10:57:41 mallet.utils INFO chown caktus_portal:caktus_portal /home/caktus_portal/.ssh/authorized_keys

Exception in thread Thread-4: Traceback (most recent call last): File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner self.run() File "/home/cmpalmer/Envs/deploy/src/mallet/mallet/utils.py", line 31, in run self.write_to.write(self.read_from.read(1)) File "/usr/local/lib/python2.6/dist-packages/paramiko/file.py", line 314, in write self._write_all(data) File "/usr/local/lib/python2.6/dist-packages/paramiko/file.py", line 435, in _write_all count = self._write(data) File "/usr/local/lib/python2.6/dist-packages/paramiko/channel.py", line 1213, in _write self.channel.sendall(data) File "/usr/local/lib/python2.6/dist-packages/paramiko/channel.py", line 764, in sendall raise socket.error('Socket is closed') error: Socket is closed }}}

Expected behavior:

Expect mallet to exit cleanly after completing the chown of the .ssh/authorized_keys file.

Steps to reproduce:

Run a valid 'mallet add_client ...' command. Watch it hang. Ctrl-d will get you out. Ctrl-c will not.

Comments (0)

  1. Log in to comment