New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Message is not extractable" errors from offspec SFTP servers (possibly all IBM) #194
Comments
i can't reproduce that,Does anyone have the same trouble ? |
I am having the same trouble, with a GZipped file. Looking at other people on Stack Overflow, etc having this problem (https://groups.google.com/forum/#!msg/pysftp/ReEdm1tbFgs/OigomtMYtXAJ, http://stackoverflow.com/questions/18028440/paramiko-sftp-get-error), the problem seems like it might be with gzipped files (like the first), or binary files in general (I can't tell what type of file is in the second). |
Kinda-sorta related to #187 (though I think that is asking for a value-add, whereas this here implies simply downloading a gzipped file is outright broken.) |
After investigating this more, I don't think it's strictly a gzip-file issue. On the same server where I was getting that error on a gzip-file, I've also started getting it on text files. I'm getting the same issues when using PHP's standard SSH2 library as well. I have a feeling it's server-specific, and I'm working with that particular server admin to figure it out. If/when we figure out what's going on, hopefully that'll lead us to a good check for it. |
See #530 which feels like the same issue, and indicates it may be a problem with open file handles on the server side. |
I second that #530 feels like the same issue, and I think it's a case of paramiko not working well with IBM Sterling, most likely due to a bug/config issue. This may be related http://www-01.ibm.com/support/docview.wss?uid=swg1IT02065 Like others in this and related threads I have been able to get around it by modifying the getfo-call. The files I care about is only "extractable" once so right now I am out of files to fetch, but I will return to this later in the week. |
I had to comment out two lines to work around this. I assume this will break the callback feature.
|
@bufke Did you get a chance to try the changes from #562 or #579? They seem to be less-disruptive modifications achieving a similar end. Rolling other open tickets (hi #576) into this one. Leaving both of those mentioned PRs open for now, they appear to accomplish the same goal in similar but distinct ways, need to take a closer look and compare pros/cons. |
Comparing the two PRs:
|
[Maintainer's note: a) this seems to be specific to IBM SFTP servers or others which place limits on how many times one can
stat
a file; b) there are two potential fixes for this, #562 and #579]I have the following code with initalization of credentials removed.
Printing of directory listing works, however "get" fails with the following exception
paramiko [Errno 2] <....filename removed...> The message is not extractable!
I worked around by making a copy of getfo and removing prefetch call in it.
The text was updated successfully, but these errors were encountered: