hi,
my nextcloud log is full of errors of the sort:
[memories] Error: Failed to index folder //files/: File by id 1901879 not found
Nextcloud version (eg, 29.0.5): 30.0.2.2
Operating system and version (eg, Ubuntu 24.04): Debian 11 (bullseye)
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.62
PHP version (eg, 8.3): 8.2.26
So basically it can’t index any folder, that gets shared to other users.
The original shared folders actually are on a NAS connected via samba and the external storage app.
I tried occ files:cleanup which resulted in:
0 orphaned file cache entries deleted
0 orphaned file cache extended entries deleted
3 orphaned mount entries deleted
we’ll see if that helps but I don’t think that was it.
After investigating the fileid in the database, as you suggested, the files mentioned in the log are not actually files, they are folder names of old shared folders that do not exist any more.
Can I just delete those entries from the DB?
mangling with DB is dangerous but might be the only method. We had many discussions here related too stale record in the oc_filecache table - use search and decide if you are ready to take the risk.
as always only execute action if you know what you are doing and “no backup - no merci”