I have PMS running on Raspberry PI 2!

My 1.9.1 package includes systemd support and the main group (plex instead of nogroup) is fixed. Thus, my package is again in line with the official amd64 package and the official Plex documentation applies again. My package also includes the migration script that moves the settings in /etc/default/plexmediaserver to /etc/systemd/system/plexmediaserver.service.d/override.conf on systemd systems. Many Plex Pass users helped me to get this package to a stable state, so I hope you will not encounter huge problems (thanks again to you folks!!). If you experience problems, please first read the systemd guide written by @ChuckPA and check your configuration.

VERY IMPORTANT: The upgrade might take some time (I am talking about 10-20 minutes), depending on the performance of your storage device that hosts /var/lib/plexmediaserver and also depending on the size of your library. NOTHING IS DELETED, only the group is changed to plex. Please be patient.

I am currently performing last tests, the package will go live in 15 minutes.

@uglymagoo said:
My 1.9.1 package includes systemd support and the main group (plex instead of nogroup) is fixed. Thus, my package is again in line with the official amd64 package and the official Plex documentation applies again. My package also includes the migration script that moves the settings in /etc/default/plexmediaserver to /etc/systemd/system/plexmediaserver.service.d/override.conf on systemd systems. Many Plex Pass users helped me to get this package to a stable state, so I hope you will not encounter huge problems (thanks again to you folks!!). If you experience problems, please first read the systemd guide written by @ChuckPA and check your configuration.

VERY IMPORTANT: The upgrade might take some time (I am talking about 10-20 minutes), depending on the performance of your storage device that hosts /var/lib/plexmediaserver and also depending on the size of your library. NOTHING IS DELETED, only the group is changed to plex. Please be patient.

I am currently performing last tests, the package will go live in 15 minutes.

Where I can get your package? How I install -upgrade- on my raspbian?

@kikoFHM said:
Where I can get your package? How I install -upgrade- on my raspbian?

It’s in my signature: “PMS on the Raspberry Pi 2 and 3 / Banana Pi / ODROID / many more : Debian repository for armhf and arm64

Upgrade PMS like you upgrade any other software on your Debian: sudo apt-get update && sudo apt-get upgrade

I ran the update and upgrade and now my PMS will not start.

��plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor
Active: activating (auto-restart) (Result: exit-code) since Thu 2017-09-21 13
Process: 1648 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_AP

Sep 21 13:27:55 TARS systemd[1]: plexmediaserver.service: Unit entered failed st
Sep 21 13:27:55 TARS systemd[1]: plexmediaserver.service: Failed with result 'ex

I have even gone so far as to rebuild it from the ground up but nothing works. Please help.

EDIT: I miss copied the systemctl info… here is the correct info.

�� plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2017-09-21 13:28:00 EDT; 3min 30s ago
Process: 1648 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=1/FAILURE)

Sep 21 13:27:55 TARS systemd[1]: plexmediaserver.service: Unit entered failed state.
Sep 21 13:27:55 TARS systemd[1]: plexmediaserver.service: Failed with result ‘exit-code’.
Sep 21 13:28:00 TARS systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Sep 21 13:28:00 TARS systemd[1]: Stopped Plex Media Server for Linux.
Sep 21 13:28:00 TARS systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Sep 21 13:28:00 TARS systemd[1]: Failed to start Plex Media Server for Linux.
Sep 21 13:28:00 TARS systemd[1]: plexmediaserver.service: Unit entered failed state.
Sep 21 13:28:00 TARS systemd[1]: plexmediaserver.service: Failed with result ‘exit-code’.

@oxZmoron and all others: I just pushed a new package revision to my repo with a fixed migration script. This package also makes it very easy to recover from your current problems.

  1. Install the new package with apt-get
  2. move the old settings back in place: sudo mv /etc/default/plexmediaserver.prev /etc/default/plexmediaserver
  3. call the migration script by hand: sudo /usr/lib/plexmediaserver/MigratePlexServerConfig.sh
  4. reload systemd and start plex: sudo systemctl daemon-reload, sudo systemctl stop plexmediaserver, sudo systemctl start plexmediaserver

Still no good sir. Same issue as before.

@oxZmoron said:
Still no good sir. Same issue as before.

Please post the content of /etc/default/plexmediaserver.prev

@uglymagoo

'# default script for Plex Media Server

'# the number of plugins that can run at the same time
'PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6

'# ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
'PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000

'# where the mediaserver should store the transcodes
'PLEX_MEDIA_SERVER_TMPDIR=/tmp

'# uncomment to set it to something else
'# PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application\ Support"

'# the user that PMS should run as, defaults to ‘plex’
'# note that if you change this you might need to move
'# the Application Support directory to not lose your
'# media library
'PLEX_MEDIA_SERVER_USER=plex

@uglymagoo
wow that went south, sorry about that…
ignore the single apostrophes at the beginning of each line.

"# default script for Plex Media Server

"# the number of plugins that can run at the same time
"PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6

"# ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
"PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000

'# where the mediaserver should store the transcodes
'PLEX_MEDIA_SERVER_TMPDIR=/tmp

'# uncomment to set it to something else
'# 'PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Applicat’ion\Support"

'# the user that PMS should run as, defaults to ‘plex’
'# note that if you change this you might need to move
'# the Application Support directory to not lose your
'# media library
'PLEX_MEDIA_SERVER_USER=plex

@oxZmoron OK, so you use the stock installation with user plex and no other user, right? Can you please check if there was a user pi before, i.e. do you have a directory /home/pi/Library?

Folks, Please use ‘Code’ Paragraph Formatting when you post scripts so

#this is a comment

turns out properly as

#this is a comment

@uglymagoo

pi is the user is login with by default, and yes there is a directory. I just altered it the say “PLEX_MEDIA_SERVER_USER=pi” and nojoy.

@oxZmoron This post here was wrong. One moment :slight_smile:

@ChuckPA said:

Folks, Please use ‘Code’ Paragraph Formatting when you post scripts so

#this is a comment

turns out properly as

#this is a comment

My apologies, I don’t post on forums much so I have much to learn.

No problem and understood, otherwise I would be more VOCAL about it >:) lol

@oxZmoron great! Now please follow my guide 4-5 posts above and rerun the migration script.

@uglymagoo

my plexmediaserver.prev file now reads…

# default script for Plex Media Server

# the number of plugins that can run at the same time
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6

# ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000

# where the mediaserver should store the transcodes
PLEX_MEDIA_SERVER_TMPDIR=/tmp

# uncomment to set it to something else
# PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application\ Support"

# the user that PMS should run as, defaults to 'plex'
# note that if you change this you might need to move
# the Application Support directory to not lose your
# media library
PLEX_MEDIA_SERVER_USER=pi
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/home/pi/Library/Application Support"

is this correct?

@oxZmoron said:
is this correct?

Sorry, that was my fault ^^ I wrote too fast. Just remove the last line “ENVIR…” again and follow my 4 step guide 13 posts above.

You are a beautiful person with a heart of gold, and I love you! <3 <3 <3 Thanks for the fix @uglymagoo and keep up the GREAT work!