Server Version#: 1.42.2.10156
Player Version#: 1.112.0.359-0d79a49f
I’ve been using Plex in an unRAID docker for the last year - all working fine.
A few days ago i decided to add my family photos to plex. There are 80,000 photos in over 1000 folders.
I added the path to the photos location to a new library and started a scan. After some time most (but not all) of the photos were in the library and visible. I scanned multiple times but it wouldn’t add any more of the photos - it stopped around 70% of the way through.
Since then I have been unable to add any new media to my other libraries. When I scan a library and watch the ‘Activity’ icon I can see the names of the new media appearing, but they aren’t actually added to the library. I have scanned multiple times and got the same result.
I have restarted, cleaned, restarted etc. I have also deleted the photo library and then restarted and cleaned again. Each time i delete the photos library it reappears - but it is empty.
My theory is that trying to add so many new photos to the library has hit some internal limit (or whatever) and now new medica cannot be added.
How do i ensure the photos library is properly removed and then get the import process to start working again?
I found this in the logs indicating database corruption -is there some way to repair the DB?
Jan 21, 2026 10:40:04.428 [23098427550520] DEBUG - [LibraryTimeline] Scanner activity on section 1: 4 added, 0 deleted Jan 21, 2026 10:40:04.428 [23098463300408] ERROR - SQLITE3:0x80000001, 11, database corruption at line 71905 of [a29f994989]
Jan 21, 2026 10:40:04.428 [23098463300408] ERROR - SQLITE3:0x80000001, 11, statement aborts at 10: [SELECT (SELECT max(idx) FROM ‘main’.‘fts4_metadata_titles_icu_segdir’ WHERE level = ?) + 1] database disk image is malformed
Jan 21, 2026 10:40:04.428 [23098463300408] ERROR - SQLITE3:0x80000001, 11, statement aborts at 190: [update metadata_items set updated_at=null,guid=?,hash=? where id=?] database disk image is malformed
Jan 21, 2026 10:40:04.429 [23098463300408] ERROR - Exception inside transaction (inside=1) (/home/runner/_work/plex-media-server/plex-media-server/Library/MetadataItem.cpp:4005): sqlite3_statement_backend::loadOne: database disk image is malformed
Jan 21, 2026 10:40:04.429 [23098463300408] ERROR - Exception assimilating media item in The Rip (2026): sqlite3_statement_backend::loadOne: database disk image is malformed
Jan 21, 2026 10:40:04.429 [23098463300408] DEBUG - Native Scanner: Executed Add to Database stage in 0.00 sec.
Jan 21, 2026 10:40:04.429 [23098463300408] DEBUG - Native Scanner: Executed Media Analysis stage in 0.00 sec.
After reading the information on that page and realizing that Plex create DB backups automatically I just renamed the most recent backup and the problem was resolved.