-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot download trailers.. permission denied #17
Comments
|
Not sure if Unraid supports this at the moment, but there is an option to set custom PUID and PGID for the app. I would suggest you to set them to the same as what you are using for |
you can also set APPUSER to desired user. Environment Variables to set:
|
there is a bug with current implementation of PUID/PGID and APPUSER. If a user/group with PUID/PGID already exists, it would fail. I am working on a fix. Also, APPUSER will be removed as it doesn't have any effect inside the container, so will use PUID/PGID instead within the container. |
thank you, so i will remove appuser from the template and leave 1000 and 100 and i guess after your fix 100 should not fail? thanks! |
I removed APPUSER so it always uses the name as appuser but adds it with supplied PUID and checks if group with PGID already exists, if so adds it to that group, otherwise creates new group with PGID Check your user PUID by running |
You have a permissions problem. Try running this command (probably as sudo): cat /etc/passwd PUID and PGID are the numbers in output. Refer this for help. Then check the PUID and PGID for the |
well but i do not understand i am using the same PUID and PGID than radarr and sonarr the difference is that when trailarr runs, in the logs it shows that it is actually trying to create a user 'appuser' instead of elvis0288 which is PUID 1000. so at the end the docker folders will have appuser appuser instead of elvis0288 1000 Creating '/data' folder for storing database and other config files |
Same error on unraid here. tried PUID 99 PGID 100 1000/1000 99/100 |
A quick google search for Looks like a solution is to set PUID to 99 (which is for user nobody) and PGID to 100 (for group users) (taken from this comment @elvis0288 @morpheus302 Can you try using these and report back if it works? |
For the container using 'appdata' user, that is the default, but it's just how containers work. However, the user name and group name doesn't matter, it's the PUID and PGID that matters. And app will set those to the supplied PUID/PGID so it should work. It's working on other systems (I tried on Ubuntu 22.04) |
I understand that |
Looks like appuser is created with PUID/PGID as 100/100. Please try |
something i would like to point out and not sure if it even matter is that inside the movies folder i have 3 other folders. all of them with same permissions. tried doing /movies/movies but same result drwxr-xr-x 1 nobody users 20480 Aug 2 10:53 movies/ and inside is where the movies from radarr are located |
I have no knowledge about unraid templates, can anyone create their own template? |
i will ask JPDVM2014 who created the unraid template to fix it |
@JPDVM2014 looks like you created the Trailarr template for Unraid, can you update it to also take input for both |
Yeah, it would be best to leave them blank to let people fill them in. If you can add a comment or placeholder, that would be great! Here's the instructions from README, you could add something similar
|
Perfect! Thank you :) |
i have check my permissions on unraid and those folders are set to nobody and read and write for everybody but still i am getting that error.. not sure why.. maybe the fact i am using PUID 1000 and PGID 100 instead of default on radarr is affecting something?
i will add the logs and also my radarr and trailarr config
LOGS:
`2024-08-07T08:59:59-0500 [INFO|main|L085]: Main: Client #505025 connected!
2024-08-07T08:59:59-0500 [INFO|main|L093]: Main: Client #204356 disconnected!
PermissionError: [Errno 13] Permission denied: '/movies'
File "", line 225, in makedirs
File "", line 215, in makedirs
File "", line 215, in makedirs
os.makedirs(trailer_path)
File "/app/backend/core/download/trailer.py", line 137, in download_trailer
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
if download_trailer(media, trailer_folder, is_movie):
File "/app/backend/core/download/trailer.py", line 230, in download_trailers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
downloaded_media = download_trailers(media_trailer_list, is_movie)
File "/app/backend/core/tasks/download_trailers.py", line 60, in _download_missing_media_trailers
_download_missing_media_trailers(is_movie=True)
File "/app/backend/core/tasks/download_trailers.py", line 84, in download_missing_trailers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
retval = job.func(*job.args, **job.kwargs)
File "/usr/local/lib/python3.12/site-packages/apscheduler/executors/base.py", line 125, in run_job
Traceback (most recent call last):
2024-08-07T08:59:57-0500 [ERROR|base|L131]: Job "Download Missing Trailers (trigger: interval[1:00:00], next run at: 2024-08-07 09:59:36 CDT)" raised an exception
2024-08-07T08:59:36-0500 [INFO|trailer|L229]: Downloading trailer for '[1]The Lion King'...`
RADARR:
TRAILARR:
The text was updated successfully, but these errors were encountered: