2024-05-06, 05:28 AM
Hi EliteAlien and geebx! Sorry for the late reply, I was busy with home stuff and put this aside for a bit.
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:
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!
(2024-04-30, 10:58 PM)EliteAlien Wrote: ...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.
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.
if you're using docker-compose file, maybe this will help:
/mnt/windows-disk <- this is where I mounted my internal SSD and I didn't have to set permissionsCode:services:
jellyfin:
image: 'jellyfin/jellyfin:latest'
container_name: jellyfin
restart: unless-stopped
ports:
- 8096:8096
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
volumes:
- ./jellyfin/config:/config
- ./jellyfin/cache:/cache
- /mnt/windows-disk:/media
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!