kofnik
April 10, 2021, 10:57pm
1
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
tom80H
April 11, 2021, 12:11am
2
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?
Using other hard drives (Windows or Linux) with PMS
This How-To is written to help with Internal and External drives. It also is written to demonstrate how to cope with NTFS and EXT4 formatted drives. By logical extension, any format supported by Linux can be handled using the technique shown here. In all cases, the goal is to give user plex permission to read your media files which Linux doesn’t allow by default due to its strict security model.
We will walk through the steps needed …
→ see from step D onward.
kofnik
April 11, 2021, 11:12pm
3
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
tom80H
April 11, 2021, 11:14pm
4
how about the folder levels below? did you apply that permission/ownership recursively?
kofnik
April 11, 2021, 11:17pm
5
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
kofnik
April 12, 2021, 12:22am
7
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
kofnik
April 12, 2021, 8:05am
9
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
kofnik
April 12, 2021, 2:08pm
11
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.
kofnik
April 12, 2021, 10:40pm
13
Hi Chuck,
I have not pointed it at /home/kof , which is very strange…
I have since then:
Reinstalled Ubuntu 20.04 from scratch
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
Drive is mounted at /disks/fileStore. That directory only contains a few video files.
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 on it?
Sledgehammer surgery is not how I like to fix things.
kofnik
April 13, 2021, 9:57am
18
@ChuckPa I think this thread broke down after my last comment. I can’t see any previous replies
@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.