No media displayed in libraries Ubuntu 20.04.2

Server Version#: 1.22.2.4282

Hi there,

PMS is having issues loading libraries.

I am fairly sure that the drive permissions are correct.
The drive is an internal ext4 HDD.
I can see the drives/folders/individual media files when adding the libraries but nothing comes up when the library is added and I force manual library scan.

Swapfile entry: /dev/sda1 /home/media/FileStore ext4 defaults,rw,auto 0 1

I have also come across this thread and followed the instructions listed there: https://forums.plex.tv/t/drive-mount-point-not-getting-around-permissions-in-ubuntu-18-10/338660

I was running Plex on Windows up until now and not had any issues.
Any help would be much appreciated.

Thanks in advance

The Linux Tips in the #general:tips-tricks-how-tos section are usually a good starting point to troubleshoot such issues. Based on your post I assume you’re still in the middle of the initial setup of this (new) server?

→ see from step D onward.

Thanks for the reply, Tom.
I came across this article before and followed the steps listed (apologies, should have mentioned that before).
So the issue I have is the server is setup and running, but plex is not reading the media files.
Plex user has got permissions to folders:

# ls -la /disks/FilesStore 
total 32
drwxr-xr-x+ 5 plex plex  4096 Apr 10 17:38 .
drwxr-xr-x  3 kof  kof   4096 Apr 11 22:57 ..
drwxr-xr-x+ 2 plex plex 16384 Apr 10 16:35 lost+found
drwxr-xr-x+ 4 plex plex  4096 Apr 10 16:52 .Trash-1000
drwxr-xr-x+ 6 plex plex  4096 Apr 10 22:38 Video

I have no idea where to go from here to be honest

how about the folder levels below? did you apply that permission/ownership recursively?

yes, applied recursively to all folders below

I see there are ACLs set drwxr-xr-x+ (the +)

Those would block access if written incorrectly.

1 Like

Hey Chuck,

I have removed ACLs from directories/files but still the same issue.

Can you generate a scan and then grab a ZIP logs set ?

I’ll look at what is happening

Plex Media Server Logs_2021-04-12_08-47-42.zip (556.0 KB)

Hi Chuck,

Logs attached

Permission denied.

Apr 11, 2021 23:48:35.757 [0x7fe46a7fc700] DEBUG - Request: [192.168.0.51:58662 (Subnet)] GET /services/browse/L2hvbWUva29mL3RoaW5jbGllbnRfZHJpdmVz?includeFiles=1 (7 live) TLS GZIP Signed-in Token (kofnik)
Apr 11, 2021 23:48:35.757 [0x7fe46a7fc700] DEBUG - DirectoryBrowser: Decoded [L2hvbWUva29mL3RoaW5jbGllbnRfZHJpdmVz] to [/home/kof/thinclient_drives]
Apr 11, 2021 23:48:35.758 [0x7fe46a7fc700] ERROR - Couldn't check for the existence of file "/home/kof/thinclient_drives": boost::filesystem::status: Permission denied: "/home/kof/thinclient_drives"
Apr 11, 2021 23:48:35.758 [0x7fe4c77fe700] DEBUG - Completed: [192.168.0.51:58662] 200 GET /services/browse/L2hvbWUva29mL3RoaW5jbGllbnRfZHJpdmVz?includeFiles=1 (7 live) TLS GZIP 0ms 475 bytes (pipelined: 10)
Apr 11, 2021 23:48:37.219 [0x7fe4c7fff700] DEBUG - Auth: authenticated user 1 as kofnik

The thinclient_drives location is a result of me installing xrdp on the server as far as I understand.
Why does Plex need access to this location?

Apologies, I am not being ignorant, but have very limited Linux experience and trying to learn as much as I can.

It’s complaining because you pointed Plex at /home/kof ?

Remember, when it scans, it scans the current directory and all directories below it.

If you don’t want PMS scanning certain places, I recommend grouping your media into media-specific directories.

Hi Chuck,

I have not pointed it at /home/kof , which is very strange…

I have since then:

  1. Reinstalled Ubuntu 20.04 from scratch

  2. Installed Plex Media Server again and followed: https://forums.plex.tv/t/using-ext-ntfs-or-other-format-drives-internal-or-external-on-linux/198544?u=kofnik AND Drive mount point not getting around permissions in ubuntu 18.10

  3. Drive is mounted at /disks/fileStore. That directory only contains a few video files.

  4. Plex is still not picking up any media files after adding/scanning the library

It has to be permission-related, right?
Where do I go from here?
I have also attached latest log files:
Plex Media Server Logs_2021-04-12_23-11-30.zip (259.2 KB)
Any help would be greatly appreciated.

@kofnik

Would you please give me a directory listing (ls -la) of /disks, followed by a ls -laR /disks after you unmount everything attached there ?

I would chown all of your media to be owned by yourself and add Plex as a user to your group ‘usermod -a -G (yourusername) plex’ ‘usermod -a -G plex (yourusername)’ ← this adds you to the Plex group and Plex to your user group.

This is how my permissions are configured and I have zero issues.

Essentially your user owns everything and you’re just giving Plex access to it.

Can we first see what the problem is before we throw the :bomb: on it?
Sledgehammer surgery is not how I like to fix things. :slight_smile:

Hey Chuck,

See below:

image

@ChuckPa I think this thread broke down after my last comment. I can’t see any previous replies

should be fixed

1 Like

@kofnik

That’s good. You want to be certain the base directories (mount point) allow access.

The Network-Local Filesystem junction point needs to allow transit & reading (X & R) permissions.

Once onto the remote / other file system, everything within prevails.

How about deleting the library section which uses it.
Next, empty trash & clean bundles (make it forget everything)

Now add it fresh and let it go

When it stops, pull the logs ZIP for me and I’ll see what happened.