Hi community ,
my nextcloud 17 stopped working, probably caused by a server overload. The result was that i got a PHP error message
] [php7:error] [pid 21059] [client 2.244.66.235:63583] PHP Fatal error: DateTime::__construct(): Timezone database is corrupt - this should never happen! in /var/www/html/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php on line 56
After restarting apache, nextcloud works again, but web access for one of the user directories shows a date and time far into the future (somewhere in the year 4500!) . This goes for only one of the many directories and subdirectories (at least I haven’t found any more )
The subdirectories beneath the one with the incorrect date show correct date and time infos. Physically, in the server data directory, everything looks correct.
So, it seems it is a problem of the nextcloud structure. Probably in one of the mysql tables there is this wrong date. Can someon point me to a possibe solution?
Please check the directory date on the console using the stat command. If this is ok, you can use the occ files:scan ...command to update the database.
The 1915 date probably translates into the future, thus showing a date in the year 4500 in the nextcloud web interface.
As these are customer data, I don’t feel like touching the content of the file. But I set the mtime attribute
to some reasonable value, will nextcloud correct its tables when I redo the occ:scan?
In the mysql-nextcloud-table “oc_filecache”, however, I still find an mtime entry for the top level directory “team-bonn”, which points into the future:
“79870665600” converts to “Sat, 01 Jan 4501 00:00:00 GMT”, which is what shows on the nextcloud web page.
As the stat command on this directory seems OK, I am not sure what to do now.
Have you updated the file table by executing occ files:scan ...? You can also try to clear the web server caches by restarting the instances if this doesn’t help.