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)