The Plex Server stopped working

Hi
Installed PMS on Raspberry PI/osmc.It worked
for 5 min and suddenly stopped, as soon as i tried
to add Pictures folder, which is located on
NFS share on |WD NAS server.
Everything on Pi works. Access to Plex server is
refused. It looks like no logs are generated anymore.

Thanks

Ziggy

What’s the status of the service? systemctl status plexmediaserver

It PMS is down please restart the service with sudo systemctl restart plexmediaserver and post the server logs.

https://support.plex.tv/articles/200250417-plex-media-server-log-files/

Also worth a look:
Free space on your root file system: df -h
systemd service log: journalctl -u plexmediaserver

here it is the status

osmc@osmc:~$ sudo systemctl status plexmediaserver

  • plexmediaserver.service - Plex Media Server for Linux
    Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
    Active: active (running) since Sun 2018-08-12 20:08:32 EDT; 19h ago
    Process: 288 ExecStartPre=/bin/sh -c /usr/bin/test -d “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” || /bin/mkdir -p “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” (
    Main PID: 302 (sh)
    CGroup: /system.slice/plexmediaserver.service
    |-302 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver “/usr/lib/plexmediaserver/Plex Media Server”
    `-307 /usr/lib/plexmediaserver/Plex Media Server

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

df -h

osmc@osmc:~$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 369M 0 369M 0% /dev
tmpfs 374M 38M 336M 11% /run
/dev/mmcblk0p2 15G 2.6G 11G 19% /
tmpfs 374M 0 374M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 374M 0 374M 0% /sys/fs/cgroup
/dev/mmcblk0p1 240M 34M 206M 15% /boot
tmpfs 75M 0 75M 0% /run/user/1000

osmc@osmc:~$ sudo journalctl -u plexmediaserver
– No entries –

My original log (the last one)

Plex Media Server.log (124.4 KB)

Ziggy

Please restart the service: sudo systemctl restart plexmediaserver.

Please also take a look at the kernel logs: sudo dmesg and search for plex related crashes.

I didn’t find anything referencing Plex in dmesg.

I found Vrash Dump from lastweek

dump.zip (53.9 KB)

ziggy

Did the service restart restore PMS for now?

restarted and it looks like it is running.

osmc@osmc:/mnt/BL-photos$ sudo systemctl restart plexmediaserver
osmc@osmc:/mnt/BL-photos$ sudo systemctl status plexmediaserver

  • plexmediaserver.service - Plex Media Server for Linux
    Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
    Active: active (running) since Mon 2018-08-13 18:27:16 EDT; 32s ago
    Process: 16059 ExecStartPre=/bin/sh -c /usr/bin/test -d “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” || /bin/mkdir -p “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}”
    Main PID: 16063 (sh)
    CGroup: /system.slice/plexmediaserver.service
    |-16063 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver “/usr/lib/plexmediaserver/Plex Media Server”
    `-16064 /usr/lib/plexmediaserver/Plex Media Server

Aug 13 18:27:16 osmc systemd[1]: Starting Plex Media Server for Linux…
Aug 13 18:27:16 osmc systemd[1]: Started Plex Media Server for Linux.

What I meant was: do you have access to the web UI again?

Btw: How did you install PMS? Scratch the other question :slight_smile:

No,I don’t have it. There is no more logs since the initial run. I uploaded them. Server crashed and asked me to upload the logs. Of course I couldn’t then, no more web access.
I followed the guide from

https://discourse.osmc.tv/t/how-to-install-plex-media-server-raspberry-pi/70704

Ah. I see. Also this guide is wrong and editing /etc/default/plexmediaserver.prevdoes nothing :sleepy:

Did you change the owner of /var/lib/plexmediaserver to osmc?

Please show me the permissions of this directory: ls -ahl /var/lib/plexmediaserver/

Please restore the ownership of /var/lib/plexmediaserver to plex:plex sudo chown -R plex:plex /var/lib/plexmediaserver.

You might want to add user plex to the osmc group: sudo gpasswd -a plex osmc.

FInally, restart the PMS service one last time.

And for the sake of completion: Here are the official setup instructions:

osmc@osmc:/var/lib/plexmediaserver$ ls -ahl
total 12K
drwxr-xr-x 3 plex plex 4.0K Aug 6 19:56 .
drwxr-xr-x 23 root root 4.0K Aug 6 19:54 …
drwxr-xr-x 3 plex plex 4.0K Aug 6 19:56 Library
osmc@o

Nevertheless, please issue the other commands in my above reply and restart your RPi afterwards :slight_smile:

No i didn’t change the owner, but did it as you suggested, anyway, also added plex to osmc group. restarted PMS and still can’t access it

Did you install some firewall? E.g. ufw? Please post the result of sudo ufw status .

Please also reinstall PMS: sudo apt-get --reinstall plexmediaserver-installer to make sure all files are in a healthy state.

this is my /etc/default/plexmediaserver.prev
osmc@osmc:/etc/default$ more plexmediaserver.prev

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=osmc

The content of plexmediaserver.prev does not matter at all. It’s not used anywhere.