fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] Occasional exceptions...


From: Jeff Forcier
Subject: Re: [Fab-user] Occasional exceptions...
Date: Fri, 29 Jan 2010 16:43:58 -0500

Hi Erik,

Two things:

First, find out which Paramiko version you're running:

    $ python
    >>> import paramiko
    >>> paramiko.__version__
    '1.7.4 (Desmond)'
    >>>

If you're not seeing 1.7.4 there -- especially if you're seeing 1.7.5
-- that's the problem, as 1.7.5 has a known SSH related bug. You'll
want to find out how Paramiko was installed on your system and remove
it -- Fabric bundles a copy of 1.7.4 with itself for the time being.

Second, if that's not the case, how long is your script running for
before it terminates? 10 seconds? A minute? Ten minutes? The "Channel
closed" message, at least in my limited experience with it, means that
the network connection was dropped, and that (to me) often happens
because a firewall along the route has dropped you for inactivity or
some such.

If it's neither of those things, then there's not a ton I can do --
it's at the Paramiko level, not a Fabric problem :( Could be some
other event causing the connection to get dropped by the server, but
that's entirely dependent on the remote system's configuration and so
forth.

Best,
Jeff


On Fri, Jan 29, 2010 at 4:09 PM, Erik Wickstrom <address@hidden> wrote:
> After my script runs for a few minutes, It will sometimes crash with this
> traceback:
> % run: mkdir -p /home/linx/web/public_html;
> Traceback (most recent call last):
>   File "build/bdist.linux-x86_64/egg/fabric/main.py", line 419, in main
>   File "/root/wp-deploy/fabfile.py", line 34, in deploy
>     d.file_upload()
>   File "/root/wp-deploy/fabfile.py", line 132, in file_upload
>     run("mkdir -p %s;" % path)
>   File "build/bdist.linux-x86_64/egg/fabric/network.py", line 382, in
> host_prompting_wrapper
>   File "build/bdist.linux-x86_64/egg/fabric/operations.py", line 419, in run
>   File "build/bdist.linux-x86_64/egg/paramiko/channel.py", line 212, in
> exec_command
>   File "build/bdist.linux-x86_64/egg/paramiko/channel.py", line 1077, in
> _wait_for_event
> paramiko.SSHException: Channel closed.
> Disconnecting from server1... done.
> Any idea what could be causing it?  I'm running Fabric 0.9.0
> Thanks!
> Erik
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>
>



-- 
Jeff Forcier
Unix sysadmin; Python/Ruby developer
http://bitprophet.org




reply via email to

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