Hey all, I recently shutdown and restarted my raspberry pi which was successfully running PMS beforehand.
Post restart PMS is refusing to start with a failure “Result of ‘signal’” Below are the logs dumped from running sudo journalctl -xe | grep -i plex
Please, any assistance would be greatly appreciated…
Aug 25 20:27:16 raspberrypi systemd[1]: plexmediaserver.service: Service RestartSec=5s expired, scheduling restart.
Aug 25 20:27:16 raspberrypi systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 2.
– Automatic restarting of the unit plexmediaserver.service has been scheduled, as the result for
Aug 25 20:27:16 raspberrypi systemd[1]: Stopped Plex Media Server.
– Subject: A stop job for unit plexmediaserver.service has finished
– A stop job for unit plexmediaserver.service has finished.
Aug 25 20:27:16 raspberrypi systemd[1]: Starting Plex Media Server…
– Subject: A start job for unit plexmediaserver.service has begun execution
– A start job for unit plexmediaserver.service has begun execution.
Aug 25 20:27:16 raspberrypi systemd[1]: Started Plex Media Server.
– Subject: A start job for unit plexmediaserver.service has finished successfully
– A start job for unit plexmediaserver.service has finished successfully.
Aug 25 20:27:16 raspberrypi systemd[1]: plexmediaserver.service: Main process exited, code=killed, status=11/SEGV
– An ExecStart= process belonging to unit plexmediaserver.service has exited.
Aug 25 20:27:16 raspberrypi systemd[1]: plexmediaserver.service: Failed with result ‘signal’.
– The unit plexmediaserver.service has entered the ‘failed’ state with result ‘signal’.
Aug 25 20:27:21 raspberrypi systemd[1]: plexmediaserver.service: Service RestartSec=5s expired, scheduling restart.
Aug 25 20:27:21 raspberrypi systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
– Automatic restarting of the unit plexmediaserver.service has been scheduled, as the result for
Aug 25 20:27:21 raspberrypi systemd[1]: Stopped Plex Media Server.
– Subject: A stop job for unit plexmediaserver.service has finished
– A stop job for unit plexmediaserver.service has finished.
Aug 25 20:27:21 raspberrypi systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Aug 25 20:27:21 raspberrypi systemd[1]: plexmediaserver.service: Failed with result ‘signal’.
– The unit plexmediaserver.service has entered the ‘failed’ state with result ‘signal’.
Aug 25 20:27:21 raspberrypi systemd[1]: Failed to start Plex Media Server.
– Subject: A start job for unit plexmediaserver.service has failed
– A start job for unit plexmediaserver.service has finished with a failure.
Try to manually grab the logs from the “Logs” directory under “Plex Media Server”. Let’s see if anything is there.
plexmediaserverlogs.txt (144.9 KB)
Here is the last 1000 lines from the ‘Plex Media Server.log’
I would like to see the entire log file please (or better — make a tar.gz of the directory)
1 Like
if there is a specific log file you would to see please let me know.
I specifically need to see the one which attempts to start and then fails.
That’s the entire Plex Media Server/Logs directory
PMS itself shows having been shutdown on command normally here.
Continuing to look through your logs.
Aug 25, 2020 16:30:24.210 [0xaf47e440] DEBUG - NetworkServiceBrowser: SSDP arrived: 192.168.49.1 (Pork Palace Suite)
Aug 25, 2020 16:32:37.206 [0xb2eff440] DEBUG - Shutting down with signal 15 (Terminated)
Aug 25, 2020 16:32:37.206 [0xb2eff440] DEBUG - Ordered to stop server.
Aug 25, 2020 16:32:37.206 [0xb2eff440] WARN - Timed out waiting for server to finish.
Aug 25, 2020 16:32:37.206 [0xb6f1bd20] DEBUG - Stopping server...
Aug 25, 2020 16:32:37.206 [0xb6f1bd20] DEBUG - HttpServer: Stopping server.
Aug 25, 2020 16:32:37.206 [0xa68f2440] DEBUG - TranscodeJobManager: [Running] onServerShutdown
Aug 25, 2020 16:32:37.206 [0xa68f2440] DEBUG - TranscodeJobManager: [Running] -> [Shutdown]
Aug 25, 2020 16:32:37.206 [0xa68f2440] DEBUG - MetadataItemClusterRequestHandler: a shutdown event has been received
Aug 25, 2020 16:32:37.206 [0xb6f1bd20] DEBUG - Server stopped.
Aug 25, 2020 16:32:37.206 [0xb6f1bd20] DEBUG - NetworkService: Stopping advertisement.
Aug 25, 2020 16:32:37.206 [0xb6f1bd20] DEBUG - Killing plug-ins.
Aug 25, 2020 16:32:37.207 [0xb6f1bd20] DEBUG - [com.plexapp.system] Killing.
Aug 25, 2020 16:32:37.207 [0xb6f1bd20] DEBUG - Waiting for Plex Tuner Service to exit.
Aug 25, 2020 16:32:37.230 [0xb2eff440] WARN - JobManager: Could not find job for handle 581
Aug 25, 2020 16:32:37.231 [0xb2eff440] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Tuner Service' exit code for process 759 is 0 (success)
Aug 25, 2020 16:32:37.231 [0xa90f7440] DEBUG - Plex Tuner Service exited.
Aug 25, 2020 16:32:37.236 [0xb6f1bd20] DEBUG - Job was already killed, not killing again.
Aug 25, 2020 16:32:37.236 [0xb6f1bd20] DEBUG - Database: Shutting down.
Aug 25, 2020 16:32:37.236 [0xb6f1bd20] DEBUG - Captured session 0.
Aug 25, 2020 16:32:37.236 [0xb6f1bd20] DEBUG - Captured session 1.
I’ve tried stopping, and restarting the service from CLI a handful of times…
What does your start script look like? It might need tweaking – or – are you running SYSV init?
I’m simply attempting to run sudo service plexmediaserver start
After just now attempting this start, this is what the logs show
-- Subject: A start job for unit plexmediaserver.service has begun execution
-- A start job for unit plexmediaserver.service has begun execution.
Aug 25 21:08:05 raspberrypi systemd[1]: Started Plex Media Server.
-- Subject: A start job for unit plexmediaserver.service has finished successfully
-- A start job for unit plexmediaserver.service has finished successfully.
Aug 25 21:08:05 raspberrypi systemd[1]: plexmediaserver.service: Main process exited, code=killed, status=11/SEGV
-- An ExecStart= process belonging to unit plexmediaserver.service has exited.
Aug 25 21:08:05 raspberrypi systemd[1]: plexmediaserver.service: Failed with result 'signal'.
-- The unit plexmediaserver.service has entered the 'failed' state with result 'signal'.
do you have an override file or are you using 100% defaults ?
e.g /var/lib/plexmediaserver and user plex
?
Actually after seeing some docs, I created an override file located in directory /etc/systemd/system/plexmediaserver.service.d
in attempt to trouble shooting. The only overrides I’m setting are user and group. Setting them to pi
which was what it was prior to all these issues.
Thanks.
Let me find and share my fully manual start bash script which you can launch yourself as user pi
and then we can capture the console output we need.
1 Like
Thanks so much for helping with this. I really appreciate it.
Here it is. It’s very basic.
-
su
to user pi
so /var/lib/plexmediaserver doesn’t get messed up
- next invoke this.
- when it spews at the console, capture it.
[chuck@lizum /tmp.215]$ cat ./start-plex
#!/bin/sh
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/var/lib/plexmediaserver/Library/Application Support"
export PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export TMPDIR="/tmp"
export LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib
echo Manual Start of Plex Media Server. \(Use Control-C to shut down\)
"/usr/lib/plexmediaserver/Plex Media Server"
[chuck@lizum /tmp.216]$
So you want me to run this as pi
user?
Manual Start of Plex Media Server. (Use Control-C to shut down)
Segmentation fault
pi@raspberrypi:~ $