Plex server on pi wont start

Server Version#: 1.19.1.2701

I just built a new pi system. I installed plex and it keeps crashing at startup. I cant find any log information that is useful. not sure where to start. if I had useful log info I could probably figure this out. Any ideas?

● plexmediaserver.service - Plex Media Server
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Tue 2020-04-28 16:28:59 CDT; 4min 13s ago
Process: 823 ExecStartPre=/bin/sh -c /usr/bin/test -d “{PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "{PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” (code=exited, status=0/SUCCESS)
Process: 830 ExecStart=/bin/sh -c export PLEX_MEDIA_SERVER_INFO_VENDOR="(grep ^NAME= /etc/os-release | awk -F= "{print \$2}" | tr -d \" )"; export PLEX_MEDIA_SERVER_INFO_DEVICE="PC"; export PLEX_MEDIA_SERVER_INFO_MODEL="(uname -m
Main PID: 830 (code=killed, signal=ABRT)

Apr 28 16:28:59 raspberrypi systemd[1]: plexmediaserver.service: Service RestartSec=5s expired, scheduling restart.
Apr 28 16:28:59 raspberrypi systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
Apr 28 16:28:59 raspberrypi systemd[1]: Stopped Plex Media Server.
Apr 28 16:28:59 raspberrypi systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Apr 28 16:28:59 raspberrypi systemd[1]: plexmediaserver.service: Failed with result ‘signal’.
Apr 28 16:28:59 raspberrypi systemd[1]: Failed to start Plex Media Server.
~

this is all the log contains

Plex Media Server.log

Apr 28, 2020 16:28:54.263 [0x73a28450] INFO - Plex Media Server v1.19.1.2701-6327e27bf - Raspbian GNU/Linux PC armv7l - build: linux-armv7hf_neon debian - GMT -05:00
Apr 28, 2020 16:28:54.267 [0x73a28450] INFO - Linux version: 10 (buster), language: en-US
Apr 28, 2020 16:28:54.267 [0x73a28450] INFO - Processor Arm
Apr 28, 2020 16:28:54.267 [0x73a28450] INFO - /usr/lib/plexmediaserver/Plex Media Server
Apr 28, 2020 16:28:54.273 [0x76fdc920] DEBUG - BPQ: [Idle] -> [Starting]
Apr 28, 2020 16:28:54.273 [0x76fdc920] VERBOSE - BPQ: delaying processing 120 second(s)
Apr 28, 2020 16:28:54.462 [0x76fdc920] DEBUG - Job running: ‘/usr/lib/plexmediaserver/CrashUploader’ '–directory=/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cras$

[chuck@lizum ~.503]$ cat /usr/lib/plexmediaserver/Resources/start.sh 
#!/bin/sh
#SCRIPTPATH=$(dirname $(python -c 'import sys,os;print os.path.realpath(sys.argv[1])' $0))
SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname ${SCRIPT}`
export LD_LIBRARY_PATH="${SCRIPTPATH}/lib"
export PLEX_MEDIA_SERVER_HOME="${SCRIPTPATH}"
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"
ulimit -s 3000
./Plex\ Media\ Server
[chuck@lizum ~.504]$ 

You’ll have this in your /usr/lib/plexmediaserver/Resources as legacy script.
It should run for you as-is from cd /usr/lib/plexmediaserver (run as root, find the problem, clean up afterwards)

1 Like

Odd. It’s telling me ‘no such table: schema_migrations for SQL’.

The database is from another machine (older version of pi), it works there.

I pulled the USB drive out, put it in a third machine, opened the database, and that table is there.
The database is in the correct folder.
The permissions are 777

I have no idea why it doesn’t like this database. Does the new PI PlexServer have some new database format that is different from the older versions?

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