No plexmediaserver.service and plexmedialibrary folder

Server Version#: 1.16.5.1554-1e5ff713d
Player Version#: LG 55LV5400

I installed Plex media Server with Ubuntu Software and I can use it with my iPad. But I have some problems with the server and my tv player.

  • When i verify the server with the command “systemctl status plexmediaserver.service” I have the return “Unit plexmediaserver.service could not be found”. Why I don’t run the service?

  • When I go to the server with my Tv player, the folders are empty. My files are locate on a Raid 1 HDD. Why the folders are empty?

  • I want to verify the permission for the folder /var/lib//plexmedialibrary but I don’t have the folder??? There is no folder…

Thanks a lot for your help.

Linux Distribution and version please?

plexmediaserver.service is installed in /lib/systemd/system/plexmediaserver.service

I have Ubuntu 18.04.3 LTS and if I look in /lib/systemd/system, I don’t have the plexmediaserver.service.

luc@Ubuntu:/lib/systemd/system$ ls | grep plex
luc@Ubuntu:/lib/systemd/system$

Thanks

Where is this 18.04 installed? Did you install 18.04 or did someone install it for you?

My package, as distributed, installs the master copy in /lib/systemd/system

I installed Ubuntu on my drive and I installed Plex server. I will try to uninstall dans re-install with the plexmediaserver_1.16.5.1554-1e5ff713d_amd64.deb

Did you install it as downloaded from Plex.tv or did you install it from the Ubuntu store?

There is a gross disparity here which I’m trying to identify. I have stock Ubuntu 18.04 in my development VM with has /lib/systemd/system/plexmediaserver.service

We need to isolate the root cause of this disparity.
SNAP installations (Ubuntu store) go to an entirely different place as they are containers.

  • I installed it from Ubuntu store. Few minutes ago, I uninstalled and downloaded plexmediaserver_1.16.5.1554-1e5ff713d_amd64.deb. I installed with “sudo dpkg -i plexmediaserver_1.16.5.1554-1e5ff713d_amd64.deb”

Now I have the plexmediaserver.service and my server is running. I also have the folder in /var/lib/plexmedialibrary.

  • I reach the server on my TV but my folders are empty. It’s a permission problem? My files are in my Raid 1 disks. In /media/raid/Folders with drwxrwxr-x 7 luc luc
    But my /media/raid is drwxrwxrwx 13 root root
    My /var/lib/plexmediaserver/ is drwxr-xr-x 3 plex plex
    My /var/lib/plexmediaserver/Library is drwxr-xr-x 3 plex plex

It’s a problem to have root root for /media/raid?

The Ubuntu store app is a SNAP package. It’s completely isolated from the rest of the distribution like a container. Customizing it is very difficult. If you wish to customize it, we do urge using the regular download from Plex.tv. The packaging is different and works for any Debian-based system (universal installer about to be released).

The use of /media is problematic for anything using the Gnome desktop manager and Nautilus file manager. It claims exclusive ownership of your files. When this happens, user plex is excluded and will never see your media (Linux security at work).

I have several how-to’s for mounting media (e.g. you RAID volume) where user plex can see it but the short form is:

  1. create directory/(ies) away from any existing directory and not in your home directory.
  2. set the ownership to your username
  3. Directories get 755 permissions, files get 644 (all owned by you).
  4. mount the raid anywhere in that structure you wish. No special options required.
1 Like

I found my problem: I recently installed Pi-Hole in my Raspberry and I change the DNS adress in my router. I put the DNS address by default and all works.

Thanks for your support.

That may be why DNS doesn’t resolve but isn’t related to file and directory locations at all.

Either way, Glad it;s working.

I just remembered that I was log with Ubuntu Wayland. This can be block something?

No. The desktop manager is independent in Linux.

Xorg or Xwayland manage the basic glass
Gnome-session-manager manages the desktop itself (icons)
systemd controls which processes start at boot.

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