Server Version#:1.26.0.5715
Player Version#: Plex Web 4.79.4
I installed the latest Plex qpkg “PlexMediaServer-1.26.0.5715-8cf78dab3-x86_64” on my QNAP NAS TS-453d this afternoon and now I can’t get my Plex server to load. I’ve tried a restart via command line to no avail:
[~] # /etc/init.d/plex.sh restart
Plex Media Server hasn’t been enabled or started…
sh: -c: line 0: unexpected EOF while looking for matching `’’
sh: -c: line 1: syntax error: unexpected end of file
Starting Plex Media Server…
I downgraded back to “PlexMediaServer-1.25.9.5721-965587f64-x86_64” which worked earlier today but Plex still won’t see my server.
“NAS4DF05A is currently unavailable”
A manual stop and start gives the following:
[~] # /etc/init.d/plex.sh stop
Stopping Plex Media Server…
[~] # /etc/init.d/plex.sh start
Starting Plex Media Server…
[~] # Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Error: Unable to set up server: sqlite3_statement_backend::loadOne: database is locked (N4soci10soci_errorE)
Looks like the database was locked so the obvious solution was to restart the NAS and this time trying to start it gives the following:
[~] # /etc/init.d/plex.sh start
Starting Plex Media Server…
[~] # Error: Unable to set up server: listen: Address in use (N5boost10wrapexceptINS_6system12system_errorEEE)
[~] # /etc/init.d/plex.sh stop
Plex Media Server hasn’t been enabled or started…
sh: -c: line 0: unexpected EOF while looking for matching `’’
sh: -c: line 1: syntax error: unexpected end of file
[~] #
A far as I’m aware nothing other than plex is using 32400/1. Any ideas? Corrupt database?
Apr 23, 2022 18:04:08.753 [0x7fac37861b38] INFO - Plex Media Server v1.26.0.5715-8cf78dab3 - QNAP TS-453D x86_64 - build: linux-x86_64 qnap - GMT 01:00
Apr 23, 2022 18:04:08.753 [0x7fac37861b38] INFO - Linux version: QTS 5.0.0.1986, language: en-US
Apr 23, 2022 18:04:08.753 [0x7fac37861b38] INFO - Processor: 4-core Intel(R) Celeron(R) J4125 CPU @ 2.00GHz
Apr 23, 2022 18:04:08.753 [0x7fac37861b38] INFO - Compiler is - Clang 11.0.1 (https://plex.tv b587490162c22e078c314e3f7dc560c691d126aa)
Apr 23, 2022 18:04:08.753 [0x7fac37861b38] INFO - ./Plex Media Server
Apr 23, 2022 18:04:04.920 [0x7fac3aeba0c8] DEBUG - BPQ: [Idle] -> [Starting]
Apr 23, 2022 18:04:05.512 [0x7fac3aeba0c8] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Apr 23, 2022 18:04:05.594 [0x7fac3aeba0c8] DEBUG - Running migrations. (EPG 0)
Apr 23, 2022 18:04:06.919 [0x7fac36f08b38] DEBUG - [JobRunner] Job running: /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/CrashUploader "--directory=/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Crash Reports/1.26.0.5715-8cf78dab3" --version=1.26.0.5715-8cf78dab3 --platform=Linux "--platformVersion=QTS 5.0.0.1986" --serverUuid=9a593a3f56f0bd80fe0357b5a0d859da38fbb19e --userId=redacted@hotmail.com --sentryUrl=https://sentry.io/api/1233455/minidump --sentryKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --vendor=QNAP --model=x86_64 --device=TS-453D --allowRetries=0
Apr 23, 2022 18:04:06.919 [0x7fac36f08b38] DEBUG - [JobRunner] Jobs: Starting child process with pid 8866
Apr 23, 2022 18:04:08.341 [0x7fac37821b38] DEBUG - Jobs: '/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/CrashUploader' exit code for process 8866 is 0 (success)
Apr 23, 2022 18:04:38.829 [0x7fac3aeba0c8] DEBUG - ChangestampAllocator: initialized to 3904674950577861493
Apr 23, 2022 18:04:39.850 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:04:42.086 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:04:44.323 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:04:46.557 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:04:48.798 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:04:51.026 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:04:53.263 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:04:55.511 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:04:57.751 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:04:59.985 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:05:02.231 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:05:04.468 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:05:06.695 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:05:08.923 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:05:11.165 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:05:13.397 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:05:15.635 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:05:17.887 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:05:20.139 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:05:22.369 [0x7fac3aeba0c8] WARN - Waited one whole second for a busy database.
Apr 23, 2022 18:05:23.634 [0x7fac3aeba0c8] ERROR - Database corruption: sqlite3_statement_backend::loadOne: database is locked
/etc/init.d/plex.sh stop
Plex Media Server hasn't been enabled or started...
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
[~] #
Renamed the folder to PlexMediaServerOLD and reinstalled the app. Working again so looks like the database had corrupted. I’ll just have to rescan all of my data…
Well that worked well for a while but then I tried to stop it today, and i can’t! Doing it via the command line gives that weird unexpected EOF and syntax error and stopping it on QTS makes no difference, it’s still running!
Looking at processes there are 7 still running despite the qpkg being stopped.
28417 admin 268672 S ./Plex Media Server
21134 admin 37956 D /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex Media Scanner --match --
19275 admin 28120 S Plex Plug-in [org.musicbrainz.agents.music] /share/CACHEDEV1_DA...
19179 admin 29540 S Plex Plug-in [tv.plex.agents.music] /share/CACHEDEV1_DATA/.qpkg/PlexMedia...
14587 admin 9012 S /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex Tuner Service /share/CAC...
13976 admin 40092 S N Plex Plug-in [com.plexapp.system] /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-8cf78dab3/Framework.bundle/Contents/Resources/Ve...
1917 admin 33560 D /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex Media Scanner --match --type 1 --log-file-suffix Matcher --files /share/CACHEDEV1_DATA/Multimed...
Had to kill the main PMS pid and the plugins. Not sure what to do, it’s almost like it thinks there are two instances of plex