Nextcloud client Error : UNABLE TO SYNC DUE TO INVALID CHANGE TIME

NEXTCLOUD version 3.9.3 for windows
Operating System and version : windows 10

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): replace me
Operating system and version (eg, Ubuntu 20.04): replace me
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): replace me

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N):

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

PASTE HERE

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

Can you provide a screenshot or exact error message? I don’t see that anywhere in the code.

Also some context about what you were doing that triggers the error would be helpful if you’d like anyone to troubleshoot your situation.


This is the screenshot of the error message.

HI,
synchronization was in progress after the update.

Thanks

G.

hi,
Do any of you have the same problem?
10ks

G.

Just a shot in the dark… Have you checked if the time and date on your server and client computer are set correctly / identically…

If that’s not what causes the issue, I would remove the account completely from the client, rename the synchronasiation folder or backup it up to an external drive and then delete it on the computer. After that log on into the client again and perform a new synchronization.

Make sure you log out from your account before you move or delete the folder on your computer!

If the files in error are present on the server side, check their modification time.
I guess you’ll see ‘1970-01-01’.

I already got this issue, I solved it running the following commands:

  • use find to list all files in error :
    find /path/to/nextckloud/data -type f -newermt "1900-01-01" ! -newermt "1980-01-01" -exec ls -l {} \;

  • If the result seems OK, use ‘touch’ to update modification time:

find /path/to/nextckloud/data -type f -newermt "1900-01-01" ! -newermt "1980-01-01" -exec touch {} +

Then, scan your nextcloud files to update nextcloud database:

sudo -u apache php /var/www/html/nextcloud/occ files:scan

Hope it can help

Aurélien