Jellyfin Forum
There was an error adding the media path. Please ensure the path is valid and Jellyfi - 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: There was an error adding the media path. Please ensure the path is valid and Jellyfi (/t-there-was-an-error-adding-the-media-path-please-ensure-the-path-is-valid-and-jellyfi--11746)



There was an error adding the media path. Please ensure the path is valid and Jellyfi - J_Net Reloaded - 2025-04-17

There was an error adding the media path. Please ensure the path is valid and Jellyfin has access to that location.

the folders are on an ext usb and im mounting them to /mnt/points and added ownership and permissions still it gives error There was an error adding the media path. Please ensure the path is valid and Jellyfin has access to that location.


I solved this before left a forum post about it for future resolving this issue and cant find it so i cant remember how i fixed it last time!

Iv tried

sudo chmod 755 /media/jay/59D1-02E4/Vids/Films
sudo ln -s /media/jay/59D1-02E4/Vids/Films /mnt/Movies
sudo chmod 755 /mnt
sudo chown -R jellyfin:jellyfin /media/jay/59D1-02E4/Vids

sudo -u jellyfin ls /mnt/Movies
ls: cannot access '/mnt/Movies': Permission denied


I added it to root group and It now has access
sudo usermod -aG root jellyfin


RE: There was an error adding the media path. Please ensure the path is valid and Jellyfi - TheDreadPirate - 2025-04-18

First, immediately remove Jellyfin from the root group. Bad bad bad. Only root should be in the root group. Massive security concern.

You have two options, manually mount the devices via /etc/fstab or remove the ACL that is likely on /media/jay/59D1-02E4

For removing the ACL, use this command.

Code:
sudo setfacl -b /media/jay/59D1-02E4

For manually mounting the external drives, skip about halfway down my post lined below. (the link should auto skip)

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