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

YT-DLP: ERROR: unable to create directory [Errno 17] File exists: '/tmp/oc_tmp_ #148

Open
afzl-wtu opened this issue Nov 6, 2023 · 1 comment

Comments

@afzl-wtu
Copy link

afzl-wtu commented Nov 6, 2023

I am using Nextcloud 27.1.3 fpm docker version. with python 3.11 (installed inside docker container alpine) and ffmpeg and aria2.
I have set download and torrent directories too. But getDownloadDir method is returning directory from /tmp and also my files are saving in /tmp dolder on disk instead of Downloads folder on my nextcloud instance. Also when I paste any youtube link in youtube-dl section and hit Hinter it gives the error:
ERROR: unable to create directory [Errno 17] File exists: '/tmp/oc_tmp_bhhbiA'

In Nextcloud Logging Section I get following errors:

[PHP] Error: mkdir(): File exists at /var/www/html/custom_apps/ncdownloader/lib/Aria2/Aria2.php#141

POST /index.php/apps/ncdownloader/ytdl/get
from 223.123.85.72 by afzl at 2023-11-06T17:54:59+00:00

and

[PHP] Error: mkdir(): File exists at /var/www/html/custom_apps/ncdownloader/lib/Aria2/Aria2.php#144

GET /index.php/apps/ncdownloader/
from 223.123.85.72 by afzl at 2023-11-06T17:59:51+00:00

Update:

If I give hardcoded paths in Aria2.php it works as expected. But I still can not make yt-dlp work.

@EitanGITHUB
Copy link

What paths did you have to hard code?

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