Server Version#: plexmediaserver_1.32.2.7100-248a2daf0_amd64.deb
Player Version#: Multiple - Kodi plex client, browser web client, FireTV Plex Client, Cablebox with Plex app.
Server was showing all content (TV shows, Movies) until about 2 weeks ago. Suddenly all content vanished, library settings changed from /video/TV for TV, and /video/Movies for Movies, to /usr/lib/plexmediaserver/Resources/tv for TV, and /usr/lib/plexmediaserver/Resources/movies for Movies. I checked and these folders exist but are empty. The original /video/[TV,Movies] folders exist, and all the content is still there.
There is no file .plexignore anywhere on any of the filesystems. /video is a dedicated filesystem, a fast SSD for content delivery, while the root filesystem is on a spinner.
I switched the libraries back to their original locations with web client, server, manage server, libraries, edit libraries, which is how I found the changed content directories. Troubleshooting, I tried triggering library scans both from the web client and from the command line. Surprisingly, the web client shows that scans finish, but the commandline option Plex Media Scan --list results in aborted (core dump) and generates the attached logs.
As an aside, file names like Plex Media Scan on Linux are a PITA, you have to escape every space like Plex\ Media\ Scan. Using filenames without spaces makes life easier for us SysAdmins. All lowercase helps too.
Please look at the log and dump and advise. I am a Plex Pass Lifetime member.
Thanks for the reply, I checked and /video was 775 and radarr:radarr. But radarr user is part of the group plex, so it should have been working, and until recently, was. I didn’t go in and change ownerships, just updated the server version. But now I have changed /video to 775 plex:plex. Still seems to be failing to find anything, but I figure I’ll give it a 1/4 hour for the scheduled media scan.
I checked the service and it is running as plex:
root@Dyson-Media:/# cat /etc/systemd/system/multi-user.target.wants/plexmediaserver.service
# DO NOT EDIT THIS FILE DIRECTLY!
#
# Plex Media Server's variables can be customized by creating an 'overide.conf'
# file using 'systemctl edit plexmediaserver' which will create the following;
# /etc/systemd/system/plexmediaserver.service.d/override.conf
#
# An example of the override.conf would be as follows if you wished to edit
# your user, group, temp directory, or app support directory (without the leading #)
#
# [Service]
# Environment="TMPDIR=/path/to/new/tmp"
# Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/home/myusername/Library/Application Support"
# User=myusername
# Group=mygroup
#
[Unit]
Description=Plex Media Server
After=network.target network-online.target
[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support"
Environment=PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
Environment=PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
ExecStartPre=/bin/sh -c '/usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"'
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)"; \
export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION="$(grep ^VERSION= /etc/os-release | awk -F= "{print \\$2}" | tr -d \\" )"; \
exec "/usr/lib/plexmediaserver/Plex Media Server"'
Type=simple
User=plex
Group=plex
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
SyslogIdentifier=Plex Media Server
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
Server is working again. I think I found the source of the problem, which was a cron job I had running every 15 minutes to set the /video dir recursively to 774 root:plugdev, because i had a problem a couple of years ago like this, where the problem ended up being that radarr dropped files for plex with radarr:radarr ownership, and sonarr dropped them as owned by sonarr:sonarr. Worked fine for a few years, but maybe the latest server versions don’t like that? I changed the script from this: