[dbx-1]
type = dropbox
token = [snip]
[dbx-2]
type = dropbox
token = [snip]
[dbx-union]
type = union
upstreams = dbx-1:rclone-union-root dbx-2:rclone-union-root
[mnta-unencrypted]
type = alias
remote = dbx-union:mnta-unencrypted
A log from the command with the -vv flag
> rclone copyto /tmp/empty mnta-unencrypted:empty -vvv
2022/11/04 16:18:23 DEBUG : rclone: Version "v1.61.0-beta.6524.5b5fdc6bc" starting with parameters ["rclone" "copyto" "/tmp/empty" "mnta-unencrypted:empty" "-vvv"]
2022/11/04 16:18:23 DEBUG : Creating backend with remote "/tmp/empty"
2022/11/04 16:18:23 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2022/11/04 16:18:23 DEBUG : fs cache: adding new entry for parent of "/tmp/empty", "/tmp"
2022/11/04 16:18:23 DEBUG : Creating backend with remote "mnta-unencrypted:"
2022/11/04 16:18:23 DEBUG : Creating backend with remote "dbx-union:mnta-unencrypted"
2022/11/04 16:18:23 DEBUG : Creating backend with remote "dbx-2:rclone-union-root"
2022/11/04 16:18:23 DEBUG : Creating backend with remote "dbx-1:rclone-union-root"
2022/11/04 16:18:23 DEBUG : Creating backend with remote "dbx-2:rclone-union-root/mnta-unencrypted"
2022/11/04 16:18:23 DEBUG : Creating backend with remote "dbx-1:rclone-union-root/mnta-unencrypted"
2022/11/04 16:18:23 DEBUG : union root 'mnta-unencrypted': actionPolicy = *policy.EpAll, createPolicy = *policy.EpMfs, searchPolicy = *policy.FF
2022/11/04 16:18:23 DEBUG : fs cache: renaming cache item "mnta-unencrypted:" to be canonical "dbx-union:mnta-unencrypted"
2022/11/04 16:18:23 INFO : Dropbox root 'rclone-union-root/mnta-unencrypted': Committing uploads - please wait...
2022/11/04 16:18:23 INFO : Dropbox root 'rclone-union-root/mnta-unencrypted': Committing uploads - please wait...
2022/11/04 16:18:23 DEBUG : empty: Need to transfer - File not found at Destination
2022/11/04 16:18:24 DEBUG : empty: Uploading chunk 1/0
2022/11/04 16:18:24 DEBUG : empty: Uploading chunk 2/0
2022/11/04 16:18:24 ERROR : empty: Failed to copy: upload failed: batcher is shutting down
2022/11/04 16:18:24 ERROR : Fatal error received - not attempting retries
2022/11/04 16:18:24 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (fatal error encountered)
Elapsed time: 1.5s
2022/11/04 16:18:24 DEBUG : 11 go routines active
2022/11/04 16:18:24 INFO : Dropbox root 'rclone-union-root': Committing uploads - please wait...
2022/11/04 16:18:24 INFO : Dropbox root 'rclone-union-root': Committing uploads - please wait...
2022/11/04 16:18:24 Failed to copyto: upload failed: batcher is shutting down
> rclone copyto /tmp/empty dbx-union:empty -vvv
2022/11/04 16:18:36 DEBUG : rclone: Version "v1.61.0-beta.6524.5b5fdc6bc" starting with parameters ["rclone" "copyto" "/tmp/empty" "dbx-union:empty" "-vvv"]
2022/11/04 16:18:36 DEBUG : Creating backend with remote "/tmp/empty"
2022/11/04 16:18:36 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2022/11/04 16:18:36 DEBUG : fs cache: adding new entry for parent of "/tmp/empty", "/tmp"
2022/11/04 16:18:36 DEBUG : Creating backend with remote "dbx-union:"
2022/11/04 16:18:36 DEBUG : Creating backend with remote "dbx-2:rclone-union-root"
2022/11/04 16:18:36 DEBUG : Creating backend with remote "dbx-1:rclone-union-root"
2022/11/04 16:18:36 DEBUG : union root '': actionPolicy = *policy.EpAll, createPolicy = *policy.EpMfs, searchPolicy = *policy.FF
2022/11/04 16:18:36 DEBUG : empty: Need to transfer - File not found at Destination
2022/11/04 16:18:37 DEBUG : empty: Uploading chunk 1/0
2022/11/04 16:18:37 DEBUG : empty: Uploading chunk 2/0
2022/11/04 16:18:38 DEBUG : Dropbox root 'rclone-union-root': Adding "/rclone-union-root/empty" to batch
2022/11/04 16:18:38 DEBUG : Dropbox root 'rclone-union-root': Batch idle for 500ms so committing
2022/11/04 16:18:38 DEBUG : Dropbox root 'rclone-union-root': Committing sync batch length 1 starting with: /rclone-union-root/empty
2022/11/04 16:18:39 DEBUG : Dropbox root 'rclone-union-root': Committed sync batch length 1 starting with: /rclone-union-root/empty
2022/11/04 16:18:39 DEBUG : empty: dropbox = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 OK
2022/11/04 16:18:39 INFO : empty: Copied (new)
2022/11/04 16:18:39 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Transferred: 1 / 1, 100%
Elapsed time: 2.5s
2022/11/04 16:18:39 DEBUG : 10 go routines active
2022/11/04 16:18:39 INFO : Dropbox root 'rclone-union-root': Committing uploads - please wait...
2022/11/04 16:18:39 INFO : Dropbox root 'rclone-union-root': Committing uploads - please wait...
We've got 3 backends involved here, dropbox, union and alias. The union backend definitely pins backends its created but the alias backend doesn't...
OK after a lot of investigation I've managed to fix it. What was happening is when the alias backend was being renamed in the cache it was finalized when it shouldn't have been. This turned out to be a simple fix in rclone's backend cache.
The problem potentially affects any aliases for backends which implement Shutdown.