Plex Server in NAS DS218+ won't start anymore. 1.40.0.7775

Hello,

I’m using the latest beta version for PMS, and it was working fine. This morning, I decided to reboot my NAS and when it returned, plex server didn’t start anymore.
I had to get the log file manually to see what was going on. These are the last line in the log. It seems something is wrong with database. Can anybody help me out with issue? Is there a way to fix the database, if that’s the case, without having to reinstall and re-scan everything? I mean, without losing all my libraries and watching history.

Feb 03, 2024 11:54:49.624 [139653323332240] DEBUG - Captured session 19.
Feb 03, 2024 11:54:49.635 [139653323332240] ERROR - SQLITE3:0x80000001, 11, database corruption at line 68825 of [a29f994989]
Feb 03, 2024 11:54:49.635 [139653323332240] ERROR - SQLITE3:0x80000001, 11, database corruption at line 68975 of [a29f994989]
Feb 03, 2024 11:54:49.635 [139653323332240] ERROR - SQLITE3:0x80000001, 11, statement aborts at 10: [select max(max(metadata_items.changed_at),max(metadata_items.resources_changed_at)) from metadata_items] database disk image is malformed
Feb 03, 2024 11:54:49.635 [139653323332240] ERROR - Database corruption: sqlite3_statement_backend::loadOne: database disk image is malformed
Feb 03, 2024 11:54:49.635 [139653323332240] ERROR - Error: Unable to set up server: sqlite3_statement_backend::loadOne: database disk image is malformed (N4soci10soci_errorE)
Feb 03, 2024 11:54:49.635 [139653323332240] DEBUG - [JobRunner] Job running: /volume1/@appstore/PlexMediaServer/CrashUploader --sessionStatus=abnormal --sessionStart=1706972089 --sessionDuration=0 --version=1.40.0.7775-456fbaf97 --userId=xxxxxxx@mail.com --sentryUrl=https://o17675.ingest.sentry.io/api/???/ --sentryKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Feb 03, 2024 11:54:49.635 [139653323332240] DEBUG - [JobRunner] Jobs: Starting child process with pid 29349

Server Version#: 1.40.0.7775
Player Version#: web app (app.plex.tv)

I had to edit a few thing from the log not to dispose my data.

Thanks in advance for all your tips on solving this.
Paulo

https://support.plex.tv/articles/repair-a-corrupted-database/

2 Likes

Tiebierius,

Many, many thanks!
It worked just perfect.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.