Jellyfin Forum
The path could not be found. Please ensure the path is valid and try again - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: The path could not be found. Please ensure the path is valid and try again (/t-the-path-could-not-be-found-please-ensure-the-path-is-valid-and-try-again)

Pages: 1 2


The path could not be found. Please ensure the path is valid and try again - Exact3081 - 2024-08-29

Hi Jellyfin community. Hope you can help me with this headache.

I have a Linux Mint 21.3 laptop where I have installed Jellyfin server.

I have my media on an external USB at this path
Code:
/media/dellxps13/1TB Work/MEDIA/TV_Shows
but when I try and add this as the Library source, I receive the error: The path could not be found. Please ensure the path is valid and try again

Interestingly when I installed Jellyfin via Flatpak, this source worked, however after having to reinstall Jellyfin server via the package manager (snap?) it no longer is able to add this as a media path. (I had to reinstall as Jellyfin flatpak was too outdated and would no longer connect from my Fire Stick saying was too outdated).

I've read a lot of threads with a lot of different possible solutions but I'm confused as to what to try to be honest.

A visual File Explorer to select the folder of interest for setup, would be a big UX improvement in my eyes.


RE: The path could not be found. Please ensure the path is valid and try again - TheDreadPirate - 2024-08-29

Jellyfin server, when installed via apt, creates and runs as the user "jellyfin". When you run Jellyfin server via the flatpak (maintained by 3rd party) it runs as your user.

The path in question likely has an ACL that restricts access to your user, which is why the flatpak could access it. /media/dellxps13 is the directory that likely has the ACL.

I am assuming this is some sort of external hard drive that you've allowed Linux to auto-mount.

The temporary solution is to remove the ACL. The proper solution is to edit /etc/fstab and have that auto mount the hard drive without an ACL.

See my post on this thread for properly configuring /etc/fstab. Let me know if you have any questions.

https://forum.jellyfin.org/t-cannot-access-hdd?pid=32986#pid32986


RE: The path could not be found. Please ensure the path is valid and try again - Exact3081 - 2024-08-31

Thank you for your response. As an interim solution I tried to remove the ACL. (I first reformatted by drive to ext4 so it has a different name than in my first post.)

My USB drive is mounted at
Code:
/media/dellxps13/1TB_MEDIA/
so I ran
Code:
sudo setfacl -b -R /media/dellxps13/1TB_MEDIA/

The process ran but I still am unable to add the drive or folder as a Library - I get the same error message?

------

I read your other thread re the fstab updating and would like to try.

Code:
/dev/disk/by-id/wwn-0x50014ee00419ce97-part1 /media/rich/Red6 ext4 defaults 0 0

for me should be

Code:
/dev/disk/by-id/wwn-0x50014ee00419ce97-part1 /media/dellxps13/1TB_MEDIA/ ext4 defaults 0 0

Is that correct?


RE: The path could not be found. Please ensure the path is valid and try again - TheDreadPirate - 2024-08-31

Yes. After removing the ACL you also need to make sure that the jellyfin user can get in the directory. I'm assuming the permissions are 750 with your user as both the owner and group.

IMO, move your mount out of "dellxps13". Since ACLs can reappear on that directory if you plug in new drives.


RE: The path could not be found. Please ensure the path is valid and try again - Exact3081 - 2024-08-31

Code:
IMO, move your mount out of "dellxps13". Since ACLs can reappear on that directory if you plug in new
drives.

I'm relatively new to Linux. I didn't choose this mount location, -that is just where the external drive is automatically mounted when plugged in. I enter the drive in terminal and use
Code:
pwd
to get the path. A search didn't reveal much on how to move the mount location out of a location...

---- 

I have also tried the other method with fstab.

I opened the fstab file and added this as a new line at the bottom (copied and modified from your other discussion):
Code:
/dev/disk/by-id/wwn-0x50014ee00419ce97-part1 /media/dellxps13/1TB_MEDIA/ ext4 defaults 0 0

However then I tried to run this command as recommended
Code:
sudo umount media/dellxps13/1TB_MEDIA/
but got this error:
Code:
umount: media/dellxps13/1TB_MEDIA/: no mount point specified.

Apologies I am not more versed in these areas. Appreciate your help.


RE: The path could not be found. Please ensure the path is valid and try again - TheDreadPirate - 2024-08-31

(2024-08-31, 05:38 PM)Exact3081 Wrote:
Code:
IMO, move your mount out of "dellxps13". Since ACLs can reappear on that directory if you plug in new drives.


I'm relatively new to Linux. I didn't choose this mount location, -that is just where the external drive is automatically mounted when plugged in. I enter the drive in terminal and use
Code:
pwd
to get the path. A search didn't reveal much on how to move the mount location out of a location...

Yep.  That location is where drives are mounted when allowed to be auto-mounted.  In fstab you can mount it somewhere else.

(2024-08-31, 05:38 PM)Exact3081 Wrote: I have also tried the other method with fstab.

I opened the fstab file and added this as a new line at the bottom (copied and modified from your other discussion):
Code:
/dev/disk/by-id/wwn-0x50014ee00419ce97-part1 /media/dellxps13/1TB_MEDIA/ ext4 defaults 0 0

However then I tried to run this command as recommended
Code:
sudo umount media/dellxps13/1TB_MEDIA/
but got this error:
Code:
umount: media/dellxps13/1TB_MEDIA/: no mount point specified.

Apologies I am not more versed in these areas. Appreciate your help.

Code:
[code]/dev/disk/by-id/wwn-0x50014ee00419ce97-part1 /media/dellxps13/1TB_MEDIA/ ext4 defaults 0 0

The second parameter is where you want the drive to be mounted and can be almost anywhere.  Change

/media/dellxps13/1TB_MEDIA/

to

/media/{insert arbitrary folder name}

For example.

Code:
sudo mkdir /media/library

Then put this in /etc/fstab

Code:
/dev/disk/by-id/wwn-0x50014ee00419ce97-part1 /media/library ext4 defaults 0 0

Then

Code:
sudo umount /media/dellxps13/1TB_MEDIA
sudo mount -a
sudo chgrp -R jellyfin /media/library
sudo find /media/library -type d -exec chmod 770 {} \;
sudo find /media/library -type f -exec chmod 660 {} \;

In your umount command you missed the leading slash before "media".  Or you could reboot and it will mount this drive to the new location.

https://forum.jellyfin.org/t-mounting-local-storage-in-linux-linux-permissions-primer?pid=34768#pid34768:~:text=***Configuring%20fstab***


RE: The path could not be found. Please ensure the path is valid and try again - Exact3081 - 2024-08-31

Thank you - I will try this now. One thing I am understanding though is that part of the command is a unique identifier for this particular external USB:
Code:
/dev/disk/by-id/wwn-0x50014ee00419ce97-part1

I just copied and pasted it from the other discussion, hence I think that this is the unique ID for the other posters drive, would that be correct?

I searched and found this command to try discover the IDs of my drives:
Code:
ls -lha /dev/disk/by-uuid

This was the output:
Code:
$ ls -lha /dev/disk/by-uuid
total 0
drwxr-xr-x 2 root root 100 Aug 31 20:18 .
drwxr-xr-x 8 root root 160 Aug 31 20:18 ..
lrwxrwxrwx 1 root root  15 Aug 31 10:26 9f295487-f64c-434d-b7c1-78a4262fc5e9 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root  15 Aug 31 10:26 B325-6B3A -> ../../nvme0n1p1
lrwxrwxrwx 1 root root  10 Aug 31 20:18 e7b8530e-a74e-4e57-ad92-270edc94018e -> ../../sda1


If I unplug the drive, this id disappears so I am guessing it is that:
Code:
B325-6B3A

So I make a new directory at /media/Library

and then add this line at the bottom of fstab?
Code:
/dev/disk/by-id/B325-6B3A /media/Library/1TB_MEDIA/ ext4 defaults 0 0






Ah, I saw the other command you recommended and get this output:
Code:
dellxps13@dellxps13-XPS-13-9370:~$ [b]sudo ls -l /dev/disk/by-id/[/b]
total 0
lrwxrwxrwx 1 root root 13 Aug 31 10:26 nvme-eui.ace42e8170288bca -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Aug 31 10:26 nvme-eui.ace42e8170288bca-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Aug 31 10:26 nvme-eui.ace42e8170288bca-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 13 Aug 31 10:26 nvme-PC401_NVMe_SK_hynix_512GB_MS87N582914507M34 -> ../../nvme0n1
lrwxrwxrwx 1 root root 13 Aug 31 10:26 nvme-PC401_NVMe_SK_hynix_512GB_MS87N582914507M34_1 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Aug 31 10:26 nvme-PC401_NVMe_SK_hynix_512GB_MS87N582914507M34_1-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Aug 31 10:26 nvme-PC401_NVMe_SK_hynix_512GB_MS87N582914507M34_1-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Aug 31 10:26 nvme-PC401_NVMe_SK_hynix_512GB_MS87N582914507M34-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Aug 31 10:26 nvme-PC401_NVMe_SK_hynix_512GB_MS87N582914507M34-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root  9 Aug 31 20:27 usb-SanDisk_Portable_SSD_323234374739343031353332-0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 31 20:27 usb-SanDisk_Portable_SSD_323234374739343031353332-0:0-part1 -> ../../sda1


It is the portable SSD, but which is the correct ID - with the part1 or without?


RE: The path could not be found. Please ensure the path is valid and try again - TheDreadPirate - 2024-08-31

/dev/disk/by-id/usb-SanDisk_Portable_SSD_323234374739343031353332-0:0-part1


RE: The path could not be found. Please ensure the path is valid and try again - Exact3081 - 2024-09-01

All seemed to work. Thank you for your help.


RE: The path could not be found. Please ensure the path is valid and try again - Exact3081 - 2024-09-04

As a follow up, I've noticed that if my external USB is not connected my laptop fails to boot. Did I do something incorrect?