Server Version#: Version 1.22.3.4523
Player Version#:4.54.5
Linux OS: Ubuntu 18.04
I suspect this maybe a bug within Plex, but I have been having issues with using secondary drives within Plex. I can access the drive without issues via windows and SSH’d into the machine but Plex is unable to located any files. One day I noticed my mappings where reset to default as my Media was no longer accessible (after the media failed to play). But attempting to add that directory back left me without any content. Plex just doesn’t seem to see anything.
Part of the issues is I am unable to navigate to the /Media folder within plex, normally I would just use the entire UNC path but that has, or recently failed.
May 15, 2021 22:58:27.465 [0x7fc3ee813780] DEBUG - Performing a scan with 'Plex Series Scanner' (language: en virtual: 0).
May 15, 2021 22:58:27.465 [0x7fc3ee813780] DEBUG - * Scanning /Media/Videos/TV Shows
May 15, 2021 22:58:27.465 [0x7fc3ee813780] DEBUG - * Marking media not available in /Media/Videos/TV Shows
May 15, 2021 22:58:27.465 [0x7fc3ee813780] DEBUG - * Taking 0 items out of the map (which has 0 items) for being unavailable.
May 15, 2021 22:58:27.465 [0x7fc3ee813780] DEBUG - * Taking 0 directories out of the map (which has 0 dirs) for being unavailable.
As I stated this worked before, not sure why this would be giving issues now but open to ideas (as I’m out)
$sudo cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=8f023616-d8d5-4f0a-a19b-ea650b4382d0 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=F4BA-361D /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda3 during installation
UUID=a74079f7-6425-484d-ab7b-05871bcd9d63 none swap sw 0 0
# Maping media
UUID=1AAF28E80B2EC336 /Media auto nosuid,nodev,nofail,x-gvfs-show 0 0
It may help to know that this server was down for a while, as I was moving systems around. Came this this. Normally just adding the paths back would address it, but I not a clue here.
This creates the mount point, sets permissions of the mount point dir prior to mount so Plex can read, then let’s the OS set default options when mounting.
Now create a library section pointing at /test/xxxx (whatever is underneath as appropriate.
I suggest this because:
Many often overlook the permissions of the mount point directory which, on some distros, defaults to 700 (no permissions for anyone but root)
Micromanaging the mount often leads to troubles. Best practice is to use minimal control, e.g. ro,nofail,bg
$sudo mount /dev/sdb /plex
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.
Which makes since as the drive is already mounted as /Media. I did look at the folder permission as seen bellow
$ll
drwxrwxrwx 1 root root 4096 May 15 22:49 Media/
So permission wise it should be ok. Looking into I check the folder I created for the test and noticed it was also not visible to plex. So I tried the following
$sudo mkdir /home/test
With these permission it seem to have work, amd am able to locate the file with Plex, however it fails if done within the root directory. The issues seem to exist with the location, as any newly created folders are not see by Plex
$sudo mkdir /test
Ended up as expected not visible, I may try editing my fstab file too see if that helps.
Changed the mount to ‘ntfs’ and to 0 1 instead of 0 0, which did not help, then changed it to ‘ext4’ and that seem to have worked.
I’ve also noticed that Plex is creating a duplicate server whenever the PC reboots. Reference to the old one seem to fails (causing the pinned ‘Movies’ and ‘TV Shows’ to fail). But the new instance seem to work by using ‘ext4’ for the mounting.
Interesting, changing it back and ‘ntfs’ causing it to fail, I changed it back to ‘ext4’ and they no longer worked. So I just calling it just being lucky the first time it worked. But this at least suggest it be and issue with mounting the driver over a permission issues. Bellow is my current fstab with relationship to the drive
$sudo mount -t ntfs-3g /dev/sdb /mnt
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command
Then went into the Plex and selected the new path, which seem to have resolve it. However I find it odd that this worked prior. Maybe a linux/plex update broke the interaction? Could the issues with mounting the drive the root folder be the main issues?
Ah, so Nautilus automount was the issues? Interesting, as I though i fixed that issue. (Used to automount as root, which prevent me as a user from access it)