ocDownloader asking for aria2c?

Hi,

Its my first time using nextcloud. just installed it and everything works fine so far. But after installing ocDownloader. Its giving this error for both http and torrent download.

Returned GID is null ! Is Aria2c running as a daemon ?

While ocdownloader author says in requirements.

- ARIA2 (Not a requirement anymore since v1.2)
https://apps.owncloud.com/content/show.php/?content=169974

I tried to install aria2 as well with following command.

sudo apt-get install aria2

but it still wouldn’t work. Any suggestion what to do? ocdownloader wiki is also down. The major reason of installing Nextcloud is to get remote upload and view files in browsers before getting them down on my PC. Is there any other similar app for nextcloud, which can solve the issue? Would appreciate help.

1 Like

Well, i manage to find curl option but torrent is disabled by default. http and youtube both are not workiing. i get this error for direct link upload.
Error, GID not found !

And this error for youtube.
Unable to retrieve true YouTube video URL

So far this downloader is not working. Any suggestion to fix this / use this with aria2 or any alternative?

1 Like

Well, what operating system do you use? Did you follow the steps in this this Gibhub issue?

Also, for Youtube download to work, you need a recent version of youtube-dl. If you use Ubuntu/Debian, you could use the Webupd8 repository:

This may be a bug or it might just be the way it is supposed to work. If you have server side encryption enable then the .torrent file you upload will be sent to aria2c encrypted and fail decoding. It seems like you have to choose between server side encryption or downloading torrents :frowning:

@notjoe It is a known problem that ocDownloader doesn’t work with server side encryption at the moment.

Hey I got the same problem !
I use Debian9 (a brand new system)with Nextcloud 12.0.4 installed by snap with ocDownloader version 1.5.5.with Aria2
At the begining ,the ocdownloader working property with Aria2 ,which ever using Http or BT.
Then I try to add 1 more BT torrent from the cloud files,but it start to return the message "cant find the GID "to me !
I dont know why.Anyone have the solution?

Hey, i had the same problem on docker linuxserver/nextcloud:latest container based on alpine linux.
My solution was installing aria2c on base os.
Steps for install aria
$ apk add aria2 curl
$ mkdir /var/log/aria2c /var/local/aria2c
$ touch /var/log/aria2c/aria2c.log
$ touch /var/local/aria2c/aria2c.sess
$ chmod 770 -R /var/log/aria2c /var/local/aria2c
$ aria2c --enable-rpc --rpc-allow-origin-all -c -D --log=/var/log/aria2c/aria2c.log --check-certificate=false --save-session=/var/local/aria2c/aria2c.sess --save-session-interval=2 --continue=true --input-file=/var/local/aria2c/aria2c.sess --rpc-save-upload-metadata=true --force-save=true --log-level=warn

It Worked. Got a problem. Files are written to the disk under the root user. Nextcloud prohibits them to move and gives only download. Re-running aria2c with the settings from the other user gives no results. How do I change the user of downloaded files? Not root user

Please run it with sudo -u www-data aria2c ... to fix this problem.

Run it using “sudo-u www-data aria2c” in the ROOT user session then nothing changes. Files also after copying recorded with the rights ROOT.
I need ADMIN rights on the files. An error occurs when starting from the ADMIN user. How to disable ROOT and enable in the ADMIN do not understand. Here’s the log file:

2019-04-08 23:41: 59.490833 [warning] [DownloadEngineFactory.cc: 201] neither --RPC-secret nor combination --rpc-user and --RPC-passwd are installed. It’s unsafe. It is highly recommended that you specify --rpc-secret with sufficient secrecy or it is now obsolete --RPC-user and --RPC-passwd.

2019-04-08 23:41: 59.491942 [error] [HttpListenCommand.cc:112] IPv4 RPC: could not bind TCP port 6800
Exception: [SocketCore.cc:312] errorCode=1 socket initialization Error, cause: address is already in use

2019-04-08 23:41: 59.492248 [error] [HttpListenCommand.cc:112] IPv6 RPC: could not bind TCP port 6800
Exception: [SocketCore.cc:312] errorCode=1 socket initialization Error, cause: address is already in use

2019-04-08 23:41: 59.492392 [error] [MultiUrlRequestInfo.cc: 297] exception Detected
Exception: [DownloadEngineFactory.cc:219] errorCode=1 failed to configure the RPC server.

P.S. Please forgive my English

Seems like something is already running on port 6800 (needed by Aria2c), can you check what it is?

I’m facing the same kind of problem, I’m using nextcloud 16 with last version of ocDownloader, on debian 9.

I installed aria2 sudo apt install aria2 and I can download torrent in command line with no problem.

But in ocDownloader:

Returned GID is null ! Is Aria2c running as a daemon ?

I made this:

sudo -u www-data aria2c aria2c --enable-rpc --rpc-allow-origin-all -c -D --log=/var/log/aria2c/aria2c.log --check-certificate=false --save-session=/var/local/aria2c/aria2c.sess --save-session-interval=2 --continue=true --input-file=/var/local/aria2c/aria2c.sess --rpc-save-upload-metadata=true --force-save=true --log-level=warn

That’s it, the thing is I don’t see any daemon of aria2 on the system, and the port 6800 is not listening as peoples said, but aria2c work in standalone …
Also I don’t find any log files for aria2c … nothing in cat /var/log/aria2.log while I used it before

Is there a way to start the daemon listening ?

Anyone had any luck here with this GUID issue under Docker ?