Plex Media Server not starting on Synology DS1019+ "Failed to run the package service"

Server Version#:1.20.1.3525-a78fef9a9
Player Version#:1.16.0.1364-da192ff7
OS Version#: 6.2.3-25426 Update 2

I’ve gone through the entirety of the troubleshooting in this thread.

It still doesn’t run! ANY help will be gratefully appreciated.

2020-09-02T20:03:52+01:00 Gravitas synoscgi_SYNO.Core.Package.Uninstallation_1_uninstall[3218]: resource_api.cpp:289 Release service-cfg for Plex Media Server when 0x0004 (done)
2020-09-02T20:04:27+01:00 Gravitas synoscgi_SYNO.Core.Package.Installation_1_install[4349]: resource_api.cpp:190 Acquire service-cfg for Plex Media Server when 0x0001 (done)
2020-09-02T21:19:50+01:00 Gravitas [ 5968.055527] init: pkgctl-Plex Media Server pre-start process (16659) terminated with status 1
2020-09-02T21:19:50+01:00 Gravitas synoscgi_SYNO.Core.Package.Control_1_start[16525]: servicecfg_internal_lib.c:22 Failed to start job [pkgctl-Plex Media Server][0xD900 manager.cpp:204]
2020-09-02T21:19:51+01:00 Gravitas synoscgi_SYNO.Core.Package.Control_1_start[16525]: pkgstartstop.cpp:371 Failed to start pkgctl-Plex Media Server (err=-1) [0xD900 manager.cpp:204]
2020-09-02T21:28:29+01:00 Gravitas [ 6487.081982] init: pkgctl-Plex Media Server pre-start process (23469) terminated with status 1
2020-09-02T21:28:29+01:00 Gravitas synoscgi_SYNO.Core.Package.Control_1_start[23327]: servicecfg_internal_lib.c:22 Failed to start job [pkgctl-Plex Media Server][0xD900 manager.cpp:204]
2020-09-02T21:28:30+01:00 Gravitas synoscgi_SYNO.Core.Package.Control_1_start[23327]: pkgstartstop.cpp:371 Failed to start pkgctl-Plex Media Server (err=-1) [0xD900 manager.cpp:204]
sh-4.3#

Here are part of the error logs I can’t seem to upload the text file of them

are you able to SSH into the Synology?

Yes I can SSH in to the synology.

SSH into it.

  1. su - or sudo -su root (whichever is easier for you) to get to the root prompt
  2. cd /var/packages/Plex*/scripts (the * saves typing)
  3. ./start-stop-status start

See what the console returns.

I did and this is what I got.

sh-4.3# ./start-stop-status start
Starting Plex ...
sh-4.3#

Plex is still not running.

I didn’t expect it to run.
I was hoping it would print out errors but none showed.

Please go back to File Station.
Open the Plex share
Drill down into Library -> until you see Logs
Right-click Logs and Compress to Logs.zip

download and attach that please.

logs.zip (2.0 MB)

file attached as requested

Thanks, that is explicit. The database became corrupted.

Sep 03, 2020 00:26:58.543 [0x7fa4330de700] INFO - Plex Media Server v1.20.1.3252-a78fef9a9 - Synology DS1019+ x86_64 - build: linux-x86_64 synology - GMT 01:00
Sep 03, 2020 00:26:58.543 [0x7fa4330de700] INFO - Linux version: DSM 6.2.3.25426-2, language: en-US
Sep 03, 2020 00:26:58.543 [0x7fa4330de700] INFO - Processor Intel(R) Celeron(R) CPU J3455 @ 1.50GHz
Sep 03, 2020 00:26:58.543 [0x7fa4330de700] INFO - /var/packages/Plex Media Server/target/Plex Media Server
Sep 03, 2020 00:26:58.838 [0x7fa43d074740] INFO - SQLITE3:(nil), 283, recovered 94 frames from WAL file /volume1/Plex/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-wal
Sep 03, 2020 00:26:58.838 [0x7fa43d074740] ERROR - SQLITE3:(nil), 11, database corruption at line 66053 of [bf8c1b2b7a]
Sep 03, 2020 00:26:58.838 [0x7fa43d074740] ERROR - SQLITE3:(nil), 11, database disk image is malformed in "PRAGMA cache_size=2000"
Sep 03, 2020 00:26:58.839 [0x7fa43d074740] ERROR - Database corruption: sqlite3_statement_backend::prepare: database disk image is malformed for SQL: PRAGMA cache_size=2000
Sep 03, 2020 00:26:58.839 [0x7fa43d074740] ERROR - Error: Unable to set up server: sqlite3_statement_backend::prepare: database disk image is malformed for SQL: PRAGMA cache_size=2000 (N4soci10soci_errorE)

Please read through here carefully.

As you replace the com.plexapp.plugins.library.db, remember to delete the WAL and SHM file which are matched to it if they exist.

Ask if any questions.

Thank you! That fixed it perfectly! I am taking all the steps as laid out now to rescan all the libraries. Thank you for your help.

Glad I could help

today i updated the Plex application and when i went to run it, i received the message “failed to run the package service”. i have tried to uninstall PMS and re-install with no luck. how can I get plex running again. DS920+

Please go to the Logs directory,

Right-Click Logs then Compress to Logs.zip

download and attach that ZIP file please.

I think this is the log directory. sorry, I a new to NAS and relatively new to Plex I hope this is it.

Sorry, that’s not what I was hoping for.

File Station -> Plex share -> Library - Application Support - Plex Media Server -> Logs

Make a ZIP of this folder please.

Thank you for the path steps. I found “logs” and right click on the folder and download. It creates a zip file but it error out when i try to upload it. The file size is 119,500KB. Maybe this is too large?

That’s the wrong file then.. your logs should be 25-50 MB maximum before compressing.

It seems like you compressed the entire Plex share.

ok trying again

Logs.zip (8.5 MB)

Got, i hope.

also here is a screen shot of my directory file. My plex data (movies etc) are stored in the folder above Plex (Movies, Music, Pictures) Not sure if this makes a difference

That’s it.

Analyzing now.

Your logs show the server was commanded to shut down

Sep 05, 2020 12:15:24.670 [0x7f102f447700] DEBUG - [CompanionProxy] player n7c49f08abg15pdmewdapwdh was last refreshed 30 seconds ago
Sep 05, 2020 12:15:25.596 [0x7f10b75da700] DEBUG - Shutting down with signal 15 (Terminated)
Sep 05, 2020 12:15:25.596 [0x7f10b75da700] DEBUG - Ordered to stop server.
Sep 05, 2020 12:15:25.596 [0x7f10b75da700] WARN - Timed out waiting for server to finish.
Sep 05, 2020 12:15:25.596 [0x7f10c185d740] DEBUG - Stopping server...
Sep 05, 2020 12:15:25.596 [0x7f10c185d740] DEBUG - HttpServer: Stopping server.
Sep 05, 2020 12:15:25.596 [0x7f10b4f75700] DEBUG - TranscodeJobManager: [Running] onServerShutdown
Sep 05, 2020 12:15:25.596 [0x7f10b4f75700] DEBUG - TranscodeJobManager: [Running] -> [Shutdown]
Sep 05, 2020 12:15:25.596 [0x7f10b4f75700] DEBUG - MetadataItemClusterRequestHandler: a shutdown event has been received
Sep 05, 2020 12:15:25.596 [0x7f10c185d740] DEBUG - Server stopped.
Sep 05, 2020 12:15:25.596 [0x7f10c185d740] DEBUG - NetworkService: Stopping advertisement.
Sep 05, 2020 12:15:25.596 [0x7f10c185d740] DEBUG - Killing plug-ins.
Sep 05, 2020 12:15:25.596 [0x7f10c185d740] DEBUG - [com.plexapp.system] Killing.
Sep 05, 2020 12:15:25.597 [0x7f10c185d740] DEBUG - Waiting for Plex Tuner Service to exit.
Sep 05, 2020 12:15:25.618 [0x7f10b75da700] WARN - JobManager: Could not find job for handle 6743
Sep 05, 2020 12:15:25.666 [0x7f10b75da700] DEBUG - Jobs: '/volume1/@appstore/Plex Media Server/Plex Tuner Service' exit code for process 5351 is 0 (success)
Sep 05, 2020 12:15:25.667 [0x7f10b5263700] DEBUG - Plex Tuner Service exited.
Sep 05, 2020 12:15:25.671 [0x7f10c185d740] DEBUG - Killing job.
Sep 05, 2020 12:15:25.671 [0x7f10c185d740] DEBUG - Signalling job ID 29674 with 9
Sep 05, 2020 12:15:25.671 [0x7f10c185d740] DEBUG - Database: Shutting down.
Sep 05, 2020 12:15:25.671 [0x7f10c185d740] DEBUG - Captured session 0.
Sep 05, 2020 12:15:25.671 [0x7f10c185d740] DEBUG - Captured session 1.
Sep 05, 2020 12:15:25.671 [0x7f10c185d740] DEBUG - Captured session 2.
Sep 05, 2020 12:15:25.671 [0x7f10c185d740] DEBUG - Captured session 3.

Which version did you install?

From what I can discern, this is PMS 1.19.5.

Sep 05, 2020 11:53:48.706 [0x7f10b78c8700] INFO - Plex Media Server v1.19.5.3112-b23ab3896 - Synology DS920+ x86_64 - build: linux-x86_64 synology - GMT -05:00
Sep 05, 2020 11:53:48.707 [0x7f10b78c8700] INFO - Linux version: DSM 6.2.3.25426-2, language: en-US