In a recent but now closed thread I reported an issue with a conflict where no winner could be determined: Avoiding bisync conflicts: No winner can be determined
I am unsure if the access times of the conflict files helps or not:
-rw-rw-r-- 1 salty salty 854 Jun 27 15:32 pom.xml.conflict1
-rw-rw-r-- 1 salty salty 1134 Jun 27 15:48 pom.xml.conflict2
My rclone version v1.67.0, config, and everything else is the same as that thread.
Here is every mention of the file from the logs:
2024/06/20 17:14:35 INFO : - Path2 File is new - code/mod1234/labs/lab2/task3/pom.xml
2024/06/20 17:14:35 INFO : - Path2 Queue copy to Path1 - idrive-sync-crypt:/code/mod1234/labs/lab2/task3/pom.xml
2024/06/20 17:14:48 INFO : code/mod1234/labs/lab2/task3/pom.xml: Copied (new)
2024/06/20 17:24:48 INFO : - Path2 File changed: size (larger), time (newer) - code/mod1234/labs/lab2/task3/pom.xml
2024/06/20 17:24:48 INFO : - Path2 Queue copy to Path1 - idrive-sync-crypt:/code/mod1234/labs/lab2/task3/pom.xml
2024/06/20 17:24:51 INFO : code/mod1234/labs/lab2/task3/pom.xml: Copied (replaced existing)
2024/06/27 15:39:06 INFO : - Path2 File changed: size (larger), time (newer) - code/mod1234/labs/lab2/task3/pom.xml
2024/06/27 15:39:09 INFO : - Path2 Queue copy to Path1 - idrive-sync-crypt:/code/mod1234/labs/lab2/task3/pom.xml
2024/06/27 15:39:11 INFO : code/mod1234/labs/lab2/task3/pom.xml: Copied (replaced existing)
2024/06/27 15:44:10 INFO : - Path1 File changed: size (larger), time (newer) - code/mod1234/labs/lab2/task3/pom.xml
2024/06/27 15:44:10 INFO : - Path2 File changed: size (larger), time (newer) - code/mod1234/labs/lab2/task3/pom.xml
2024/06/27 15:44:13 NOTICE: - WARNING New or changed in both paths - code/mod1234/labs/lab2/task3/pom.xml
2024/06/27 15:44:13 INFO : Files are equal! Skipping: code/mod1234/labs/lab2/task3/pom.xml
2024/06/27 15:44:28 ERROR : code/mod1234/labs/lab2/task3/pom.xml: failed to check as hash is missing
2024/06/27 15:44:28 INFO : code/mod1234/labs/lab2/task3/pom.xml: files not equal on recheck: code/mod1234/labs/lab2/task3/pom.xml code/mod1234/labs/lab2/task3/pom.xml
2024/06/27 15:44:32 ERROR : code/mod1234/labs/lab2/task3/pom.xml: failed to check as hash is missing
2024/06/27 15:44:32 INFO : code/mod1234/labs/lab2/task3/pom.xml: files not equal on recheck: code/mod1234/labs/lab2/task3/pom.xml code/mod1234/labs/lab2/task3/pom.xml
2024/06/27 15:49:09 INFO : - Path1 File changed: size (larger), time (newer) - code/mod1234/labs/lab2/task3/pom.xml
2024/06/27 15:49:09 INFO : - Path2 File changed: size (larger), time (newer) - code/mod1234/labs/lab2/task3/pom.xml
2024/06/27 15:49:12 ERROR : code/mod1234/labs/lab2/task3/pom.xml: sizes differ
2024/06/27 15:49:12 NOTICE: - WARNING New or changed in both paths - code/mod1234/labs/lab2/task3/pom.xml
2024/06/27 15:49:12 INFO : code/mod1234/labs/lab2/task3/pom.xml: Winner cannot be determined as times are equal. Path1: 2024-06-27 15:32:18.243949971 +0100 IST, Path2: 2024-06-27 15:32:18.243949971 +0100 IST, Difference: 0s
2024/06/27 15:49:12 INFO : code/mod1234/labs/lab2/task3/pom.xml: A winner could not be determined.
2024/06/27 15:49:12 NOTICE: - Path1 Renaming Path1 copy - idrive-sync-crypt:/code/mod1234/labs/lab2/task3/pom.xml.conflict1
2024/06/27 15:49:13 INFO : code/mod1234/labs/lab2/task3/pom.xml: Copied (server-side copy) to: code/mod1234/labs/lab2/task3/pom.xml.conflict1
2024/06/27 15:49:13 INFO : code/mod1234/labs/lab2/task3/pom.xml: Deleted
2024/06/27 15:49:13 NOTICE: - Path1 Queue copy to Path2 - local{b6816}:/home/daire/sync/code/mod1234/labs/lab2/task3/pom.xml.conflict1
2024/06/27 15:49:13 NOTICE: - Path2 Renaming Path2 copy - local{b6816}:/home/daire/sync/code/mod1234/labs/lab2/task3/pom.xml.conflict2
2024/06/27 15:49:13 INFO : code/mod1234/labs/lab2/task3/pom.xml: Moved (server-side) to: code/mod1234/labs/lab2/task3/pom.xml.conflict2
2024/06/27 15:49:13 NOTICE: - Path2 Queue copy to Path1 - idrive-sync-crypt:/code/mod1234/labs/lab2/task3/pom.xml.conflict2
2024/06/27 15:49:16 INFO : code/mod1234/labs/lab2/task3/pom.xml.conflict2: Copied (new)
2024/06/27 15:49:19 INFO : code/mod1234/labs/lab2/task3/pom.xml.conflict1: Copied (new)
If relevant I normally only develop on either my laptop or desktop at different locations and hours apart, so it should not be the case I was making changes to this file before they could be synced to the cloud and then to my other computer. Comparing the files conflict2 has a few extra lines I added, rather than the changes made in my last thread which were from using Find in Files
to Replace all
of a string with VS Code.
@nielash did already suggest --conflict-resolve path2
as an alternative to using newer
but I am unsure if that is a good fit, although this may be due to my ignorance of exactly how this works. I would assume that where a file exists on the cloud newer than on the laptop or desktop that encounters it, that newer file should be synced to the local, otherwise the local should be synced to the cloud, this way my most recent work is preserved.
Perhaps this is normally what happens, but conflicts deal with something more specific where the resolve choice comes into effect? Either way, what is causing these conflicts to occur, and how can I either prevent them or configure rclone to resolve them without affecting the work flow I have mentioned please?