fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] [PATCH] BUG: SFTP exception with strerror = None


From: Evan Jones
Subject: Re: [Fab-user] [PATCH] BUG: SFTP exception with strerror = None
Date: Mon, 25 May 2009 17:43:53 -0400

On May 25, 2009, at 14:36 , Jeff Forcier wrote:
Out of curiosity, is the problem simply that SFTP won't allow you to overwrite an open file, or is there something else going on?

Yes, that is basically the issue. On my Ubuntu systems, when a binary is running (such as my server processes), they cannot be opened for write. As a quick example, here is what happens from the Python command line:

>>> f = open("htableserver", "w")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: [Errno 26] Text file busy: 'htableserver'



Looks like it's an SFTP-level error, so not much we can do on our end to prevent or fix it, but I'm still curious.

Exactly. When this happens, SFTP returns an error with no message. OpenSSH's scp does the "right" thing and actually returns the text of the operating system error.

Evan

--
Evan Jones



reply via email to

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