Plex Media Server Crash at launch on Debian 9

Plex crash at launch when i install PMS, i was try fresh install OS but still not work.
OS: Debian GNU/Linux 9.9 (stretch)
Install using: sudo apt install plexmediaserver

systemctl status plexmediaserver

root@debian:~# systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2019-06-23 09:07:45 +07; 17min ago
  Process: 4772 ExecStart=/bin/sh -c  PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-release | awk -F= "{print \$2}" | tr -d \" )"  PLEX  Process: 4770 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_ Main PID: 4772 (code=exited, status=132)

Jun 23 09:07:40 debian systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=132/n/a
Jun 23 09:07:40 debian systemd[1]: plexmediaserver.service: Unit entered failed state.
Jun 23 09:07:40 debian systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Jun 23 09:07:45 debian systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Jun 23 09:07:45 debian systemd[1]: Stopped Plex Media Server.
Jun 23 09:07:45 debian systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Jun 23 09:07:45 debian systemd[1]: Failed to start Plex Media Server.
Jun 23 09:07:45 debian systemd[1]: plexmediaserver.service: Unit entered failed state.
Jun 23 09:07:45 debian systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.

journalctl -xe | grep -i plex

root@debian:~# journalctl -xe | grep -i plex
Jun 23 08:57:40 debian sudo[3583]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/bin/tee /etc/apt/sources.list.d/plexmediaserver.list
Jun 23 09:01:30 debian sudo[4141]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/bin/apt install plexmediaserver
Jun 23 09:07:09 debian groupadd[4607]: group added to /etc/group: name=plex, GID=117
Jun 23 09:07:09 debian groupadd[4607]: group added to /etc/gshadow: name=plex
Jun 23 09:07:09 debian groupadd[4607]: new group: name=plex, GID=117
Jun 23 09:07:09 debian useradd[4611]: new user: name=plex, UID=111, GID=117, home=/var/lib/plexmediaserver, shell=/bin/bash
Jun 23 09:07:09 debian usermod[4617]: change user 'plex' password
Jun 23 09:07:10 debian chage[4622]: changed password expiry for plex
Jun 23 09:07:10 debian usermod[4634]: add 'plex' to group 'video'
Jun 23 09:07:10 debian usermod[4634]: add 'plex' to shadow group 'video'
Jun 23 09:07:19 debian systemd[1]: Starting Plex Media Server...
-- Subject: Unit plexmediaserver.service has begun start-up
-- Unit plexmediaserver.service has begun starting up.
Jun 23 09:07:19 debian systemd[1]: Started Plex Media Server.
-- Subject: Unit plexmediaserver.service has finished start-up
-- Unit plexmediaserver.service has finished starting up.
Jun 23 09:07:25 debian systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=132/n/a
Jun 23 09:07:25 debian systemd[1]: plexmediaserver.service: Unit entered failed state.
Jun 23 09:07:25 debian systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Jun 23 09:07:30 debian systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Jun 23 09:07:30 debian systemd[1]: Stopped Plex Media Server.
-- Subject: Unit plexmediaserver.service has finished shutting down
-- Unit plexmediaserver.service has finished shutting down.
Jun 23 09:07:30 debian systemd[1]: Starting Plex Media Server...
-- Subject: Unit plexmediaserver.service has begun start-up
-- Unit plexmediaserver.service has begun starting up.
Jun 23 09:07:31 debian systemd[1]: Started Plex Media Server.
-- Subject: Unit plexmediaserver.service has finished start-up
-- Unit plexmediaserver.service has finished starting up.
Jun 23 09:07:33 debian systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=132/n/a
Jun 23 09:07:33 debian systemd[1]: plexmediaserver.service: Unit entered failed state.
Jun 23 09:07:33 debian systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Jun 23 09:07:38 debian systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Jun 23 09:07:38 debian systemd[1]: Stopped Plex Media Server.
-- Subject: Unit plexmediaserver.service has finished shutting down
-- Unit plexmediaserver.service has finished shutting down.
Jun 23 09:07:38 debian systemd[1]: Starting Plex Media Server...
-- Subject: Unit plexmediaserver.service has begun start-up
-- Unit plexmediaserver.service has begun starting up.
Jun 23 09:07:38 debian systemd[1]: Started Plex Media Server.
-- Subject: Unit plexmediaserver.service has finished start-up
-- Unit plexmediaserver.service has finished starting up.
Jun 23 09:07:40 debian systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=132/n/a
Jun 23 09:07:40 debian systemd[1]: plexmediaserver.service: Unit entered failed state.
Jun 23 09:07:40 debian systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Jun 23 09:07:45 debian systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Jun 23 09:07:45 debian systemd[1]: Stopped Plex Media Server.
-- Subject: Unit plexmediaserver.service has finished shutting down
-- Unit plexmediaserver.service has finished shutting down.
Jun 23 09:07:45 debian systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Jun 23 09:07:45 debian systemd[1]: Failed to start Plex Media Server.
-- Subject: Unit plexmediaserver.service has failed
-- Unit plexmediaserver.service has failed.
Jun 23 09:07:45 debian systemd[1]: plexmediaserver.service: Unit entered failed state.
Jun 23 09:07:45 debian systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.

Logs please? (Manually collected tar.gz)

I see nothing at: /var/lib/plexmediaserver/Library/Application Support

What does ls -laR /var/lib/plexmediaserver show ?

I see you have username plex changing in your logs. Did the UID change ?

Jun 23 09:07:10 debian chage[4622]: changed password expiry for plex
Jun 23 09:07:10 debian usermod[4634]: add 'plex' to group 'video'
Jun 23 09:07:10 debian usermod[4634]: add 'plex' to shadow group 'video'
Jun 23 09:07:19 debian systemd[1]: Starting Plex Media Server...
1 Like

ls -laR /var/lib/plexmediaserver

vthang@debian:~$ ls -laR /var/lib/plexmediaserver
/var/lib/plexmediaserver:
total 12
drwxr-xr-x  3 plex plex 4096 Jun 23 09:07 .
drwxr-xr-x 32 root root 4096 Jun 23 09:07 ..
drwxr-xr-x  3 plex plex 4096 Jun 23 09:07 Library

/var/lib/plexmediaserver/Library:
total 12
drwxr-xr-x 3 plex plex 4096 Jun 23 09:07 .
drwxr-xr-x 3 plex plex 4096 Jun 23 09:07 ..
drwxr-xr-x 2 plex plex 4096 Jun 23 09:07 Application Support

/var/lib/plexmediaserver/Library/Application Support:
total 8
drwxr-xr-x 2 plex plex 4096 Jun 23 09:07 .
drwxr-xr-x 3 plex plex 4096 Jun 23 09:07 ..

I dont know what you mean at second question, i’m just a noob at linux, but when i use filezilla to check all folder under /var/lib/plexmediaserver/ have Owner/Group : 111 117

vthang@debian:~$ id plex uid=111(plex) gid=117(plex) groups=117(plex),44(video) vthang@debian:~$ id plex -G 117 44

Under /var/lib/plexmediaserver you should see Application Support/Plex Media Server / all-of-plex's-files

Since the installer creates down to Application Support, this tells me PMS never launched at all.

There is a very critical configuration problem on your system and I’m not sure how to figure it out at this point (yet)

Is Debian all up to date (apt-get update ; apt-get upgrade ) ?

Yes, i use apt-get update and apt-get upgrade before install plex.

Maybe i run Debian on Buffalo LS421DE cause unknown problem? (They didnt offcial support Debian on this NAS. I have samba, transmission, pi-hole run fine in this system).

Thank you very much for your help.

So this is running an a NAS, with Debian loaded and the vendor doesn’t show Linux support?

Is it in any kind of container or VM ?

what;s the CPU ?

Yes, i run Debian on Nas. The NAS itself run on Linux, but each time restart, you must use some debug tools to enable ssh, do root command…etc… so few Dev decided to make Debian run on this NAS: https://github.com/1000001101000/Debian_on_Buffalo.
This NAS run on Marvell ARMADA 370 1.2 GHz CPU.

You aren’t going to be able to use the 64 bit build on a 32 bit host.

This explains why it can’t start.

You actually need one of the NAS builds, repackaged for debian desktop mode.

1 Like

I’m just a noob in Linux, its seem impossible for me to do this. So i will stick with PMS on Windows. Once again, thank you very much. And sorry for my broken English.

You’re very welcome! No trouble at all.

The distinction is:

Armada 370 is a 32 bit ARMv7 CPU.

The only Debian package Plex has for ARM is for the 64-bit ARMv8 CPUs
We do use ARMv7 CPU’s in our NAS builds.

This is probably why you have the same CPU in your NAS.

I wish you the best of luck…

Fun experiment, yes?

1 Like

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