Getting object not found when copying a file to a union backend with both upstreams being on OneDrive for Business
Run the command 'rclone version' and share the full output of the command.
rclone v1.61.1
os/version: arch (64 bit)
os/kernel: 6.2.6-arch1-1 (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.19.4
go/linking: dynamic
go/tags: none
Which cloud storage system are you using? (eg Google Drive)
OneDrive for Business
The command you were trying to run (eg rclone copy /tmp remote:tmp)
touch x
rclone copy x u:
The rclone config contents with secrets removed.
[main]
type = onedrive
token = <redacted>
drive_id = <redacted>
drive_type = business
[u]
type = union
upstreams = main: main:/xyz
A log from the command with the -vv flag
2023/03/18 17:19:54 DEBUG : rclone: Version "v1.61.1" starting with parameters ["/usr/bin/rclone" "copy" "x" "u:" "-vv" "--log-file" "/tmp/x.log"]
2023/03/18 17:19:54 DEBUG : Creating backend with remote "x"
2023/03/18 17:19:54 DEBUG : Using config file from "/tmp/rclone.conf"
2023/03/18 17:19:54 DEBUG : fs cache: adding new entry for parent of "x", "/home/owner"
2023/03/18 17:19:54 DEBUG : Creating backend with remote "u:"
2023/03/18 17:19:54 DEBUG : Creating backend with remote "main:/xyz"
2023/03/18 17:19:54 DEBUG : Creating backend with remote "main:"
2023/03/18 17:19:54 DEBUG : fs cache: renaming cache item "main:/xyz" to be canonical "main:xyz"
2023/03/18 17:19:54 DEBUG : fs cache: switching user supplied name "main:/xyz" for canonical name "main:xyz"
2023/03/18 17:19:54 DEBUG : union root '': actionPolicy = *policy.EpAll, createPolicy = *policy.EpMfs, searchPolicy = *policy.FF
2023/03/18 17:19:55 DEBUG : x: Need to transfer - File not found at Destination
2023/03/18 17:19:57 ERROR : x: Failed to copy: object not found
2023/03/18 17:19:57 ERROR : Attempt 1/3 failed with 1 errors and: object not found
2023/03/18 17:19:57 DEBUG : x: Need to transfer - File not found at Destination
2023/03/18 17:19:58 ERROR : x: Failed to copy: object not found
2023/03/18 17:19:58 ERROR : Attempt 2/3 failed with 1 errors and: object not found
2023/03/18 17:19:59 DEBUG : x: Need to transfer - File not found at Destination
2023/03/18 17:20:00 ERROR : x: Failed to copy: object not found
2023/03/18 17:20:00 ERROR : Attempt 3/3 failed with 1 errors and: object not found
2023/03/18 17:20:00 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 6.0s
2023/03/18 17:20:00 DEBUG : 5 go routines active
2023/03/18 17:20:00 Failed to copy: object not found
Running rclone copy x main: and rclone copy x main:/xyz works
Adding a local backend as a third upstream and setting create_policy = all resulted in the command succeeding and the file appearing in all three upstreams
As mentioned in my second comment, the command somehow works if I add a third, non-OneDrive for Business upstream, so I doubt it's got to do with my config
That says it has no bytes free. This means none of the remotes rclone is trying to use has free space to store things on - this will give the error you see.