Problem with aria2 in NCDownloader

OS: Ubuntu 20.04.6 LTS x86_64
Nextcloud Version: [Nextcloud Hub 8] (29.0.3)
PHP: 8.2.2.1
Apache2 latest version (As of 07/09/2024)

The problem is this. I can’t download torrents via files using NCDownloader. I am attaching the file. He writes like this.

Something must have gone wrong!

What to do? What should I do?(

Help me please.
All rights to the entire folder with nextcloud are issued for the web and I also tried it through 777

firefox_PXQx5fG65Y
https://youtu.be/2GJMo895HEM

Log

{"reqId":"69noz5PRCL36fxy9V5JF","level":3,"time":"2024-07-08T23:04:07+00:00","remoteAddr":"78.25.172.20","user":"admin","app":"PHP","method":"POST","url":"/nextcloud/index.php/apps/ncdownloader/upload","message":"Undefined array key \"torrentfile\" at /var/www/nextcloud/apps/ncdownloader/lib/Controller/MainController.php#188","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0","version":"29.0.3.4","data":{"app":"PHP"}}
{"reqId":"69noz5PRCL36fxy9V5JF","level":3,"time":"2024-07-08T23:04:07+00:00","remoteAddr":"78.25.172.20","user":"admin","app":"PHP","method":"POST","url":"/nextcloud/index.php/apps/ncdownloader/upload","message":"Trying to access array offset on value of type null at /var/www/nextcloud/apps/ncdownloader/lib/Controller/MainController.php#188","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0","version":"29.0.3.4","data":{"app":"PHP"}}
{"reqId":"69noz5PRCL36fxy9V5JF","level":3,"time":"2024-07-08T23:04:07+00:00","remoteAddr":"78.25.172.20","user":"admin","app":"PHP","method":"POST","url":"/nextcloud/index.php/apps/ncdownloader/upload","message":"Undefined variable $resp at /var/www/nextcloud/apps/ncdownloader/lib/Controller/MainController.php#209","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0","version":"29.0.3.4","data":{"app":"PHP"}}
{"reqId":"69noz5PRCL36fxy9V5JF","level":3,"time":"2024-07-08T23:04:07+00:00","remoteAddr":"78.25.172.20","user":"admin","app":"PHP","method":"POST","url":"/nextcloud/index.php/apps/ncdownloader/upload","message":"POST Content-Length of 124675 bytes exceeds the limit of 990 bytes at Unknown#0","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0","version":"29.0.3.4","data":{"app":"PHP"}}

The NCDownloader app is only supported by Nextcloud versions from Nextcloud 20 until Nextcloud 27. Nextcloud 28 and 29 are not supported:

App-Id ncdownloader
App-Name NCDownloader
Summary Aria2 and youtube-dl web gui for nextcloud
Categories tools
App-Version 1.0.20
Repository GitHub - shiningw/ncdownloader: An easy-to-use web interface for Aria2 and Youtube-dl (downloading bittorrents, videos from twitter, youtube and the likes)运行在nextcloud下的多功能下载工具(Aria2 and youtube-dl)
Issue-Tracker Issues · shiningw/ncdownloader · GitHub
PHP min/max 7.3 / 8.2
PHP min-intsize 32
NC min/max 20 / 27
Not-shipped (not included) App available in appstore
Appstore https://apps.nextcloud.com/apps/ncdownloader
Created 2021-09-09T13:46:49.468982Z
Last modified 2023-08-11T13:37:03.292802Z

If you have activated the app anyway, then you must have used force (added the app to the app_install_overwrite array in config/config.php)

You can join → this issue ← and ask for an update. But I don’t want to give you too much hope, the app looks abandoned.


Much and good luck,
ernolf

I asked exactly this topic there)

Isn’t it possible to solve something?(

And what do you mean ncdownloader is not supported? If a friend has nextcloud version 28. And everything works for him!

https://youtu.be/PCoF2chYHAU

That could well be the case. I can’t say why. There could be plenty of reasons. There you have the ability to compare, what is different beside the fact that you are using Nextcloud 29 an he is using 28. Maybe you can find the culprit!
The fact is that the app is not supported and is not a featured-by-nextcloud App. So, if nobody here has an answer or a solution to your problem I’m sorry for you, but then you have to stick with the maintainer or fork the app and fix/develop it yourself.

:wink:


Good luck,
ernolf

Hm. What do I need to give you to find this problem?

RU:

Это вполне странно. Но я выдал права на всю папку nextcloud такими командами как.

sudo chown -R www-data /var/www/nextcloud/*
sudo chown www-data /var/www/nextcloud/*
sudo chmod -R 755 /var/www/nextcloud*

После этого вроде заработало как то.

Получается надо было права выдать такие как 755. и владельца www-data

Потом открыл NCDownloader и нажал на значок папки. Выбрал папку куда сохранять ему файлы. и сохранил. Потом выбрал торрент файл и все.

Также на всякий случай поправил там cron.

sudo chmod +x /usr/bin/php
sudo chmod +x /usr/bin/php8.2
sudo chown www-data:www-data /var/www/nextcloud/cron.php
sudo chmod 755 /var/www/nextcloud/cron.php
sudo su -s /bin/bash www-data
php -f /var/www/nextcloud/cron.php

Вроде все.

Тему оставлю открытой. Вдруг кому то еще тут потребуется помощь как раз.

EN (chatgpt translated):

It’s quite strange. But I granted permissions to the entire nextcloud folder with the following commands:

sudo chown -R www-data /var/www/nextcloud/*
sudo chown www-data /var/www/nextcloud/*
sudo chmod -R 755 /var/www/nextcloud*

After that, it seemed to work somehow.

It turns out that the permissions needed to be set to 755 and the owner to www-data.

Then I opened NCDownloader and clicked on the folder icon. I chose the folder to save the files and saved it. Then I selected the torrent file and that was it.

I also adjusted the cron job just in case:

sudo chmod +x /usr/bin/php
sudo chmod +x /usr/bin/php8.2
sudo chown www-data:www-data /var/www/nextcloud/cron.php
sudo chmod 755 /var/www/nextcloud/cron.php
sudo su -s /bin/bash www-data
php -f /var/www/nextcloud/cron.php

That should be everything.

I’ll leave the topic open in case someone else needs help here.