[BUG] SQLite3 UNIQUE constraint failed

Server Version#: 1.32.6.7371
Player Version#: 4.113.2 (hosted)

PMS suddently started skipping movies. I can see in the server-log, that this error (SQLite3 unique constraint error) started showing up. Is this an known error? No new items can be added now.

Aug 23, 2023 19:39:06.961 [140447570160440] ERROR - [Grabber] SQLITE3:0x80000001, 2067, abort at 34 in [update media_provider_resources set parent_id=:media_provider_resources_parent_id,type=:media_provider_resources_type,status=:media_provider_resources_status,state=:media_provider_resources_state,identifier=:media_provider_resources_identifier,protocol=:media_provider_resources_protocol,uri=:media_provider_resources_uri,uuid=:media_provider_resources_uuid,extra_data=:media_provider_resources_extra_data,last_seen_at=:media_provider_resources_last_seen_at,created_at=:media_provider_resources_created_at,updated_at=:media_provider_resources_updated_at where id=:media_provider_resources_id]: UNIQUE constraint failed: media_provider_resources.uuid
Aug 23, 2023 19:39:06.969 [140447570160440] ERROR - [Grabber] Exception inside transaction (inside=1) (/data/jenkins/server/806884035/MediaProviders/Grabbers/MediaGrabber.cpp:171): sqlite3_statement_backend::loadOne: UNIQUE constraint failed: media_provider_resources.uuid
Aug 23, 2023 19:39:06.988 [140447570160440] ERROR - [Grabber] SQLITE3:0x80000001, 2067, abort at 34 in [update media_provider_resources set 

Restarted PMS and tried to Scan Library Files

Plex Media Server.log (22.4 KB)

It looks like debug logging is turned off

Enable debug, not verbose and restart your sever

Recreate and gather a new set of logs

Sorry guys! That’s just me being completely blind :person_with_white_cane: the movies existed in two different folders (in the same library). Ohh well, now the DB is repaired and everything :sweat_smile: I’m closing this thread.

Note: The error is/was for an none existing hdhomerun. Dunno why it is still detected.