Can't move files to SFTP remote: SSH_FX_FAILURE

What is the problem you are having with rclone?

I added to rclone a mount of my remote storage box (from Hetzner if that helps), using SFTP. The remote works, as I'm able to run rclone ls hetzner: and it returns the right response. But the move command doesn't.

Run the command 'rclone version' and share the full output of the command.

rclone v1.57.0
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.15.0-1016-oracle (aarch64)
- os/type: linux
- os/arch: arm64
- go/version: go1.17.2
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

SFTP

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone move -P example_file.zip hetzner:/ -vv

The rclone config contents with secrets removed.

[hetzner]
type = sftp
host = #####
user = #####
port = 23
pass = #####
md5sum_command = md5 -r
sha1sum_command = sha1 -r

A log from the command with the -vv flag

2022/08/30 15:26:33 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "move" "-P" "file_example.zip" "hetzner:/" "-vv"]
2022/08/30 15:26:33 DEBUG : Creating backend with remote "file_example.zip"
2022/08/30 15:26:33 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/08/30 15:26:33 DEBUG : fs cache: adding new entry for parent of "file_example.zip", "/mnt/blockvolumes/main/downloads/folder_example"
2022/08/30 15:26:33 DEBUG : Creating backend with remote "hetzner:/"
2022/08/30 15:26:33 DEBUG : sftp://XXX@XXX.your-storagebox.de:23//: New connection 10.0.0.128:59318->XXX:23 to "SSH-2.0-OpenSSH_7.9 FreeBSD-20200214"
2022-08-30 15:26:33 DEBUG : file_example.zip: Need to transfer - File not found at Destination
2022-08-30 15:26:33 DEBUG : sftp://XXX@XXX.your-storagebox.de:23//: checking "md5 -r" command: "d41d8cd98f00b204e9800998ecf8427e"
2022-08-30 15:26:33 DEBUG : sftp://XXX@XXX.your-storagebox.de:23//: checking "sha1 -r" command: "da39a3ee5e6b4b0d3255bfef95601890afd80709"
2022-08-30 15:26:33 DEBUG : Saving config "md5sum_command" in section "hetzner" of the config file
2022-08-30 15:26:33 DEBUG : Saving config "sha1sum_command" in section "hetzner" of the config file
2022-08-30 15:26:33 ERROR : file_example.zip: Failed to copy: Update Create failed: sftp: "Failure" (SSH_FX_FAILURE)
2022-08-30 15:26:33 ERROR : file_example.zip: Not deleting source as copy failed: Update Create failed: sftp: "Failure" (SSH_FX_FAILURE)
2022-08-30 15:26:33 ERROR : Attempt 1/3 failed with 1 errors and: Update Create failed: sftp: "Failure" (SSH_FX_FAILURE)
2022-08-30 15:26:33 DEBUG : file_example.zip: Need to transfer - File not found at Destination
2022-08-30 15:26:33 ERROR : file_example.zip: Failed to copy: Update Create failed: sftp: "Failure" (SSH_FX_FAILURE)
2022-08-30 15:26:33 ERROR : file_example.zip: Not deleting source as copy failed: Update Create failed: sftp: "Failure" (SSH_FX_FAILURE)
2022-08-30 15:26:33 ERROR : Attempt 2/3 failed with 1 errors and: Update Create failed: sftp: "Failure" (SSH_FX_FAILURE)
2022-08-30 15:26:33 DEBUG : file_example.zip: Need to transfer - File not found at Destination
2022-08-30 15:26:33 ERROR : file_example.zip: Failed to copy: Update Create failed: sftp: "Failure" (SSH_FX_FAILURE)
2022-08-30 15:26:33 ERROR : file_example.zip: Not deleting source as copy failed: Update Create failed: sftp: "Failure" (SSH_FX_FAILURE)
2022-08-30 15:26:33 ERROR : Attempt 3/3 failed with 1 errors and: Update Create failed: sftp: "Failure" (SSH_FX_FAILURE)
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Checks:                 3 / 3, 100%
Elapsed time:         0.7s
2022/08/30 15:26:33 INFO  : 
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Checks:                 3 / 3, 100%
Elapsed time:         0.7s

2022/08/30 15:26:33 DEBUG : 12 go routines active
2022/08/30 15:26:33 Failed to move: Update Create failed: sftp: "Failure" (SSH_FX_FAILURE)

hi,
i use storagebox, often move files, never had an issue.

might try hetzner: instead of hetzner:/
might try updating rclone

1 Like

If the above doesn't help then perhaps user/server out of disk space:

or a quick check of the other forum posts with the same error:
https://forum.rclone.org/search?expanded=true&q=Update%20Create%20failed%20(SSH_FX_FAILURE)%20order%3Alatest

1 Like

Wow, that worked, very strange to me..

Okay, if you don't mind, I have another problem, I mounted the remote to path, but then I have a software (qBittorrent) that moves files to this mount once it's done with downloading them.. It fails giving the following error:

Failed to move "some_file.mkv" from "/mnt/downloads/" to "/mnt/storagebox". Reason: some_file.mkv storage move failed. file_rename (/mnt/downloads/some_file.mkv): Operation not permitted

Since you use Storagebox, do you know how I can fix that? I have an rclone mount of gdrive and I don't have this problem with it. What can I do to fix this one with SFTP (Storagebox)?

Thank you

which worked, removing the trailing slash or updating rclone?

might check out
https://forum.rclone.org/t/automate-upload-complete-torrents-in-google-drive-using-qbitorrent/23471/8

if that does not solve the issue, then i would
--- kill the mount
--- restart the mount, using a debug log.
--- generate the error
--- kill the mount
--- post the full debug log

I guess the trailing slash made it try to create the file at the root resulting in a not allowed error being returned in the big something failed error basket (SSH_FX_FAILURE) - well spotted!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.