What is the problem you are having with rclone?
It can't handle the uchg (immutable) flag correctly on MacOS, creating partial files that it can't update/remove. This is especially problematic when copying from a read-only filesystem, so you can't update the flag at source,
Run the command 'rclone version' and share the full output of the command.
./rclone version
rclone v1.70.0-beta.8641.839eef0db
- os/version: darwin 15.4 (64 bit)
- os/kernel: 24.4.0 (arm64)
- os/type: darwin
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.24.1
- go/linking: dynamic
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
None.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
> ./rclone selfupdate --beta
2025/04/03 19:47:10 NOTICE: rclone is up to date
> echo Hello >file1.txt
> chflags uchg file1.txt
> ./rclone copy file1.txt file2.txt
2025/04/03 19:47:34 NOTICE: Config file "/Users/gh221/.config/rclone/rclone.conf" not found - using defaults
2025/04/03 19:47:34 ERROR : file1.txt.deda4a9f.partial: partial file rename failed: rename /Users/gh221/Dev/rcloneuchg/file2.txt/file1.txt.deda4a9f.partial /Users/gh221/Dev/rcloneuchg/file2.txt/file1.txt: operation not permitted
2025/04/03 19:47:34 ERROR : Attempt 1/3 failed with 1 errors and: rename /Users/gh221/Dev/rcloneuchg/file2.txt/file1.txt.deda4a9f.partial /Users/gh221/Dev/rcloneuchg/file2.txt/file1.txt: operation not permitted
2025/04/03 19:47:34 ERROR : file1.txt: Failed to copy: couldn't copy from /Users/gh221/Dev/rcloneuchg/file1.txt to /Users/gh221/Dev/rcloneuchg/file2.txt/file1.txt.deda4a9f.partial: errno -1
2025/04/03 19:47:34 ERROR : Attempt 2/3 failed with 1 errors and: couldn't copy from /Users/gh221/Dev/rcloneuchg/file1.txt to /Users/gh221/Dev/rcloneuchg/file2.txt/file1.txt.deda4a9f.partial: errno -1
2025/04/03 19:47:34 ERROR : file1.txt: Failed to copy: couldn't copy from /Users/gh221/Dev/rcloneuchg/file1.txt to /Users/gh221/Dev/rcloneuchg/file2.txt/file1.txt.deda4a9f.partial: errno -1
2025/04/03 19:47:34 ERROR : Attempt 3/3 failed with 1 errors and: couldn't copy from /Users/gh221/Dev/rcloneuchg/file1.txt to /Users/gh221/Dev/rcloneuchg/file2.txt/file1.txt.deda4a9f.partial: errno -1
2025/04/03 19:47:34 NOTICE: Failed to copy: couldn't copy from /Users/gh221/Dev/rcloneuchg/file1.txt to /Users/gh221/Dev/rcloneuchg/file2.txt/file1.txt.deda4a9f.partial: errno -1
>
The rclone config contents with secrets removed.
(No config file - using defaults.)
A log from the command with the -vv
flag
> ./rclone copy file1.txt file3.txt -vv
2025/04/03 19:48:18 DEBUG : rclone: Version "v1.70.0-beta.8641.839eef0db" starting with parameters ["./rclone" "copy" "file1.txt" "file3.txt" "-vv"]
2025/04/03 19:48:18 DEBUG : Creating backend with remote "file1.txt"
2025/04/03 19:48:18 NOTICE: Config file "/Users/gh221/.config/rclone/rclone.conf" not found - using defaults
2025/04/03 19:48:18 DEBUG : fs cache: renaming child cache item "file1.txt" to be canonical for parent "/Users/gh221/Dev/rcloneuchg"
2025/04/03 19:48:18 DEBUG : Creating backend with remote "file3.txt"
2025/04/03 19:48:18 DEBUG : fs cache: renaming cache item "file3.txt" to be canonical "/Users/gh221/Dev/rcloneuchg/file3.txt"
2025/04/03 19:48:18 DEBUG : file1.txt: Need to transfer - File not found at Destination
2025/04/03 19:48:18 DEBUG : /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt.deda4a9f.partial: isCloned: true, error: <nil>
2025/04/03 19:48:18 DEBUG : file1.txt: md5 = 09f7e02f1290be211da707a266f153b3 OK
2025/04/03 19:48:18 ERROR : file1.txt.deda4a9f.partial: partial file rename failed: rename /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt.deda4a9f.partial /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt: operation not permitted
2025/04/03 19:48:18 INFO : file1.txt.deda4a9f.partial: Removing failed copy
2025/04/03 19:48:18 INFO : file1.txt.deda4a9f.partial: Failed to remove failed copy: remove /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt.deda4a9f.partial: operation not permitted
2025/04/03 19:48:18 ERROR : Attempt 1/3 failed with 1 errors and: rename /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt.deda4a9f.partial /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt: operation not permitted
2025/04/03 19:48:18 DEBUG : file1.txt: Need to transfer - File not found at Destination
2025/04/03 19:48:18 DEBUG : /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt.deda4a9f.partial: isCloned: false, error: couldn't copy from /Users/gh221/Dev/rcloneuchg/file1.txt to /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt.deda4a9f.partial: errno -1
2025/04/03 19:48:18 ERROR : file1.txt: Failed to copy: couldn't copy from /Users/gh221/Dev/rcloneuchg/file1.txt to /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt.deda4a9f.partial: errno -1
2025/04/03 19:48:18 INFO : file1.txt.deda4a9f.partial: Removing failed copy
2025/04/03 19:48:18 INFO : file1.txt.deda4a9f.partial: Failed to remove failed copy: remove /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt.deda4a9f.partial: operation not permitted
2025/04/03 19:48:18 ERROR : Attempt 2/3 failed with 1 errors and: couldn't copy from /Users/gh221/Dev/rcloneuchg/file1.txt to /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt.deda4a9f.partial: errno -1
2025/04/03 19:48:18 DEBUG : file1.txt: Need to transfer - File not found at Destination
2025/04/03 19:48:18 DEBUG : /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt.deda4a9f.partial: isCloned: false, error: couldn't copy from /Users/gh221/Dev/rcloneuchg/file1.txt to /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt.deda4a9f.partial: errno -1
2025/04/03 19:48:18 ERROR : file1.txt: Failed to copy: couldn't copy from /Users/gh221/Dev/rcloneuchg/file1.txt to /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt.deda4a9f.partial: errno -1
2025/04/03 19:48:18 INFO : file1.txt.deda4a9f.partial: Removing failed copy
2025/04/03 19:48:18 INFO : file1.txt.deda4a9f.partial: Failed to remove failed copy: remove /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt.deda4a9f.partial: operation not permitted
2025/04/03 19:48:18 ERROR : Attempt 3/3 failed with 1 errors and: couldn't copy from /Users/gh221/Dev/rcloneuchg/file1.txt to /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt.deda4a9f.partial: errno -1
2025/04/03 19:48:18 INFO :
Transferred: 6 B / 6 B, 100%, 0 B/s, ETA -
Errors: 1 (retrying may help)
Server Side Copies: 1 @ 6 B
Elapsed time: 0.0s
2025/04/03 19:48:18 DEBUG : 5 go routines active
2025/04/03 19:48:18 NOTICE: Failed to copy: couldn't copy from /Users/gh221/Dev/rcloneuchg/file1.txt to /Users/gh221/Dev/rcloneuchg/file3.txt/file1.txt.deda4a9f.partial: errno -1
>