ocdownloader icon indicating copy to clipboard operation
ocdownloader copied to clipboard

ocDownloader not work.

Open p6002 opened this issue 4 years ago • 8 comments

I'm trying to install the ocDownloader app from the store using this tutorial and I have couple questions (tutorial is not complete). https://github.com/e-alfred/ocdownloader

  1. What it is and where I can find RPC secret code. Google says nothing about that.
  2. Why doesn't the app do this automatically?
  3. How to fix it without damaging the entire cloud drive.

p6002 avatar Nov 18 '20 18:11 p6002

  1. You define it when starting aria2c. Actually, it nicely covered in tutorial:

Here is start command from tutorial: sudo -u www-data 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 --rpc-secret=yoursecret

Pay attention for last part where --rpc-secret=yoursecret goes. This is you secret code.

  1. Because you should start aria2c yourself.
  2. Just run command above, replacing everything by need.

Mirokko avatar Dec 13 '20 09:12 Mirokko

Hi, i am having a similar problem: i am using ocdownloader since long time, but just realized, that i cannot use it anymore for torrents! this is the error message:

Null-GID zurückerhalten! Läuft Aria2c als Daemon?

i was starting aria2c as cronjob like that:

@reboot sudo -u www-data 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 --rpc-listen-all=false

it seems to have changed now for some reason acording to the manual here to that:

sudo -u www-data 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 --rpc-secret=***

but even when i start it like that, i have no clue where i would put the password in - there is no such option available? Or am i blind?

if you have any idea whats wrong here, any help would be really nice!

Thank you so much!

EDIT: oh and i am using the newest version 1.7.10 from github https://github.com/e-alfred/ocdownloader/commit/8559a7f5fc4ad59a750374223d78ff51b9f436e2

EDIT2: here are all the available settings i can see... Bildschirmfoto 2021-01-08 um 11 25 47 Bildschirmfoto 2021-01-08 um 11 25 53

pcace avatar Jan 08 '21 10:01 pcace

I have the same problem as @pcace

EdwardEisenhauer avatar Jan 22 '21 17:01 EdwardEisenhauer

In the whole repository of the last release, I could not find any string with 'RPC' in it besides those in README.md and aria2.php, which I interpret as lack of an option to give the ocDownloader our RPC passphrase.

EdwardEisenhauer avatar Jan 22 '21 18:01 EdwardEisenhauer

RPC Secret is indeed not supported

MadMakz avatar Jan 24 '21 21:01 MadMakz

RPC Secret is indeed not supported

So what is the proper way to use it in NextCloud?

EdwardEisenhauer avatar Feb 04 '21 14:02 EdwardEisenhauer

Hi, i am having a similar problem: i am using ocdownloader since long time, but just realized, that i cannot use it anymore for torrents! this is the error message:

Null-GID zurückerhalten! Läuft Aria2c als Daemon?

i was starting aria2c as cronjob like that:

@reboot sudo -u www-data 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 --rpc-listen-all=false

it seems to have changed now for some reason acording to the manual here to that:

sudo -u www-data 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 --rpc-secret=***

but even when i start it like that, i have no clue where i would put the password in - there is no such option available? Or am i blind?

if you have any idea whats wrong here, any help would be really nice!

Thank you so much!

EDIT: oh and i am using the newest version 1.7.10 from github 8559a7f

EDIT2: here are all the available settings i can see... Bildschirmfoto 2021-01-08 um 11 25 47 Bildschirmfoto 2021-01-08 um 11 25 53

I had the same issue, it a bug on the admin web interface.

A workaround is to change to curl and change it back to aria2c, the aria2c config fields will appear.

xkill avatar Feb 11 '21 14:02 xkill

It should be there somewhere

https://github.com/e-alfred/ocdownloader/blob/6024eaf75bd52a0c89b6bffb27634d5c24e40af4/templates/settings/admin.php#L85

Mirokko avatar Feb 26 '21 10:02 Mirokko