Plex Media Keeps stopping within 1 minute of running on Synology DS920+

Server Version#:1.29.2.6364.-7000 (current reinstalled after an update)
Player Version#: windows 11 & Android 10.11.0.183
<If providing server logs please do NOT turn on verbose logging, only debug logging should be enabled>

synology DS920+ running DSM 7 .2.1 update 3
10Gb storage with 3GB free 8GB ram was running fine until updated to plex server 1.4 XXXX
not sure how to run any logs as a total noob, can access & play my files via VLC player fine so not a network or H-drive issue any help would be appreciated with advice that does not go over my head i have plex paid subscription
if you require a log will have to help me turn on and extract them

To get the logs,

  1. Open FileStation
  2. Navigate to PlexMediaServer / AppData / Plex Media Server
  3. Right-click “Logs” → Compress to Logs.zip
  4. Download the ZIP file
  5. Attach it here with your next reply

Hi ChuckPa
i have gone to PlexMediaServer / AppData / Plex Media Server but right click logs is not an option

i can see file names at tis stage like " Setup Plex.html.tmp (1).eda6a7ce-5ad9-4f51-b510-208a02ee8a9a" but it has zero bytes ie empty ?

please show me a screenshot of your “PlexMediaServer/AppData/Plex Media Server” folder ?

Logs.zip (5.9 MB)

found it did say i was a noob :slight_smile:

Hi ChuckPa
did you manage to find anything in the logs


I did find where you installed PMS 1.29.2.

In those logs, you see where the DB isn’t compatible.

I’m trying to confirm where that came from.
Did you previously have 1.40.x installed then try to downgrade ?

Mar 19, 2024 19:31:03.834 [0x7fa82e94b0d0] DEBUG - Captured session 17.
Mar 19, 2024 19:31:03.834 [0x7fa82e94b0d0] DEBUG - Captured session 18.
Mar 19, 2024 19:31:03.834 [0x7fa82e94b0d0] DEBUG - Captured session 19.
Mar 19, 2024 19:31:03.834 [0x7fa82e94b0d0] ERROR - SQLITE3:0x80000001, 1, near ">>": syntax error in "UPDATE tags SET extra_data = extra_data ->> 'url' WHERE extra_data IS NOT NULL and json_valid(extra_data)"
Mar 19, 2024 19:31:03.834 [0x7fa82e94b0d0] ERROR - Exception inside transaction (inside=1) (/data/jenkins/server/3537899744/Library/DatabaseMigrations.cpp:289): sqlite3_statement_backend::prepare: near ">>": syntax error for SQL: UPDATE tags SET extra_data = extra_data ->> 'url' WHERE extra_data IS NOT NULL and json_valid(extra_data)
Mar 19, 2024 19:31:03.837 [0x7fa82e94b0d0] ERROR - Exception thrown during migrations, aborting: sqlite3_statement_backend::prepare: near ">>": syntax error for SQL: UPDATE tags SET extra_data = extra_data ->> 'url' WHERE extra_data IS NOT NULL and json_valid(extra_data)
Mar 19, 2024 19:31:03.873 [0x7fa82e94b0d0] DEBUG - ChangestampAllocator: initialized to 1557377
Mar 19, 2024 19:31:03.891 [0x7fa82e94b0d0] DEBUG - Opening 2 database sessions to library (com.plexapp.plugins.library.blobs), SQLite 3.35.5, threadsafe=1
Mar 19, 2024 19:31:03.892 [0x7fa82e94b0d0] INFO - SQLITE3:0x80000001, 283, recovered 4 frames from WAL file /var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.blobs.db-wal
Mar 19, 2024 19:31:03.896 [0x7fa82e94b0d0] INFO - Running migrations. (EPG 0)
Mar 19, 2024 19:31:03.898 [0x7fa82e94b0d0] DEBUG - Captured session 0.
Mar 19, 2024 19:31:03.898 [0x7fa82e94b0d0] DEBUG - Captured session 1.
Mar 19, 2024 19:31:03.898 [0x7fa82e94b0d0] INFO - Running down migration 202309200919.
Mar 19, 2024 19:31:03.898 [0x7fa82e94b0d0] DEBUG - Captured session 0.
Mar 19, 2024 19:31:03.898 [0x7fa82e94b0d0] DEBUG - Captured session 1.
Mar 19, 2024 19:31:03.898 [0x7fa82e94b0d0] ERROR - SQLITE3:0x80000001, 1, near ">>": syntax error in "UPDATE tags SET extra_data = extra_data ->> 'url' WHERE extra_data IS NOT NULL and json_valid(extra_data)"
Mar 19, 2024 19:31:03.898 [0x7fa82e94b0d0] ERROR - Exception inside transaction (inside=1) (/data/jenkins/server/3537899744/Library/DatabaseMigrations.cpp:289): sqlite3_statement_backend::prepare: near ">>": syntax error for SQL: UPDATE tags SET extra_data = extra_data ->> 'url' WHERE extra_data IS NOT NULL and json_valid(extra_data)
Mar 19, 2024 19:31:03.899 [0x7fa82e94b0d0] ERROR - Exception thrown during migrations, aborting: sqlite3_statement_backend::prepare: near ">>": syntax error for SQL: UPDATE tags SET extra_data = extra_data ->> 'url' WHERE extra_data IS NOT NULL and json_valid(extra_data)
Mar 19, 2024 19:31:03.899 [0x7fa829b0bb38] INFO - CodecManager: obtaining EAE
Mar 19, 2024 19:31:03.900 [0x7fa829b0bb38] DEBUG - MyPlex: mapping state set to 'Unknown'.
Mar 19, 2024 19:31:03.900 [0x7fa829b0bb38] DEBUG - Relay: read 17 cached entries from hosts file
Mar 19, 2024 19:31:03.901 [0x7fa829b0bb38] DEBUG - [HCl#1] HTTP requesting GET https://plex.tv/api/codecs/easyaudioencoder?build=linux-x86_64-standard&deviceId=14ae1064-57df-4b43-8540-cb7962ac3c91&oldestPreviousVersion=1%2E21%2E0%2E3744-d87012962&version=1785
Mar 19, 2024 19:31:03.920 [0x7fa82940ab38] DEBUG - Grabber: Cleaning up orphaned grabs.

Hi ChuckPa i had something like PMS 1.27 and worked fine, updated to recommended 1.4XXX and then it worked i believe and then stopped working so i tried to do a roll back to 1.27xxx i have also updated DSM 7.2.1 patch 4 today and still the same

Ah,

thanks for explaining.

You can’t jump that many versions, especially with 1.40 (not backward compatible)

At this point,

  1. Take your oldest backups,
  2. Go to 1.29.2
  3. Now we’ll go to 1.32.8
  4. Make sure it all works ok
  5. Then take it the last step to 1.40.0 – and sit there for a bit


i dont believe i have a backup ?

Open FileStation

Navigate: PlexMediaServer/AppData/Plex Media Server/Plug-in Support/Databases

Now look there. See what you have. Anything with dates on it are backup :slight_smile:

that looks good. I see a March 03 backup.

When did you upgrade from 1.27 ?

was i think 17th or 18th it was this week

how good are you at the SSH command line (logging in to it then running a shell command) ?

-or-

Doing a bunch of copy/paste from FileStation ?

ha ha would not even know where to start… total noob. but teach a man to fish and he can feed his family for life :slight_smile:

  1. Here’s the 1.32.8 SPK file you’ll need. Keep this handy

https://artifacts.plex.tv/plex-media-server-stable/1.32.8.7639-fb6452ebf/synology-dsm7/PlexMediaServer-1.32.8.7639-fb6452ebf-x86_64_DSM7.spk

  1. Using SSH is a bit more involved
    – Control Panel - Terminal & SNMP - Enable SSH
    – Get putty from https://putty.org
    – SSH into the Syno (by IP address) as your username
    – Get at the command prompt

  2. Now, using this tool, which shows how to use it and emphasizes Synology

– Pay attention to the README.md as I have examples.

  1. You’ll want to STOP PMS, RESTORE an earlier backup, START PMS
  2. Now install PMS 1.32.8 (while also sitting in the menu of my tool)

:smile:

Lots of fun to be had

downloaded but not installed yet