I am also getting this āā¦has invalid time reported by server. Do not save itā warning for multiple files, every time I sync. That is based off a clean install of 3.4.1 (done yesterday), on a clean install of Windows 11 (done the day before).
The frustrating thing is that Nextcloud is giving me no information or guidance on what to do next. How can I save it or not save it? The error shows but I can have no further interaction with it.
Hi!
Iām also facing this huge issue. For me, this is a big issue, because we are now slowly implementing this in our company and Iām responsible for the project. So I really really hope this can be tackled soon!
If we canāt use the nextcloud client on windows, then we canāt use nextcloud at all!
Also the bash script didnāt give me any output at all, neither with list nor with fix argument!
Thanks!
Best regards!
Stefan
@stefanp2021 as you have commercial interest to fix the issue it would be great you spend little resources to help out people still affected by this issue. I think nice script could be written within 4-8 working hoursā¦
Starting with SQL queries in my post #54 itās possible to
build a list of files with invalid time stamp
find versions of this times with correct time stamp
build (a list) a command to copy/move the last valid version
Iāve seen the same on new installed NC client, trying to sync 100+ GBā¦ I have 2 other PCās syncing the same from the same account with ānoā problems.
I also saved the file list just in case. These takes all files with at least 3 bytes and gave them a date from August 2020.
On the server I did the same but with current time.
I then did a occ files:scan and also the more important groupfolders:scan - it looks like you cannot call the group-folders scan with just one file path so it goes through everything.
I still do get some invalid modification times error on the latest sync and also the more worrying at least 350+ times:
Server hat "412 Precondition failed" auf "PUT https://SERVER/remote.php/dav/files/USER/PATH/file.ext" geantwortet (An If-Match header was specified, but none of the specified ETags matched.)
What is that error and how can I fix it.
P.S: Due to some bad architecture decisions I am still stuck at v20.0.6 - but before upgrading by migrating to an official Docker image Iād like to get this sync (only 3 windows clients) to safely executeā¦
For some reason Nextcloud GmbH decided not to help users with a real fix but just offered some half solutions as you mentioned aboveā¦ additionally they added some dead-ends to the sync process like the āfixā to not replicate files with invalid timestamp, without offering a good way to fix such filesā¦
at the end if you donāt have good backup to recover valid state you are limited to manually fix all the issues one by one before you continueā¦ 350 files is a doable amountā¦ nothing one appreciates but it could be doneā¦ as far I remember files with valid timestamp on the server have preference over files with invalid timestamp stored on the client - you could touchthe files, upload them into server file system and run occ file:scanā¦ this should fix the issue at the cost of finally loosing mtimeā¦
Iām really leery now of this stuff, installed a fresh NC 23 and using the 3.4.1 client I donāt see stuff get synced reliably. I just donāt have anything specific to point at except ānot all files get syncedā which is not easy to pinpoint. However, never happened with earlier versions, so thereās that. Iām thrilled about not implementing NC in the company at least, that would have been bad with this level of reliability, potentially a bunch of users complaining of lost files, what a nightmare.
Update: So far so good. I synced one of our 3 windows nextcloud clients
with my idea above, namely
manual find on server with all mtime error files
touch with current time for all these files
occ files scan and groupfolder scan
above it seems to have synced. Dont know if the find & mtime on the windows machine helped or not. Of course I lost the last modification time for all these 3000+ files, but if something were missing or newer on the client (and overwritten with server version) I see that it would show up in the activity log so I would be able to manually restore it from backups.
One directory did completely strike on sync. I deleted it and even had to copy it from backup & change the name on first sync. Afterwards I renamed it back to the original name and it worked.
my qnap documentaion word file I had open the whole time also had an irrecoverable conflict, so i deleted all, slightly renamed and re-uploaded it.