Movies folder not showing up, not sure if permission issue - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification) +---- Thread: Movies folder not showing up, not sure if permission issue (/t-movies-folder-not-showing-up-not-sure-if-permission-issue) |
Movies folder not showing up, not sure if permission issue - maopequena - 2024-04-29 Hi all. I need help. I've browsed the subreddit, this forum and Google for an answer, chmod'ed my folders, chown'ed my folders, edited everything I could think of/find online help in terms of permissions and I still can't see my Movies folder. My server is on CasaOS, inside Debian 12. Everything is up to date. I've loaded a few images to Imgur to help aid you in understanding my predicament: https://imgur.com/a/VlLhWXv. But first, please read on. Here's the thing: my server used to be on Windows and my Movies and TV Shows folders are still on NTFS HDs, because I had no way of formatting the HDs without losing everything (which I didn't want to do). I installed Debian 12 and CasaOS with no issues. I have several other "apps" running on CasaOS that can read these same folders, including Plex. But for some reason JF insists on not reading the contents of my "Movies" folder (which is in a dedicated HD named "Filmes 8TB"). These folders' mount points are /media/myuser/Filmes 8TB/Movies and /media/myuser/Séries 8TB/TV Shows. Everything works fine while adding the TV Shows folder, but for some reason the Movies folder doesn't show anything inside it. In Imgur you'll find my volumes configs, a sample of my movies' folder permissions and the permissions for my volumes, as well as three JF screenshots for adding my TV Shows folder and my Movies folder. One other piece of information: this is my second install of Jellyfin. The first one was working fine until I realized that it wasn't scanning recently added movies. I then searched for a solution for this and found out that the best option was to remove my Movies library and add a new one. This is when this problem appeared. Please, please help... I don't know what to do anymore... RE: Movies folder not showing up, not sure if permission issue - TheDreadPirate - 2024-04-29 /media/myuser tells me this was auto mounted. Usually this means there is an ACL applied to the mount. Code: sudo setfactl -b -R /media/my user That will recursively remove the ACL and only use the base Linux permissions. RE: Movies folder not showing up, not sure if permission issue - maopequena - 2024-04-29 OMG, OMG, OMG! Noooooo!!!! Now I can't access the folders on Dolphin! How can I undo this? Also, it didn't work.... Movie folders still not showing up in JF. Edit: Plex still works fine. But all my media folders are inaccessible outside of CasaOS, and the Movies folder is now completely inaccessible, which I was able to access both inside and outside of CasaOS, and presents this quirky little tidbit: https://imgur.com/IvgByEN. The movie in question is something I deleted a while ago, after watching it. When running the setfacl command I noticed it was trying to apply it to several folders of movies I had deleted. Maybe this is something of a clue? RE: Movies folder not showing up, not sure if permission issue - maopequena - 2024-04-29 (2024-04-29, 10:38 PM)maopequena Wrote: OMG, OMG, OMG! Noooooo!!!! Now I can't access the folders on Dolphin! How can I undo this? Ok, phew... I chown'ed my way back to my folders. I was really scared there for a moment... When checking permissions, I see everything is rwx all the way down to the movie files themselves. Still no Movies folder in JF. I don't know man. This is getting weirder and weirder.... RE: Movies folder not showing up, not sure if permission issue - EliteAlien - 2024-04-30 (2024-04-29, 01:21 AM)maopequena Wrote: Hi all. I need help. I've browsed the subreddit, this forum and Google for an answer, chmod'ed my folders, chown'ed my folders, edited everything I could think of/find online help in terms of permissions and I still can't see my Movies folder.This sound like a permission issue to me. Either due to the lack of the Jellyfin group or user being assigned or Docker related due to not giving Docker access to the proper media folder. - Can you list out the actual commands for the chmod and chown. My suggestions: sudo chown jellyfin:jellyfin -R /media/media-folder and then put other user accounts in the jellyfin group. Which gains you access to those folders from the other users. However, all the files will be recursively changed and owned by the Jellyfin user account. - When you go in a terminal and "ls -l /media/media-folder" what is the full output. Example of what my mounted location for movies looks like: https://imgur.com/a/yDCgqjR - If Jellyfin in hosted in the CasaOS with a Docker container, what docker container did you use and can we see the yaml and/or how you setup the command. RE: Movies folder not showing up, not sure if permission issue - geebx - 2024-05-03 try mounting your drive to /mnt or /srv and make sure it's outside your home directory. avoid any directory related to your user account $USER. if you're using docker-compose file, maybe this will help: Code: services: /mnt/windows-disk <- this is where I mounted my internal SSD and I didn't have to set permissions RE: Movies folder not showing up, not sure if permission issue - maopequena - 2024-05-06 Hi EliteAlien and geebx! Sorry for the late reply, I was busy with home stuff and put this aside for a bit. (2024-04-30, 10:58 PM)EliteAlien Wrote: ...Docker related due to not giving Docker access to the proper media folder. Going backwards through EliteAlien's queries: - My yaml file is here: https://text.is/0855. Please ignore the lack of indentations, this is just how the text pasted on the site. Indentations are correct in the file, I've checked. - Example of my Movies folder is here: https://imgur.com/eW5hrFS, it's just that my user name and the group name (which both start with m) are blacked out. - I can't define the user and group as "jellyfin" as that would block Plex, Sonarr, Radarr and Bazarr from accessing the same drives. I also wouldn't be able to access it outside of CasaOS or through a SMB share. Or maybe you have a solution for that? - Using your suggestion, I have tried, once again, to chown this folder: "sudo chown myuser:myuser -R /media/myuser". The result was a lot of "Operation not allowed" (sorry, my system is in Brazilian Portuguese: "Operação não permitida", but I think this is the right translation into English) on a drive that mounts automatically to my system. Whenever I restart my system, I always have to open Dolphin, select the HDs for Movies and TV Shows, and type in my user's password, because they don't mount automatically. I tried changing this in fstab, but also lost access to these drives when I did it, so I changed it back. It also showed, again, folders that I have already deleted from my system and that do not show up in Dolphin. Here's a screenshot: https://imgur.com/G4rv3pz. Rebooted and... NOPE! It just refuses to access it! - New information: now Plex also can't access the same folder. This is unrelated to the chown command above, since it began before I even checked your reply. Now, for geebx's reply: (2024-05-03, 01:08 AM)geebx Wrote: try mounting your drive to /mnt or /srv and make sure it's outside your home directory. avoid any directory related to your user account $USER. I'm going backwards through geebx's queries again: - I did not pick where my media drives mounted, this happenned automagically. Can I do that now? Won't it mess up my other installs? Can I temporarily use 'mount --bind olddir newdir' to test this? Or should I try editing fstab again? - My yaml looks a bit more complex because it was exported through CasaOS, but these are the same variables I used. - /srv is better in this instance, right? since I need to access these files everywhere on my network (The home server, my laptop, through SMB)? Also, I've noticed that anything with my $USER is a no-no, thank you for letting me know! I've actually seen this mentioned quite a few times... This information is nowhere to be found during the installation process... And I've read a lot of instructions from several different places! Do you guys think I should reinstall CasaOS (and that would reinstall Docker and all the "apps")? Maybe before reinstalling I could create a specific user and group, and assign all my media-related "apps" to that group/user so I wouldn't have these issues. Also, I'd mount the drives in a better place before reinstalling everything. Thank you for both your replies! Hope you have a wonderful week! RE: Movies folder not showing up, not sure if permission issue - EliteAlien - 2024-05-06 (2024-05-06, 05:28 AM)maopequena Wrote: Hi EliteAlien and geebx! Sorry for the late reply, I was busy with home stuff and put this aside for a bit.- That link says the Docker image in that yaml via text.is/0855 is for linuxsever/plex not Jellyfin. The docker containers yaml should look more like what Geebx listed and the volumes should be similar to how you would have setup the Plex one as well. Though with "Jellyfin". - Yes as I mentioned in my previous post. You would need to assign all the users to that group. You don't exactly have to make the group Jellyfin, but you do need to link the users to have access to that group. You could add it to an existing group or create a new group and add all the users to that said group. 1) sudo groupadd name-of-group (Create a new group) or sudo usermod -a -G name-of-group username (Add user to an existing group) Either create a new group and use the second command or add Jellyfin to have access to the same group Plex, Sonnar, Radarr, Bazarr, et cetera have access too. 2) If you want to make sure that a user is in a group or check the existing groups a user is in. "groups username" (This will list all groups the user is in) - Is this like a USB drive, or is this like a Samba share mount that you tried mounting using your fstab? Also, what format is this file system in (for example, NTFS, EXT3, EXT4, BRTFS, or XFS)? Could you supply your fstab? Because if you mounted this via fstab and can't gain access this sounds like either a mounting issue or again another permission issue to where you're mounting the drive. - I would say it's again a group issue for Plex even. I've only used Plex for a short test and jumped off it years ago. Not via a Docker container, but a direct install and it too had to have the media in a group "Plex" to access it. Most likely this is similar, so if you ran "groups plex" you would get a list of the groups it's in and gain access to that said group. Even Emby have similar groups as well. The problem you have with this is you have to give them all access to the same group to access the files if you wish to use them all. However, you run into another issue doing this mixed platforms as well. Ownership of files can sometimes get a little messy unless force any media to change permissions on those files as standard operations can lead to copying the permissions of the files and not overriding the ownership. That is where chmod, chown, and even setfacl for the owner and groups come in. If you have separate metadata locations for each specific media server, then this should be less of an issue. My concern would be with writing the metadata in the media folders might get a little weird without setting that up as well. Once you had everything setup right you would do like a sudo chmod g+s /media-folder or sudo setfacl -Rdm g:groupname:rwx /media-folder So you understand ACL and what it's doing. https://www.computerhope.com/unix/usetfacl.htm |