-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
serve sftp: upload fails (“Illegal seek”, SSH_FX_FAILURE) #5806
Comments
This problem is easy to replicate. The problem is in the client rather than the server it is easy to work out and a bit of commit 0537791 sftp: Fix performance regression by re-enabling concurrent writes #5197 Disabling the feature introduced by that commit with The root cause of this problem is in the github.com/pkg/sftp library which gets the packets out of order when transmitting. I'm going to see if I can fix this! |
This stops the SFTP library issuing out of order writes which fixes the problems uploading to `serve sftp` from the `sftp` backend. This was fixes upstream in this pull request: pkg/sftp#482 Fixes #5806
This has now been fixed upstream in pkg/sftp#482 I've pulled that into rclone now - can you give it a go and see if it works for you @thomae ? v1.58.0-beta.5935.f1b9f020c.fix-5806-serve-sftp on branch fix-5806-serve-sftp (uploaded in 15-30 mins) |
I've merged this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.58 |
The associated forum post URL from
https://forum.rclone.org
https://forum.rclone.org/t/serve-sftp-upload-fails-illegal-seek-ssh-fx-failure/27238
What is the problem you are having with rclone?
Uploading a file using the rclone SFTP backend to the rclone serve sftp server fails with "Illegal seek" (SSH_FX_FAILURE).
As a workaround you can either add
--sftp-disable-concurrent-writes
to the client or--vfs-cache-mode writes
to the server.As discussed in the forum it is suspected that a rewrite of the file upload code of the upstream sftp library broke it as it worked with v1.55.1.
What is your rclone version (output from
rclone version
)v1.56.2 or v1.57.0-beta.5823.da8f9be84
Which OS you are using and how many bits (e.g. Windows 7, 64 bit)
Debian 10 Buster, 64 bit
Which cloud storage system are you using? (e.g. Google Drive)
Local Filesystem
The command you were trying to run (e.g.
rclone copy /tmp remote:tmp
)Server & Client
Server only
Client only
For the beta version I updated with
and then repeated the commands above.
A log from the command with the
-vvv
flag (e.g. output fromrclone -vv copy /tmp remote:tmp
)How to use GitHub
The text was updated successfully, but these errors were encountered: