doge
April 18, 2024, 9:35am
1
Hello, on a new AIO install, using recommended installation on a new Ubuntu Proxmox VM, i have many erros in my database log.
How to purge enormous log ? (20mo unreadable log)
How to repair this ?
I tryed this :
sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ maintenance:repair
But still have errors and growing logs.
Best regards
Possiby related to my other message :
New install, errors in the logs - Features & apps / notes - Nextcloud community
doge
April 18, 2024, 9:53am
3
A installed Memories and Recognize, to auto-tag wallpaper collection with automatic tags.
Probably Memories or Recognize in the tagging process, sends insert requests to the database every second and fills database log.
I tryed to delete content in the oc_systemtag_object_mapping_pkey table, and restart tagging process.
But errors continue to fill the database log.
ERROR: duplicate key value violates unique constraint “oc_systemtag_object_mapping_pkey”
DETAIL: Key (objecttype, objectid, systemtagid)=(files, 112177, 34) already exists.
CEST [1789] STATEMENT: INSERT INTO “oc_systemtag_object_mapping” (“objectid”, “objecttype”, “systemtagid”) VALUES($1, $2, $3)
Did not find a solution after serching Github and this forum yet.
opened 02:28AM - 23 Aug 23 UTC
closed 11:27AM - 11 Jan 24 UTC
bug
### Which version of recognize are you using?
4.3.2
### Enabled Modes
Object … recognition
### TensorFlow mode
WASM mode
### Downstream App
Memories App
### Which Nextcloud version do you have installed?
27.0.1
### Which Operating system do you have installed?
Ubuntu 23.04
### Which database are you running Nextcloud on?
PostgreSQL 15
### Which Docker container are you using to run Nextcloud? (if applicable)
_No response_
### How much RAM does your server have?
16GB
### What processor Architecture does your CPU have?
x86_64
### Describe the Bug
As soon as I enable "recognize", my PostgreSQL log throws out errors like:
`postgresql[526618]: 2023-08-23 04:01:05.002 CEST [326287] ERROR: duplicate key value violates unique constraint "oc_systemtag_object_mapping_pkey"
postgresql[526618]: 2023-08-23 04:01:05.002 CEST [326287] DETAIL: Key (objecttype, objectid, systemtagid)=(files, 11813756, 4) already exists.`
- Nextcloud log does not give any errors.
- I also do not discern any problems in Nextcloud UI. However, with several thousand pictures to scan and the classification job taking days to finish, I would probably not really notice any malfunction.
- This is with a picture database on an external storage shared by several users. I tried both "local storage" and "SFTP" as external storage.
- I also removed and added this external storage, removed and reinstalled "recognize", re-indexed Nextcloud files, restarted the recognize jobs.
- The above error always re-occurs as soon as I enable "recognize" and disappears when the app is deactivated.
- It looks like https://github.com/nextcloud/recognize/issues/562, but I don't know how this error was resolved.
### Expected Behavior
No PostgreSQL errors.
### To Reproduce
Enable "recognize"
### Debug log
_No response_
opened 03:15PM - 18 Apr 24 UTC
bug
### Which version of recognize are you using?
latest
### Enabled Modes
Object… recognition, Face recognition, Video recognition, Music recognition
### TensorFlow mode
WASM mode
### Downstream App
Memories App
### Which Nextcloud version do you have installed?
latest
### Which Operating system do you have installed?
ubuntu
### Which database are you running Nextcloud on?
postgres
### Which Docker container are you using to run Nextcloud? (if applicable)
recommended AIO install
### How much RAM does your server have?
16GiB
### What processor Architecture does your CPU have?
x86_64
### Describe the Bug
ERROR: duplicate key value violates unique constraint “oc_systemtag_object_mapping_pkey”
DETAIL: Key (objecttype, objectid, systemtagid)=(files, 112177, 34) already exists.
CEST [1789] STATEMENT: INSERT INTO “oc_systemtag_object_mapping” (“objectid”, “objecttype”, “systemtagid”) VALUES($1, $2, $3)
### Expected Behavior
shold not fill the database log with errors every second
### To Reproduce
installed fresh nextcloud via recommended AIO methos on a new Ubuntu proxmox VM,
installed Memories and Recognize
activated auto tagging
dropped few thousands wallpapers there
opened the logs found database log filled with errors and 20Mo size
### Debug log
[nextcloud-aio-database-2024-04-18T15-05-49.log](https://github.com/nextcloud/recognize/files/15026932/nextcloud-aio-database-2024-04-18T15-05-49.log)