ERROR 412 An If-Match header was specified, but none of the specified ETags matched.
This error corresponds to a check of the file on the server before the upload and when the file on the server seems to have changed between the sync plan and the upload: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag#avoiding_mid-air_collisions
The error appears on 2 computers with 2 and 4 files and the 2 files are in common.
Sync are not performed at the same time on the 2 computers so no collision can occur.
09-25 07:30:06:495 [ info nextcloud.sync.discovery ]: Processing "2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION" | (db/local/remote) | valid: true/true/true | mtime: 1695222997/1695366257/1695222997 | size: 1260/1449/1260 | etag: "fae14c87ce086f57bcf1e2cd829f0d24"//"fae14c87ce086f57bcf1e2cd829f0d24" | checksum: "SHA1:96333840810072d8a26572ddbba87aedbd570bf4"//"" | perm: "WDNVRm"//"WDNVRm" | fileid: "108744949ocr4hnlcfib7"//"108744949ocr4hnlcfib7" | type: CSyncEnums::ItemTypeFile/CSyncEnums::ItemTypeFile/CSyncEnums::ItemTypeFile | e2ee: false/false | e2eeMangledName: ""/"" | file lock: not locked//not locked | metadata missing: /false/
09-25 07:30:06:495 [ info nextcloud.sync.engine ]: blacklist entry for "2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION" has expired!
--------------------------------------------------------
09-25 07:30:08:984 [ info nextcloud.sync.statustracker ]: Investigating "2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION" OCC::SyncFileItem::NoStatus CSyncEnums::CSYNC_INSTRUCTION_SYNC OCC::SyncFileItem::Up
--------------------------------------------------------
09-25 07:30:09:011 [ info nextcloud.sync.propagator ]: Starting CSyncEnums::CSYNC_INSTRUCTION_SYNC propagation of "2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION" by OCC::PropagateUploadFileV1(0x1ff524f2de0)
09-25 07:30:09:011 [ debug default ] [ OCC::PropagateUploadFileCommon::startUploadFile ]: Running the compute checksum
09-25 07:30:09:011 [ debug default ] [ OCC::PropagateUploadFileCommon::slotComputeContentChecksum ]: Trying to compute the checksum of the file
09-25 07:30:09:012 [ debug default ] [ OCC::PropagateUploadFileCommon::slotComputeContentChecksum ]: Still trying to understand if this is the local file or the uploaded one
09-25 07:30:09:012 [ info nextcloud.sync.checksums ]: Computing "SHA1" checksum of "C:/DocDD/Inrae/2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION" in a thread
-------------------------------------------------------
09-25 07:30:09:028 [ info nextcloud.sync.checksums ]: Computing "SHA1" checksum of "C:/DocDD/Inrae/2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION" in a thread
09-25 07:30:09:029 [ info nextcloud.sync.propagator.upload.v1 ]: "MyDrive/Inrae/2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION" "SHA1:f26f15119a78882fd1045f35c17bee0017112669"
09-25 07:30:09:029 [ info nextcloud.sync.accessmanager ]: 3 "" "https://nextcloud.inrae.fr/remote.php/dav/files/ddorchies/MyDrive/Inrae/2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION" has X-Request-ID "fd3c617d-09a5-4916-99e9-0c3ff11aa81a"
09-25 07:30:09:029 [ info nextcloud.sync.networkjob ]: OCC::PUTFileJob created for "https://nextcloud.inrae.fr" + "MyDrive/Inrae/2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION" "OCC::PropagateUploadFileV1"
-------------------------------------------------------
09-25 07:30:09:225 [ info nextcloud.sync.propagator.root.directory ]: scheduleSelfOrChild OCC::PropagatorJob::Running pending uploads 0 subjobs state OCC::PropagatorJob::Running
09-25 07:30:09:422 [ warning nextcloud.sync.networkjob ]: QNetworkReply::UnknownContentError "Server replied \"412 Precondition failed\" to \"PUT https://nextcloud.inrae.fr/remote.php/dav/files/ddorchies/MyDrive/Inrae/2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION\"" QVariant(int, 412)
09-25 07:30:09:422 [ info nextcloud.sync.networkjob.put ]: PUT of "https://nextcloud.inrae.fr/remote.php/dav/files/ddorchies/MyDrive/Inrae/2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION" FINISHED WITH STATUS "UnknownContentError Server replied \"412 Precondition failed\" to \"PUT https://nextcloud.inrae.fr/remote.php/dav/files/ddorchies/MyDrive/Inrae/2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION\"" QVariant(int, 412) QVariant(QString, "Precondition failed")
09-25 07:30:09:480 [ info nextcloud.sync.propagator.upload ]: Error count for maybe-reset error 412 on file "2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION" is 1
09-25 07:30:09:480 [ info nextcloud.sync.database ]: Setting blacklist entry for "2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION" 4 "Server replied \"412 Precondition failed\" to \"PUT https://nextcloud.inrae.fr/remote.php/dav/files/ddorchies/MyDrive/Inrae/2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION\" (An If-Match header was specified, but none of the specified ETags matched.)" 1695619809 0 1695366257 "fae14c87ce086f57bcf1e2cd829f0d24" "" 0
09-25 07:30:09:480 [ warning nextcloud.sync.propagator ]: escalating soft error on "2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION" to normal error, 412
09-25 07:30:09:480 [ warning nextcloud.sync.propagator ]: Could not complete propagation of "2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION" by OCC::PropagateUploadFileV1(0x1ff524f2de0) with status OCC::SyncFileItem::NormalError and error: "Server replied \"412 Precondition failed\" to \"PUT https://nextcloud.inrae.fr/remote.php/dav/files/ddorchies/MyDrive/Inrae/2021-2024 TALANOA/04-src/talanoa_hydro/DESCRIPTION\" (An If-Match header was specified, but none of the specified ETags matched.)"
09-25 07:30:09:484 [ info nextcloud.sync.propagator.root.directory ]: scheduleSelfOrChild OCC::PropagatorJob::Running pending uploads 0 subjobs state OCC::PropagatorJob::Running