Rclone moveto exits with error code 1

What is the problem you are having with rclone?

Even though the operation did succeed, rclone ends with code 1.

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

rclone v1.65.1

  • os/version: debian 11.8 (64 bit)
  • os/kernel: 5.10.0-26-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.5
  • go/linking: static
  • go/tags: none

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

B2 + encryption

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

rclone -P moveto /root/file b2_secret:file

The rclone config contents with secrets removed.

[b2]
type = b2
account = XXX
key = XXX
hard_delete = true

[b2_secret]
type = crypt
remote = b2:alphard-containers
password = XXX
password2 = XXX

A log from the command with the -vv flag

2024/01/19 20:29:31 DEBUG : rclone: Version "v1.65.1" starting with parameters ["rclone" "-P" "moveto" "/root/file" "b2_secret:file"]
2024/01/19 20:29:31 DEBUG : Creating backend with remote "/root/file"
2024/01/19 20:29:31 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2024/01/19 20:29:31 DEBUG : fs cache: adding new entry for parent of "/root/file", "/root"
2024/01/19 20:29:31 DEBUG : Creating backend with remote "b2_secret:"
2024/01/19 20:29:31 DEBUG : Creating backend with remote "b2:alphard-containers"
2024/01/19 20:29:33 DEBUG : file: Need to transfer - File not found at Destination
2024/01/19 20:29:33 DEBUG : file: Computing sha1 hash of encrypted source
2024/01/19 20:29:35 DEBUG : file: sha1 = e6bc945e0065113fdd455a1118340f480de9882d OK
2024/01/19 20:29:35 INFO  : file: Copied (new)
2024/01/19 20:29:35 INFO  : file: Deleted
Transferred:             81 B / 81 B, 100%, 0 B/s, ETA -
Checks:                 1 / 1, 100%
Deleted:                1 (files), 0 (dirs)
Renamed:                1
Transferred:            1 / 1, 100%
Elapsed time:         3.4s
2024/01/19 20:29:35 INFO  : 
Transferred:             81 B / 81 B, 100%, 0 B/s, ETA -
Checks:                 1 / 1, 100%
Deleted:                1 (files), 0 (dirs)
Renamed:                1
Transferred:            1 / 1, 100%
Elapsed time:         3.4s

2024/01/19 20:29:35 DEBUG : 13 go routines active

You have not provided any evidence of your claim.

Below my test showing that all works as expected.

$ rclone -P moveto ./file B2crypt:file
Transferred:   	   15.940 MiB / 15.940 MiB, 100%, 331.046 KiB/s, ETA 0s
Checks:                 1 / 1, 100%
Deleted:                1 (files), 0 (dirs)
Renamed:                1
Transferred:            1 / 1, 100%
Elapsed time:        52.7s

$ echo $?
0

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