Plex Media Server stopped working after upgrade to

Server Version#:plexmediaserver_1.15.3.876-ad6e39743_arm64.deb

Apr 08 05:43:24 rock64 systemd[1]: Starting Plex Media Server…
Apr 08 05:43:24 rock64 systemd[1]: plexmediaserver.service: Control process exited, code=exited status=127
Apr 08 05:43:24 rock64 systemd[1]: Failed to start Plex Media Server.
Apr 08 05:43:24 rock64 systemd[1]: plexmediaserver.service: Unit entered failed state.
Apr 08 05:43:24 rock64 systemd[1]: plexmediaserver.service: Failed with result ‘exit-code’.
Apr 08 05:43:29 rock64 systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Apr 08 05:43:29 rock64 systemd[1]: Stopped Plex Media Server.

I’m not able to downgrade anymore and i don’t understand why, i purged everything but plexmediaserver_1.15.2.793-782228f99_arm64.deb won’t start anymore too.

/etc/default/plexmediaserver contains

default script for Plex Media Server

the number of plugins that can run at the same time

export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6

ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE

export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000

where the mediaserver should store the transcodes

export PLEX_MEDIA_SERVER_TMPDIR=/tmp

uncomment to set it to something else

export 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 (match what is in /etc/passwd)

export PLEX_MEDIA_SERVER_USER=plex

Uncomment this to use syslog for logging instead of

sending logs to Plex Media Server.log

#export PLEX_MEDIA_SERVER_USE_SYSLOG=true

root@rock64:~# service plexmediaserver status

● plexmediaserver.service - Plex Media Server
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2019-04-08 05:17:28 UTC; 23min ago
Process: 1727 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=127)

somebody got a idea? It is very strange for me that a downgrade doesn’t fix it.

  1. /etc/defaults/plexmediaserver is not used on SystemD machines (which is what you have.
  2. You need to put your customizations in /etc/systemd/system/plexmediaserver.service.d/override.conf
  3. The instructions are below.

me too, don’t work after upgrade to

If anyone modified /etc/systemd/system/target-wants/plexmediaserver.service or /lib/systemd/system/plexmediaserver.service

This is incorrect.

  1. Customize as shown above.
  2. Target-Wants is a control mechanism used by systemd ; nothing more.
  3. /lib/systemd/system/plexmediaserver.service is under package manager control and is overwritten each update.
  4. /etc/systemd/system/plexmediaserver.service.d/override.conf is your customization and persists through updates / uninstall - reinstall cycles

I did not modify anything i even purged everything to make sure i didn’t.
Are there any dependencies that i could miss on my system for some reason after the upgrade?

@ChuckPa is there anything i can do to get plex working again? Or anything i can provide you so the problem can be identified?

Thank you

I need details please.

  1. Which distro & version (ubuntu / debian ?? )
  2. Is this your first update since 1.14.x or lower?
  3. Look for file /etc/systemd/system/plexmediaserver.service

If you see the file in #3 above, and have no customizations of your own, delete the file and restart the system

This happens because Ubuntu deviated from where Service definition files go in the early days of Ubuntu 16. They put them in /etc. Everything would have been fine until 1.15.0 when we moved the LD_LIBRARY_PATH variable.

1 Debian Stretch arm64
2 no, i updated from plexmediaserver_1.15.2.793-782228f99_arm64 to plexmediaserver_1.15.3.876-ad6e39743_arm64.
3 file not found

If i try to install plexmediaserver_1.15.3.876-ad6e39743_arm64.deb i get this

root@rock64:~# dpkg -i plexmediaserver_1.15.3.876-ad6e39743_arm64.deb
(Reading database … 84767 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.15.3.876-ad6e39743_arm64.deb …
Removed /etc/systemd/system/multi-user.target.wants/plexmediaserver.service.
Unpacking plexmediaserver (1.15.3.876-ad6e39743) over (1.15.3.876-ad6e39743) …
Setting up plexmediaserver (1.15.3.876-ad6e39743) …
Created symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service → /lib/systemd/system/plexmediaserver.service.
Job for plexmediaserver.service failed because the control process exited with error code.
See “systemctl status plexmediaserver.service” and “journalctl -xe” for details.
dpkg: error processing package plexmediaserver (–install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for mime-support (3.60) …
Errors were encountered while processing:
plexmediaserver

The strange thing is even if i try to install the previous version plexmediaserver_1.15.2.793-782228f99_arm64.deb which worked fine before plex won’t start now.

Don’ you need to use sudo before the dpkg -i plexmediaserver_1.15.3.876-ad6e39743_arm64.deb I sure have to on all my pi’s.

I’m in a root shell, so sadly that is not the problem.

Dang, I just tried applying update plexmediaserver_1.15.3.876-ad6e39743_i386.deb and same results as those listed above. I too have no customizations nor a /etc/systemd/system/plexmediaserver.service and now getting this

user444@camp3:/tmp$ sudo service plexmediaserver status
● plexmediaserver.service - Plex Media Server
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since Thu 2019-04-11 20:57:19 CDT; 9min ago
Process: 1999 ExecStart=/bin/sh -c PLEX_MEDIA_SERVER_INFO_VENDOR="(grep ^NAME= /etc/os-release | awk -F= "{print \$2}" | tr -d \" )" PLEX_MEDIA_SERVER_INFO_DEVICE="PC" PLEX_MEDIA_SERVE Process: 1994 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
Main PID: 1999 (code=exited, status=127)

Apr 11 20:57:14 camp3 systemd[1]: plexmediaserver.service: Unit entered failed state.
Apr 11 20:57:14 camp3 systemd[1]: plexmediaserver.service: Failed with result ‘exit-code’.
Apr 11 20:57:19 camp3 systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Apr 11 20:57:19 camp3 systemd[1]: Stopped Plex Media Server.
Apr 11 20:57:19 camp3 systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Apr 11 20:57:19 camp3 systemd[1]: Failed to start Plex Media Server.
Apr 11 20:57:19 camp3 systemd[1]: plexmediaserver.service: Unit entered failed state.
Apr 11 20:57:19 camp3 systemd[1]: plexmediaserver.service: Failed with result ‘start-limit-hit’.

Damn… Nevermind, I just realized after reading this that I loaded i386 over what should have been amd64, my bad lol :smiley: :-\

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