-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrupted file timestamps #30263
Comments
Sorry for being vague... I haven't figured out what triggers it yet... |
Hi there, the issue was due to nextcloud/desktop#4016. Should be fixed in the next desktop release |
It is good to see the root issue will be fixed by nextcloud/desktop#4016 in the next desktop release. Yet server side files already got corrupted timestamps. |
I am using ZFS (which I can wholeheartedly recommend), so rolling back was easy in my case. Thanks for pointing out #30258 (comment) which looks promising too! |
ZFS sounds good, but is not available in a managed nextcloud environment.
Also, we need to be able to only restore affected files as there have been other changes since.
Am 17. Dezember 2021 14:08:35 MEZ schrieb Tie-fighter ***@***.***>:
I am using ZFS (which I can wholeheartedly recommend), so rolling back was easy in my case.
Thanks for pointing out #30258 (comment) which looks promising too!
--
Reply to this email directly or view it on GitHub:
#30263 (comment)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
--
Philipp Schlesinger
|
I understand. For clarification: ZFS snapshots can be mounted (and are by default) so they can be accessed directly via the filesystem. Finding affected files should be simple using find: Restoring timestamps can be done using rsync: This is of course all on filesystem level. Nextcloud will probably require a files:scan afterwards. Unsure what this affects saved file versions, etc. That's how I would go about it. Please correct me if I am wrong somewhere. PS: If you don't care about the correctness of the timestamp, you could also simply just touch the files. |
(just to add: there is also a Nextcloud app that allows you to browse ZFS snapshots directly: https://apps.nextcloud.com/apps/files_snapshots) |
There is not! :O |
Had the same issue (corrupted timestamps) on MacOS 10.14 (Mojave), desktop client 3.4.1. It seems that desktop client somehow corrupted timestamps on server side (running Debian) as well. Some files attribuites are 52 years back (for example, created 1970-01-01), some 82 years ahead (modifiend on 2106-02-07). |
It seems like there is still an issue. See also nextcloud/desktop#4188 |
Steps to reproduce
Expected behaviour
Actual behaviour
Files have a filesystem date of 1.1.1970, version restore says "invalid date", files get uploaded again.
Server configuration detail
Operating system: FreeBSD 12.2-RELEASE-p10 FreeBSD 12.2-RELEASE-p10 b26f74b5984(HEAD) TRUENAS amd64
Webserver: nginx/1.20.1 (fpm-fcgi)
Database: mysql 10.5.13
PHP version:
8.0.13
Modules loaded: Core, date, libxml, pcre, hash, json, Reflection, SPL, session, standard, cgi-fcgi, mysqlnd, apcu, bcmath, bz2, ctype, curl, dom, mbstring, fileinfo, filter, gd, gmp, iconv, imagick, intl, exif, openssl, PDO, posix, SimpleXML, xml, xmlwriter, zip, zlib, pdo_mysql, xmlreader, Zend OPcache
Nextcloud version: 23.0.0 - 23.0.0.10
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from: unknown
Signing status
Array
(
)
List of activated apps
Configuration (config/config.php)
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption:
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Client configuration
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36
Operating system:
Logs
Web server error log
Nextcloud log
Browser log
nothing relevant :/
The text was updated successfully, but these errors were encountered: