Server Version#: 1.24.0.4930
Player Version#: N/A
Plexinc Docker image on an Unraid 6.9.2 server. Intel i5-4690k CPU. Originally I ran PMS on a Terramaster NAS and migrated my system to Unraid in November 2020.
I enabled Sonic analysis on my music library on Friday morning, but after a few days of letting it run it doesn’t seem to have done anything. My library is pretty small - 785 albums - and the status shows that it still has 785 albums to process. I’ve looked through the logs and I can see that it attempts to start the analysis and shows 0 of 785 processed, but nothing after that.
There are also errors in the logs about database corruption, and I’m working on the assumption that this is the reason my Sonic analysis won’t run. I’ve been getting notifications about corruption for a few months and have tried to repair the database on numerous occasions, without success. When I run the integrity check command, it always returns ‘ok’ and until now I’ve never noticed any effects of the corruption at all outside of the notifications, so I just accepted it and moved on. I’ve been getting notifications that my backups haven’t been running as well, but when I check the directory on my server, the new backups are always there.
This is the error in my Plex Media Server.log:
Aug 17, 2021 04:12:16.976 [0x1498494e4b38] ERROR - SQLITE3:0x80000001, 11, database corruption at line 67162 of [1b256d97b5]
Aug 17, 2021 04:12:16.976 [0x1498494e4b38] ERROR - SQLITE3:0x80000001, 11, statement aborts at 10: [insert into blobs (linked_type, linked_id, blob_type, created_at) values (?, ?, ?, ?)] database disk image is malformed
Aug 17, 2021 04:12:16.976 [0x1498494e4b38] ERROR - Exception inside transaction (inside=1) (../Library/BlobDatabase.cpp:65): sqlite3_statement_backend::loadOne: database disk image is malformed
...
Aug 17, 2021 04:12:16.977 [0x1498494e4b38] ERROR - Butler: Uncaught exception running subtask ButlerTaskGenerateIntroMarkers: sqlite3_statement_backend::loadOne: database disk image is malformed
I guess [1b256d97b5] refers to a table, but I don’t know which one.
From the Deep Analysis logs, I could see more errors about a malformed database disk image, which always coincided with some kind of activity being carried out on my music library. Yesterday, I actually removed my music library and re-added it from scratch to see if that helped, but there was no change. I’ve tried the automatic and manual database repair methods from the documentation, but neither have cleared this issue.
So my questions here are:
- Am I right in thinking that this corruption is breaking my Sonic Analysis?
- Does ‘database disk image is malformed’ refer to specifically the database, or is there something wrong with the SSD that hosts it? Could I migrate to a different SSD and fix the problem?
- Do I have any hope of fixing that corruption, or would I be better off just rebuilding my Plex server and starting fresh? Obviously I’d rather avoid rebuilding, but I think migrating from my crappy NAS last year really didn’t help matters.