You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mind to run this query: (it's might be a bit costly, but it should give us some hints if there is already a mismatch in the DB or just on the object store)
SELECT fileids FROM (
SELECT DISTINCT(SUBSTRING_INDEX(SUBSTRING_INDEX(f1.path, '/', -2), '/', 1)) AS fileids
FROM oc_filecache f1
WHEREf1.storage= (SELECT numeric_id FROM oc_storages WHERE id LIKE"local::%"LIMIT1) ANDf1.pathLIKE'appdata_%/preview/%.png'
) as r
WHEREr.fileids NOT IN (SELECTf2.fileidFROM oc_filecache f2);
If you have multiple local storages (when using the external storage app with local storage for example) then maybe replace the (SELECT numeric_id FROM oc_storages WHERE id LIKE "local::%" LIMIT 1) with the specific numeric ID of local::/YOUR/DATA/DIR/PATH.
This query basically extracts all the file IDs from the preview paths and then checks them against the entries in the file cache. That then should give us a hint on which previews exist for files that don't exist anymore.
@MorrisJobke as i'm having these issues (as pointed in the 1st post on #20333 ) your query returns an empty result:
MariaDB [nextcloud]> SELECT fileids FROM (
-> SELECT DISTINCT(SUBSTRING_INDEX(SUBSTRING_INDEX(f1.path, '/', -2), '/', 1)) AS fileids
-> FROM oc_filecache f1
-> WHERE f1.storage = (SELECT numeric_id FROM oc_storages WHERE id LIKE "local::%" LIMIT 1) AND f1.path LIKE 'appdata_%/preview/%.png'
-> ) as r
-> WHERE r.fileids NOT IN (SELECT f2.fileid FROM oc_filecache f2);
Empty set (0.004 sec)
I don't think this are (only) previews, as i pointed at #20333 (comment) because i can see objects in the bucket >10Mb so clearly these are not previews.
Activity
MorrisJobke commentedon Jul 29, 2020
Mind to run this query: (it's might be a bit costly, but it should give us some hints if there is already a mismatch in the DB or just on the object store)
If you have multiple local storages (when using the external storage app with local storage for example) then maybe replace the
(SELECT numeric_id FROM oc_storages WHERE id LIKE "local::%" LIMIT 1)with the specific numeric ID oflocal::/YOUR/DATA/DIR/PATH.This query basically extracts all the file IDs from the preview paths and then checks them against the entries in the file cache. That then should give us a hint on which previews exist for files that don't exist anymore.
solracsf commentedon Nov 24, 2020
@MorrisJobke as i'm having these issues (as pointed in the 1st post on #20333 ) your query returns an empty result:
I don't think this are (only) previews, as i pointed at #20333 (comment) because i can see objects in the bucket >10Mb so clearly these are not previews.
SimplyCorbett commentedon Nov 25, 2020
Then your issue is different from mine.
I'm no longer on S3 though so I'm going to go ahead and close this ticket.
fnkr commentedon Nov 25, 2020
@SimplyCorbett Can you please keep this open? It's still an issue. You can unsubscribe if you want. :)
SimplyCorbett commentedon Nov 26, 2020
Is it? Nobody else has actually posted anything that replicates my issue.
Is the issue what @acsfer posted in #20333 or is the issue preview-only as mentioned in my OP?
solracsf commentedon Nov 26, 2020
I can replicate your exact issue. I'm just saying this is bigger than simply the previews with my test case.
Please keep in mind that Git issues are not your issues or my issues but issues that are lacking triage.
You're not using S3 anymore so you can't contribute anymore to debug it. No problem. Just unsubscribe from it and thanks for having report it 👍
SimplyCorbett commentedon Nov 26, 2020
Well, I stopped using S3 because of this issue so I'm still invested.
But I did not have the issues you mention in #20333 so perhaps you are seeing a placebo effect with this one?
Or one of the nextcloud updates introduced a new problem..
I'll go ahead and keep this open then.
szaimen commentedon Jun 18, 2021
Related #26014
charleypaulus commentedon Oct 14, 2022
I have the same issue with Swift primary object storage.
charleypaulus commentedon Oct 28, 2022
I wrote this script. It:
szaimen commentedon Jan 9, 2023
Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you!