Skip to content
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

nextcloud 30 issue with yt-dlp #166

Open
zqpvr opened this issue Oct 7, 2024 · 1 comment
Open

nextcloud 30 issue with yt-dlp #166

zqpvr opened this issue Oct 7, 2024 · 1 comment

Comments

@zqpvr
Copy link

zqpvr commented Oct 7, 2024

WARNING: Writing cache to '/var/www/.cache/yt-dlp/youtube-nsig/34059770.json' failed: Traceback (most recent call last):
File "/var/www/nextcloud/apps/ncdownloader/lib/Ytdl/../../bin/yt-dlp/yt_dlp/cache.py", line 41, in store
os.makedirs(os.path.dirname(fn), exist_ok=True)
File "", line 215, in makedirs
File "", line 215, in makedirs
File "", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/var/www/.cache'

WARNING: Writing cache to '/var/www/.cache/yt-dlp/youtube-nsig/34059770.json' failed: Traceback (most recent call last):
File "/var/www/nextcloud/apps/ncdownloader/lib/Ytdl/../../bin/yt-dlp/yt_dlp/cache.py", line 41, in store
os.makedirs(os.path.dirname(fn), exist_ok=True)
File "", line 215, in makedirs
File "", line 215, in makedirs
File "", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/var/www/.cache'

ERROR: unable to create directory [Errno 17] File exists: '/tmp/oc_tmp_ovUTYh'
✖

I get this error when trying to download youtube videos with latest yt-dlp on ubuntu 24.04 on nextcloud 30, even with torrents but it gets further but when it downloads something I check /Downloads and there is nothing in there.

@amir-fo
Copy link

amir-fo commented Jan 17, 2025

There are to ways to fix this by my knowledge.
1- creat the directory .cache and give permission to you webserver

2- if you dont need caching add "$this->addOption('--no-cache-dir');" without"" to line 146 of ytdl.php located at /path/to/your/nextcloud/apps/ncdownloader/lib/ytdlp

2nd option has fixed the error for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants