New to this platform. Setup PMS and everything seemed to be working fine. Then when I logged into the server tonight everything was gone. The only thing in my library now, where my movies were is a bunch of pictures with source code in them. Tried uninstalling then re-installing the Plex Server, but had the same problem when I signed in. I’m at a loss. Any help will be appreciated. TIA
Can you confirm that user plex can read the files ?
If you’re not sure, how about telling us a bit about where/how it’s stored.
There’s too many things possible without knowing details.
When I first started using Plex, everything went fine. It read my download directory & listed all my movies. Then for some reason after not opening Plex for about a week, everything was gone & it will not read or refresh my download directory now to list my movies.
I tried uninstalling & reinstalling, but still have the same problem. It will not read my download directory.
I am using Linux Mint 20.3 Cinnamon
(Cinnamon version 5.2.7)
I have a 6TB Western Digital HD - so there are no space problems.
My computer:
Desktop System: Dell product: XPS 8300
System: Kernel: 5.4.0-125-generic x86_64 bits: 64 compiler: gcc v: 9.4.0
Desktop: Cinnamon 5.2.7 wm: muffin dm: LightDM Distro: Linux Mint 20.3 Una
base: Ubuntu 20.04 focal.
If you need more info, please let me know exactly what you need.
Thank you for you time & assistance!!
Reading your download directory sounds like a permission problem.
On Linux, user plex:plex is used.
If it doesn’t have permission , you will get nothing.
Where is the WD mounted ? under /media/YOUR_USERNAME/drive_name ?
Can you get me the logs ?
Is this the log that you want to see?
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
/dev/sda 8:0 0 1.8T 0 disk
├─/dev/sda1 8:1 0 39.2M 0 part
├─/dev/sda2 8:2 0 13.3G 0 part
└─/dev/sda3 8:3 0 1.8T 0 part
/dev/sdb 8:16 0 3.7T 0 disk
├─/dev/sdb1 8:17 0 1M 0 part
├─/dev/sdb2 8:18 0 513M 0 part /boot/efi
└─/dev/sdb3 8:19 0 3.7T 0 part /
/dev/sdc 8:32 0 5.5T 0 disk
└─/dev/sdc1 8:33 0 5.5T 0 part /media/tom/Elements
/dev/sdd 8:48 0 1.8T 0 disk
└─/dev/sdd1 8:49 0 1.8T 0 part
/dev/sr0 11:0 1 1G 0 rom
/dev/sr1 11:1 1 668M 0 rom
If not, please tell me what I need to do to get you the log you need to see.
Thanks for all your help!!
Server settings inside Plex–> Troubleshooting –> Download logs
If you can’t access your server settings go to
server logs or
I’m looking for the server logs (as Jays pointed out).
I would like to ask if the media you’re trying to access is stored under /media/tom/Elements ?
/dev/sdc 8:32 0 5.5T 0 disk
└─/dev/sdc1 8:33 0 5.5T 0 part /media/tom/Elements
No the media is not stored under /media/tom/elements. This is my portable HD. I was going to put them there but decided to wait to get this problem figured out first. I am uploading my server logs.
Plex Media Server Logs_2022-12-10_00-15-29.zip (1.2 MB)
Found some permission errors:
Dec 09, 2022 12:42:42.170 [0x7fca6eb68b38] ERROR - Couldn't check for the existence of file "/media/tom/Elements/Media/Movies/.grab": boost::filesystem::status: Permission denied: "/media/tom/Elements/Media/Movies/.grab"
Dec 09, 2022 12:42:52.008 [0x7fca6a8f9b38] ERROR - IsDirectory failed boost::filesystem::status: Permission denied: "/media/tom/Elements/Media/Movies"
Linux is strict , especially in the home directory.
You can see your files but, unless you expressly open up, user plex won’t be allowed. That’s what we’re seeing here.
The easiest solution here (given you’re in physical control of the machine)
(example which will set permission for all directories in the path)
find /home/tom/Elements/Media -type d -exec chmod 755 {} \;
You might also need to manually add 755 to /home/tom, and /home/tom/Elements
If that still doesn’t allow the files to be seen, we need give global read permission for files in there
find /home/tom/Elements/Media -type f -exec chmod 644 {} \;
Probably a good idea to read the embedded manual for these commands
man command-name-here
--example--
man find
man chmod
I typed this ```
find /home/tom/Elements/Media -type d -exec chmod 755 {} ;
The directory is there with all the files. I don't know why it can't see it. I am at a total loss right now.
Thank you for all your help & again please be very specific in what you would like me to try or do next.
-
It’s always more difficult to put mounts in your home directory. Permissions issues go crazy.
-
Let’s make sure Plex can get into your home directory
ls -la /home | grep tom
ls -la /home/tom/Elements
sudo mount | grep -i elements
Show me the output (COPY/PASTE using the </> (code) formatting works perfect for this. (it’s how I show you console text)
tom@tom-XPS-8300:~$ ls -la /home | grep tom
drwxr-xr-x 32 tom tom 4096 Dec 16 10:57 tom
tom@tom-XPS-8300:~$ ls -la /home/tom/Elements
ls: cannot access '/home/tom/Elements': No such file or directory
tom@tom-XPS-8300:~$ sudo mount | grep -i elements
[sudo] password for tom:
/dev/sdc1 on /media/tom/Elements type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
tom@tom-XPS-8300:~$
My Elements drive is an external 6TB drive. Does that matter.
Also could you point me in the right direction to find a good source to learn about Linux commands with examples?
ChuckPa,
Just wondering why I haven’t received a reply. I am still having problems. Did you get my last response to your reply?
Thanks for your help!
I occasionally don’t get notifications for things I should here in the forum
If you ever need to get someone’s attention you can tag them by adding the @ symbol before their screen name
We meed to do some editing of your /etc/fstab to get the WD out from underneath /media/tom .
The Linux automounter (/media/YourUsername/–stuff–) make everything exclusive access to you only. PMS will never see anything there (Linux is strict about permissiom enforcement)
How comfortable are you at the Linux terminal window ?
I have a few commands for you
I am very comfortable at the Linux terminal window. Just let me know specifically what you would like me to do.
Thank you!
Give a read here.
The goal is to mount the drive somewhere other than /media/yourname
<pre><font color="#8AE234"><b>tom@tom-XPS-8300</b></font>:<font color="#729FCF"><b>~</b></font>$ df
df: /run/user/1000/doc: Operation not permitted
Filesystem 1K-blocks Used Available Use% Mounted on
udev 2985748 0 2985748 0% /dev
tmpfs 606544 1536 605008 1% /run
/dev/sdb3 3844031504 181501220 3467189384 5% /
tmpfs 3032712 4 3032708 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 3032712 0 3032712 0% /sys/fs/cgroup
/dev/sdb2 524272 4 524268 1% /boot/efi
tmpfs 606540 56 606484 1% /run/user/1000
/dev/sdc1 5860487164 97237944 5763249220 2% /media/tom/Elements
<font color="#8AE234"><b>tom@tom-XPS-8300</b></font>:<font color="#729FCF"><b>~</b></font>$ sudo sh
[sudo] password for tom:
# blkid /dev/sdc1
/dev/sdc1: LABEL="Elements" UUID="E43C414C3C411AC6" TYPE="ntfs" PARTLABEL="Elements" PARTUUID="6e5262c9-52d9-47be-b3d8-9d135312f912"
# mkdir /disks /Movies
# ls -la /disks
total 8
drwxr-xr-x 2 root root 4096 Dec 30 17:59 .
drwxr-xr-x 22 root root 4096 Dec 30 17:59 ..
#
</pre>
For some reason, this doesn’t look right. Am I doing it right??
You skipped a bunch of steps AND your fancy output is screwing everything up so it can’t be read easily
you didn’t unmount /media/tom/Elements and then remount it at the new location
Consider, in a NON-fancied terminal window session
[chuck@lizum Databases.2009]$ df
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/nvme0n1p2 124870 21673 103198 18% /
/dev/nvme0n1p4 789911 517807 272104 66% /home
/dev/sda1 953403 381631 571772 41% /sata
/dev/nvme0n1p1 499 25 475 5% /boot/efi
/dev/sdb1 58665 7302 51364 13% /media/chuck/282D-18F9
[chuck@lizum Databases.2010]$ sudo blkid /dev/sdb1
/dev/sdb1: UUID="282D-18F9" TYPE="vfat" PARTUUID="d1a08192-01"
[chuck@lizum Databases.2011]$
The desired UUID for /etc/fstab will be 282D-18F9
Sorry for the confusion. I didn’t skip the other steps, I stopped because I was getting confused. Also when I copied the info from my screen & pasted it here, I did use the the </>, but for some reason it didn’t come out right. I tried it 3 different times and it came out the same each time. You’ll have to bear with me, I am not a seasoned Linux user, yet. That’s why I need specific instructions. Some of this stuff I’m typing is confusing for me. I’ll understand if you don’t want to continue. I really do appreciate all your help.