At first the activity panel of my nextcloud server:
As you can see the file has been uploaded and several hours later it was deleted and uploaded again.
Now the logs of the two uploading clients:
client A
Command:
rclone sync /mnt/user/Movie owncube:movie --create-empty-src-dirs --ignore-checksum --bwlimit 3M --checkers 2 --transfers 1 -v --stats 10s
Logs:
2020/07/27 21:05:40 INFO :
Transferred: 107.889G / 40.939 TBytes, 0%, 2.923 MBytes/s, ETA 24w1d13h34s
Checks: 112 / 112, 100%
Transferred: 6 / 3074, 0%
Elapsed time: 10h29m56.8s
Transferring:
* AB/A.mkv: 0% /26.450G, 0/s, -
...
2020/07/27 23:45:50 INFO :
Transferred: 134.340G / 40.939 TBytes, 0%, 2.902 MBytes/s, ETA 24w2d16h7m35s
Checks: 112 / 112, 100%
Transferred: 6 / 3074, 0%
Elapsed time: 13h10m6.8s
Transferring:
* AB/A.mkv:100% /26.450G, 993.676k/s, 0s
2020/07/27 23:46:00 INFO :
Transferred: 134.356G / 40.964 TBytes, 0%, 2.902 MBytes/s, ETA 24w2d19h5m26s
Checks: 112 / 112, 100%
Transferred: 6 / 3074, 0%
Elapsed time: 13h10m16.8s
Transferring:
* AB/A.mkv: 0% /26.450G, 3.311M/s, 2h16m14s
(upload is still running)
client B
Command:
rclone copy /mnt/user/movie owncube:movie --create-empty-src-dirs --ignore-checksum --bwlimit 3M --checkers 2 --transfers 1 -v --stats 10s
Logs:
2020/07/27 19:25:16 INFO :
Transferred: 52.024G / 36.759 TBytes, 0%, 2.833 MBytes/s, ETA 22w3d6h38m33s
Checks: 124 / 124, 100%
Transferred: 2 / 2887, 0%
Elapsed time: 5h13m27.2s
Transferring:
* AB/A.mkv: 0% /26.450G, 0/s, -
...
2020/07/27 21:58:26 INFO :
Transferred: 78.475G / 36.759 TBytes, 0%, 2.870 MBytes/s, ETA 22w1d2h31m1s
Checks: 124 / 124, 100%
Transferred: 2 / 2887, 0%
Elapsed time: 7h46m37.2s
Transferring:
* AB/A.mkv:100% /26.450G, 1.926M/s, 0s
2020/07/27 21:58:28 INFO : AB/A.mkv: Copied (new)
2020/07/27 21:58:28 INFO : AB/A.mkv: Copied (new)
Overview
2020/07/27 19:25:16 Client B starts uploading A.mkv
2020/07/27 21:05:40 Client A starts uploading A.mkv
2020/07/27 21:58:28 Client B successfully uploaded A.mkv
2020/07/27 23:45:50 Client A deletes existing A.mkv (no log entry)
2020/07/27 23:45:50 Client A successfully uploaded A.mkv
2020/07/27 23:45:50 Client A starts uploading A.mkv
As its still running I do not know what happens next. I will update this bug report tomorrow.
But for now there are already open questions:
1.) Why has Client A started to upload A.mkv although it's already uploading through Client B. Isn't there a "uploaded lock" built in Nextcloud to avoid such situations?
2.) Why isn't there a log entry for the file deletion?
3.) After Client A has overwritten the existing A.mkv, why does it start a second upload?