Skip to content
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

Invalid len argument returned when downloading #1160

Closed
cyberduck opened this issue Jul 12, 2007 · 6 comments
Closed

Invalid len argument returned when downloading #1160

cyberduck opened this issue Jul 12, 2007 · 6 comments
Assignees
Labels
bug fixed sftp SFTP Protocol Implementation
Milestone

Comments

@cyberduck
Copy link
Collaborator

7ce77a7 created the issue

When logging on to a server using the SFTP protocol and downloading a file, the following exception is thrown and the download is aborted.

I tried several different servers with the same result. Uploading works fine, and downloading from ordinary FTP servers works without problem.

Exception in thread "Background" java.lang.IllegalArgumentException: invalid len argument
	at ch.ethz.ssh2.sftp.SFTPv3Client.read(Unknown Source)
	at ch.ethz.ssh2.io.SFTPInputStream.read(Unknown Source)
	at ch.cyberduck.core.io.ThrottledInputStream.read(Unknown Source)
	at ch.cyberduck.core.Path.transfer(Unknown Source)
	at ch.cyberduck.core.Path.download(Unknown Source)
	at ch.cyberduck.core.sftp.SFTPPath.download(Unknown Source)
	at ch.cyberduck.core.DownloadTransfer._transferImpl(Unknown Source)
	at ch.cyberduck.core.Transfer.transfer(Unknown Source)
	at ch.cyberduck.core.Transfer.transfer(Unknown Source)
	at ch.cyberduck.core.Transfer.start(Unknown Source)
	at ch.cyberduck.ui.cocoa.CDTransferController$3.run(Unknown Source)
	at ch.cyberduck.ui.cocoa.CDWindowController$1.run(Unknown Source)
@cyberduck
Copy link
Collaborator Author

@dkocher commented

As a workaround use SCP transfers (Change in Preferences > SFTP). Do you know what SSH software is running on the server?

@cyberduck
Copy link
Collaborator Author

7ce77a7 commented

On of the servers is a debian machine. Running sshd -v gives the following result, if it helps.

OpenSSH_3.8.1p1 Debian-8.sarge.6, OpenSSL 0.9.7e 25 Oct 2004

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Would it be possible to get a temporary account on this server?

@cyberduck
Copy link
Collaborator Author

bfa468f commented

Hi, I'm also having this issue on all the servers I typically connect to (Redhat and CentOS). Some of them are using this:

OpenSSH_4.2p1, OpenSSL 0.9.7f 22 Mar 2005

And others are using this:

sshd version OpenSSH_3.6.1p2

And one is using this:

OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006

The problem happens when trying to download any file.

Couldn't try out the SCP workaround because when I try to open the preferences, the app crashes. :(

(BTW, I know some web hosts who allow SFTP and SSH but specifically disallow SCP connections)

@cyberduck
Copy link
Collaborator Author

bfa468f commented

=#### Tuesday, August 14, 2007 13:26:10 US/Eastern=
214917 [Background] ERROR ch.cyberduck.core.sftp.SFTPPath - SSH channel is closed. (Closing all channels)

I was just trying the new beta. Now that I can set the SCP preference, that works. When I set it back to SFTP, I get the invalid len argument on download and the above is what I see in the console.

So, I removed my preferences and things were working again with SFTP. I tried to compare the good and bad prefs but there's a lot of differences. I did verify that the problem isn't the enterkey.rename pref which I had changed.

If you would like a copy of the good and bad preference files, please email me at pburney@concord.org

So, this issue is no longer valid for me, but I'm not the original poster.

Sincerely,

Paul Burney

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Resolved in 30787b2.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed sftp SFTP Protocol Implementation
Projects
None yet
Development

No branches or pull requests

2 participants