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
.cache - Permission issue #180
Comments
I believe it is related to the user. If you are running it on Synology, find the administrator user's gid & pid and set it |
Are you sure you haven't changed anything in the docker image / python files? The code as it is disables the cache directory (https://github.com/alexta69/metube/blob/master/app/ytdl.py#L80), and indeed nobody else is getting this behavior (even though metube runs without root privileges, so it really can't create /.cache). |
Interesting. I expected it to be user related. I will double check the user. |
The problem exists, to reproduce, use some 4k video from youture:
|
Confirmed that the current latest version has this problem @alexta69 |
Very strange. We're disabling the cache, so it's not supposed to it. In some videos it tries to use cache anyway? Can you provide a sample URL? |
Any video, for example |
Yes, I can see it happening too. Looked a bit into it, and it looks like a yt-dlp bug: we're passing cachedir=False, and there's a check for that in their Cache object, but apparently there's a Cache somewhere that's initialized without the yt-dlp options, so it continues with the default values. In any case, I see the video downloads fine despite the error. So I guess it's not that urgent to fix. If someone has some time to try to trace the call and find the Cache object that misbehaves, I suppose a fix can be submitted to yt-dlp. |
But why are you guys trying to disable the caching feature of yt-dlp? Why not just create the missing directory in the container with |
@alexta69 Any updates on this? My docker-compose is following:
It doesnt matter which directory I use. |
When downloading a YT video, I receive the following lines in the log file
File "/usr/local/lib/python3.8/site-packages/yt_dlp/cache.py", line 44, in store
today at 10:02:19 AM os.makedirs(os.path.dirname(fn))
today at 10:02:19 AM File "/usr/local/lib/python3.8/os.py", line 213, in makedirs
today at 10:02:19 AM makedirs(head, exist_ok=exist_ok)
today at 10:02:19 AM File "/usr/local/lib/python3.8/os.py", line 213, in makedirs
today at 10:02:19 AM makedirs(head, exist_ok=exist_ok)
today at 10:02:19 AM File "/usr/local/lib/python3.8/os.py", line 223, in makedirs
today at 10:02:19 AM mkdir(name, mode)
today at 10:02:19 AMPermissionError: [Errno 13] Permission denied: '/.cache'
Unsure where to set the cache location to ensure permissions are correct
The text was updated successfully, but these errors were encountered: