-
Notifications
You must be signed in to change notification settings - Fork 2.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
Scanner doesn't propagate etags any more when file changed #24255
Comments
This is critical because it's the only way to properly make ownCloud detect remote changes for now. |
can reproduce |
fix is here #24256 |
@icewind1991 thanks a lot. Any reason why it wasn't triggered any more ? Or did it happen indirectly through the recent changes to propagation code ? |
@RealRancor unlikely. |
Mhh, but the user there has issues with oC9 that files changed on external storages are not synced / detected by the sync client. And shouldn't this be caused if etags are not updated / correclty propagated? |
Ah, that part yes. I only saw "out of memory" issues, which won't be solved by this PR. |
Update : with oc 9.0.2 RC-2 and oc_9.1.0 pAlp-1 and Client 2.2.0 Beta 2 the same situation : Synology DS414 mit DSM 5.2 | ? : rescan runs and logs are storing, but no file update is running from server to client. Regarding the filescan I got from the Logfile as follow : With oc 9.0.1 (not 9.1.0) Starting scan for user 1 out of 1 (rescan) +---------+-------+--------------+ ----- End ---------- with oc 9.0.2 RC-2 Starting scan for user 1 out of 1 (rescan) ----- End ---------- |
@Kaelber can you check the etags like I did in my original steps ? |
To test I got the problem with oc 9.0.2 from the filescan log as follows : An unhandled exception has been thrown:
|
@Kaelber it looks like you're having environment problems with your database |
Update : with oc 9.1.0 Beta 1 and Client 2.2.0 the follow situation : Synology DS414 mit DSM 5.2 | ? : scan runs and logs are storing, file only updating, if I use --all in the scan command. A USER in the command is NOT RUNNING, no update is done. Synology DS712+ mit DSM 6 | ? : rescan runs and logs are storing, but no file update is running from server to client, also not with --all in the scan command Regarding the filescan I got from the Logfile as follow : Synology DS414 with DSM 5.2 Scanning files for 4 users +---------+--------+--------------+ ----- End ---------- Synology DS712+ with DSM 6 Scanning files for 4 users ----- End ---------- |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps:
occ files:scan --all
select fileid,path,size,mtime,storage_mtime,etag from oc_filecache where storage=3 order by path;
. Take note of etags.occ files:scan --all
select fileid,path,size,mtime,storage_mtime,etag from oc_filecache where storage=3 order by path;
. Compare etags.Expected result
After the second scan, the etag and size of all parents were updated up to the storage root.
Actual result
After the second scan, only the size changed but not the etag.
Only the etag of "test.txt" changed, and so does its "storage_mtime".
Versions
Works in ownCloud 8.2.3
Broken in ownCloud 9.0.1
@icewind1991 please help fixing this regression, thanks.
CC @MorrisJobke @bboule
The text was updated successfully, but these errors were encountered: