No files showing in my media library folders

Server Version#: 1.20.3.3483
Player Version#: 4.34.4

I restarted my linux mint computer and now i can not see any of the media files, movies and videos when i start plex and click the repo. It show none of the videos in my media folders. I can access the folders on my linux mint system but not plex

In that case it sounds very much like a permission issue, maybe a bad mount?!

i unmounted and then remounted the drive my media is stored on. And it is still not showing up in plex. I used to be able to access the content just a couple of days ago. I dont see how permissions could have changed

have you checked them?

yes- the files and folder have read, write & execute access but i am not able to see it in plex
rwxrwxrwx

Please read the How-To.
Pay particular attention to where they are mounted and how they are mounted.
Permissions mean nothing if other conditions are not satisfied

I’m willing to bet you have the media in your home directory or in /media ?

Show us what you have please?

all the files and folders have create & read permissions. see the screenshot here.

Also i double checked the status of my plex media server and it says it failed to start.

What you are showing me is a failure of PMS to actually start.
This has nothing to do with media at this point. Right now, the server hasn’t started.

  1. Did you modify /lib/systemd/system/plexmediaserver.service ? Your screenshot showing your username implies you have made changes.
  2. If so, show me what you did and do you know there is a proper (Linux supported) method for making those changes?

The error implies that /var/lib/plexmediaserver/Library/Application Support doesn’t exist and cannot be properly initialized in the startup sequence.

I need to know more about this path. Was it moved with Symbolic links or by other means?

hi chuckpa

I tried to restart my server after i modified the permissions but that didn’t work. so i tried to reinstall plex server- following the Plex Uninstall using the linux/ubuntu/debian instructions. And then reinstalled it

That procedure only removes the software.
It won’t correct a problem in the Linux filesystem – which is what you appear to have.

  1. please type ls -la /var/lib/plexmediaserver and show me the result.
  2. please confirm whether or not you changed /lib/systemd/system/plexmediaserver.service

Linux doesn’t like directory permissions being changed arbitrarily. Plex is a non-privileged service on Linux and, as such, must have everything properly configured to work (which is what my installation scripts do)

Hi chuck,

below is screenshot of the result of the ls.
I did not modify the plexmediaserver.service other than reinstall the plex media server. Here is the plexmediaserver.service file in the lib/systemd/system

# 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 \\" )"; \
export LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib; \
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

Thanks.

First step here – Get PMS running again.

sudo bash
chown -R plex:plex /var/lib/plexmediaserver
find /var/lib/plexmediaserver -type d -exec chmod 755 {} \;
find /var/lib/plexmediaserver -type f -exec chmod 644 {} \;

Now check its status systemctl status plexmediaserver

If not running, manually create a tar of the logs and attach using

sudo tar cfz /tmp/plexlogs.tar.gz  "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs"

Attach the tar.gz here and I’ll look at it

After this is done and confirmed, I’ll show you the links (how-to’s) to make your media visible (accessible) by Plex.

hi chuck,

i was able to run the commands to change the ownership and permissions os the plexmediaserver. See screenshot.
I restarted the server but it threw some exception- see attached tar logs

plexlogs.tar.gz (46.3 KB)

Sorry for the delayed reply.

What else is on that host running on / listening to the Plex ports?
Docker? Tautulli ?

Do you have a second instance of PMS ?

Oct 31, 2020 20:06:40.737 [0x7f1e73d01100] DEBUG - HttpServer: Listening on IPv6 as well as IPv4.
Oct 31, 2020 20:06:40.738 [0x7f1e73d01100] ERROR - HttpServer: Error binding acceptor: Address already in use
Oct 31, 2020 20:06:40.738 [0x7f1e73d01100] ERROR - HttpServer: Error opening acceptor on IPv6, falling back to IPv4: Address already in use
Oct 31, 2020 20:06:40.738 [0x7f1e73d01100] ERROR - HttpServer: Error binding acceptor: Address already in use
Oct 31, 2020 20:06:40.738 [0x7f1e73d01100] ERROR - Error: Unable to set up server: listen: Address already in use (N5boost10wrapexceptINS_6system12system_errorEEE)

Look to see if there is a stuck process – reboot if there is.

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