Database errors in postgresql log (duplicate key value)

Nextcloud version: 22.2.0
Operating system and version: debian buster
Apache or nginx version: Apache 2.4.38
PHP version (eg, 7.4): 7.3.29

Dear all,

I have plenty of these in my postgresql log file:

2021-10-18 10:43:44.126 CEST [31017] nextcloud@nextcloud ERROR:  duplicate key value violates unique constraint "oc_filecache_extended_pkey"
2021-10-18 10:43:44.126 CEST [31017] nextcloud@nextcloud DETAIL:  Key (fileid)=(300863) already exists.
2021-10-18 10:43:44.126 CEST [31017] nextcloud@nextcloud STATEMENT:  INSERT INTO "oc_filecache_extended" ("fileid", "upload_time") VALUES($1, $2)

Nothing related can be found in the nextcloud logs…

Thanks for any clues,

Christian

I’ve got quite a few of these errors too. I’m on gentoo, nextcloud-22.2.0, php-7.4, nginx-1.20. This started at least a few months ago on nextcloud-21.., or maybe earlier.

I see this reliably when I edit a file. When I create say test.txt, there is no error. But the error appears on each edit.