Jellyfin Forum
Path Not Found - 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: Path Not Found (/t-path-not-found)

Pages: 1 2


Path Not Found - JustAnotherDude - 2024-05-29

In the middle of watching a show, Jellyfin suddenly lost access to all of my media folders.  All of my files are intact and able to play in VLC.  When I go to manage libraries, whether I try to adjust a current library or add a new one, I end up with an error message stating:
"The path could not be found. Please ensure the path is valid and try again."

Remediation attempts have been:
 1.    unmount and remount hard drives
2.     ensure permissions on all drives, folders, and files are read/write
3.     unmount drives and run
Code:
ls -al /media/user
which showed all drives and partitions as root.  run
Code:
sudo rmdir /media/user/partition_name
for each partition.  remount, ls -al now lists all partitions as user owned.
4.     restart server
5.     shutdown server, follwed by
Code:
sudo systemctl enable --now jellyfin.service

I have no other ideas on how to solve this.  
System is running Linux Mint, all packages are up to date, jellyfin version 10.9.3.  All partitions and drives for media are formatted as btrfs.


RE: Path Not Found - TheDreadPirate - 2024-05-29

Are there ACLs on any of the paths? Possibly /media/user.


RE: Path Not Found - JustAnotherDude - 2024-05-29

getfacl media/user shows the following:
# file: media/user
# owner: root
# group: root
user::rwx
user:jellyfin:r-x
user:user:r-x
group::---
mask::r-x
other::r-x


RE: Path Not Found - TheDreadPirate - 2024-05-29

When you do an "ls -ld /media/user" is there a plus at the end of the permissions? Here is what getfacl shows a directory that definitely doesn't have an ACL.

Code:
getfacl: Removing leading '/' from absolute path names
# file: media/library/
# owner: chris
# group: jellyfin
# flags: -s-
user::rwx
group::r-x
other::---

Pretty sure the "mask" and "user:jellyfin" and "user:user" indicate the presence of an ACL and I've never been able to get them to work like you'd think they do. So I always remove them and use basic linux permissions.

sudo setfacl -b /media/user

Add -R if you want to recursively remove the ACL.


RE: Path Not Found - JustAnotherDude - 2024-05-29

after doing sudo setfacl -b /media/user and sudo setfacl -bR /media/user I got
# file: media/user
# owner: root
# group: root
user::rwx
group::---
other::r-x


RE: Path Not Found - TheDreadPirate - 2024-05-29

sudo chmod 755 /media/user
sudo chown user: /media/user


RE: Path Not Found - JustAnotherDude - 2024-05-30

Output of getfacl now lists user as owner, and I went ahead and ran the following, just in case...
cd /media/user
sudo setfacl -m u:jellyfin:rwx

Jellyfin server still giving the same 'Path not found' error.


RE: Path Not Found - TheDreadPirate - 2024-05-30

We don't want ACL though. They muck things up. You also need to make sure that all the folders in /media/user/ have the necessary permissions.

ls -l /media/user/*


RE: Path Not Found - JustAnotherDude - 2024-05-30

All partitions list:
total 0
drwxrwxrwx 1 user user

Thank you for taking the time to go through all of this with me.


RE: Path Not Found - TheDreadPirate - 2024-05-30

This is not ideal, but I'm short on time tonight.

sudo setfacl -b -R /media/user
sudo chmod -R 777 /media/user