PLEX Media Server not starting on QNAP NAS

Hi all,

Plex server is not starting since my update to 1.24.5…
Here’s what the log is saying:

Oct 29, 2021 15:45:12.161 [0x7f7952c60b38] INFO - Plex Media Server v1.24.5.5173-8dcc73a59 - QNAP TS-h886 x86_64 - build: linux-x86_64 qnap - GMT 02:00
Oct 29, 2021 15:45:12.162 [0x7f7952c60b38] INFO - Linux version: QTS 4.5.4.1813, language: en-US
Oct 29, 2021 15:45:12.162 [0x7f7952c60b38] INFO - Processor Intel(R) Xeon(R) CPU D-1622 @ 2.60GHz
Oct 29, 2021 15:45:12.162 [0x7f7952c60b38] INFO - Compiler is - Clang 11.0.1 (https://plex.tv e0c29d5827bc4eaaa2ceb882cbeed224b0960173)
Oct 29, 2021 15:45:12.162 [0x7f7952c60b38] INFO - ./Plex Media Server
Oct 29, 2021 15:45:12.162 [0x7f795629c6e8] DEBUG - BPQ: [Idle] → [Starting]
Oct 29, 2021 15:45:12.163 [0x7f795629c6e8] DEBUG - FeatureManager: Using cached data for features list
Oct 29, 2021 15:45:12.165 [0x7f795629c6e8] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Oct 29, 2021 15:45:12.236 [0x7f795629c6e8] DEBUG - Running migrations. (EPG 0)
Oct 29, 2021 15:45:12.683 [0x7f795629c6e8] DEBUG - ChangestampAllocator: initialized to 1269876
Oct 29, 2021 15:45:13.699 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:14.159 [0x7f79522f6b38] DEBUG - [JobRunner] Job running: ‘/share/ZFS532_DATA/.qpkg/PlexMediaServer/CrashUploader’ ‘–directory=/share/ZFS532_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Crash Reports/1.24.5.5173-8dcc73a59’ ‘–version=1.24.5.5173-8dcc73a59’ ‘–platform=Linux’ ‘–platformVersion=QTS 4.5.4.1813’ ‘–serverUuid=409e82cc4f11e7bd0d16bcc7df943b04f8bf6659’ ‘–userId=myemailadress’ ‘–sentryUrl=https://sentry.io/api/1233455/minidump’ ‘–sentryKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’ ‘–vendor=QNAP’ ‘–model=x86_64’ ‘–device=TS-h886’ ‘–allowRetries=0’
Oct 29, 2021 15:45:14.159 [0x7f79522f6b38] DEBUG - [JobRunner] Jobs: Starting child process with pid 5053
Oct 29, 2021 15:45:14.169 [0x7f7952c1eb38] DEBUG - Jobs: ‘/share/ZFS532_DATA/.qpkg/PlexMediaServer/CrashUploader’ exit code for process 5053 is 0 (success)
Oct 29, 2021 15:45:15.923 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:18.149 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:20.374 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:22.599 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:24.823 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:27.047 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:29.272 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:31.496 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:33.720 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:35.944 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:38.168 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:40.393 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:42.617 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:44.842 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:47.067 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:49.293 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:51.525 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:53.757 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:55.982 [0x7f795629c6e8] WARN - Waited one whole second for a busy database.
Oct 29, 2021 15:45:57.191 [0x7f795629c6e8] ERROR - Database corruption: sqlite3_statement_backend::loadOne: database is locked

Anyone with a clue maybe???

Server Version#:
Player Version#:

In the future, please attach the entire ZIP file. Debugging excerpts is not sufficient.

What I do see here:

Oct 29, 2021 15:45:12.236 [0x7f795629c6e8] DEBUG - Running migrations. (EPG 0)

Database schema migrations (schema updates) restructure the database and can take a long time.

There was a recent announcement about one such migration which took a long time to run.

Did you allow PMS to complete the migration or did you interrupt it ?

It was scanning my media files and during that the server became unresponsive, that’s when I decided to stop / start the plex media server in the app center…

So I guess I might have interupted something there then??

I’m going to try a server restart, hope that brings anything.
If that doesn’t help I guess I’ll have to try and restore the DB files?;

Restore a Database Backed Up via ‘Scheduled Tasks’

@Wouter35

Correct.

When you do restart it after the recovery, Wait for the CPU to become idle before first access. Without knowing how much media you have indexed, it’s not possible to predict how long it will take but on your machine (the big QNAP), it could take a while :wink:

Thanks for the replies, restoring the DB files did the trick! Better be more patient next time when jobs are running :slight_smile:
Indexing in this case also went quickly, though my library is quite considerable I would say :slight_smile:

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