e-alfred / ocdownloader

ocDownloader - AGPL-licensed multi-protocol download manager for Nextcloud using ARIA2, youtube-dl and Curl (supports Youtube, BitTorrent, HTTP, FTP)
https://github.com/e-alfred/ocdownloader
GNU Affero General Public License v3.0
375 stars 85 forks source link

Returned GID is null ! Is Aria2c running as a daemon ? on nc 19.0 #171

Open xspeed1989 opened 4 years ago

xspeed1989 commented 4 years ago
root@3d62cf0560fe:/var/log/aria2c# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   2376   652 ?        Ss   20:31   0:00 /bin/sh /wrapper_script.sh
www-data    15  0.4  0.1  61196  6328 ?        Ss   20:31   0:02 aria2c --enable-rpc=true --rpc-allow-origin-all=true --rpc-listen-all=true --rpc-listen-port=6800 --rpc-secret=********* --dir=/home/www-data/data/downloads --enable-dht=true --dht-listen-port=6881 --listen-port=6881 -D
xspeed1989 commented 4 years ago

It's work fine when aria2c run without --rpc-secret=xxxxxxxx

luxi78 commented 4 years ago

I have the same problem

xspeed1989 commented 4 years ago

I have the same problem

@luxi78 It's work fine when aria2c run without --rpc-secret=xxxxxxxx

xspeed1989 commented 4 years ago

@e-alfred the new release has the same issue

e-alfred commented 4 years ago

Do you see any error messages in the Aria2c log?

xspeed1989 commented 4 years ago

Do you see any error messages in the Aria2c log?

sudo -u www-data aria2c --enable-rpc=true --rpc-secret=xxxx --rpc-allow-origin-all=true --rpc-listen-all=true --rpc-listen-port=6800 --enable-dht=true --dht-listen-port=6881 --listen-port=6881 -D @e-alfred /var/log/aria2c/aria2c.log is empty

xspeed1989 commented 4 years ago

i modify your source code and put my password in source file instead read from setting,it woks fine @e-alfred

TheDarkTron commented 4 years ago

It's work fine when aria2c run without --rpc-secret=xxxxxxxx

This actually worked for me. Make sure to kill the old aria2c deamon before restarting aria2.

I am starting aria2 with this systemd service:

In /etc/systemd/system/aria2.service:

[Unit]
Description=aria2 daemon
After=network.target

[Service]
User=www-data
Type=oneshot
ExecStart=/usr/bin/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
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Start with: sudo systemctl start aria2.service Enable to run on boot: sudo systemctl enable aria2.service src.: https://archlinuxarm.org/forum/viewtopic.php?f=53&t=4728

xspeed1989 commented 3 years ago

It's work fine when aria2c run without --rpc-secret=xxxxxxxx

This actually worked for me. Make sure to kill the old aria2c deamon before restarting aria2.

I am starting aria2 with this systemd service:

In /etc/systemd/system/aria2.service:

[Unit]
Description=aria2 daemon
After=network.target

[Service]
User=www-data
Type=oneshot
ExecStart=/usr/bin/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
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Start with: sudo systemctl start aria2.service Enable to run on boot: sudo systemctl enable aria2.service src.: https://archlinuxarm.org/forum/viewtopic.php?f=53&t=4728

Finally, this bug does not exist if you use a DB engine what is not SQLite

gruentee commented 3 years ago

I have the same issue, moreover there is no option in the admin menu to set RPC password. Am I missing something?

2020-11-01_14-56

xspeed1989 commented 3 years ago

I have the same issue, moreover there is no option in the admin menu to set RPC password. Am I missing something?

2020-11-01_14-56

Don't use SQLite as the DB engine.

gruentee commented 3 years ago

I have the same issue, moreover there is no option in the admin menu to set RPC password. Am I missing something? 2020-11-01_14-56

Don't use SQLite as the DB engine.

Thanks for your response. I have two questions though:

  1. On what basis do you infer I'm using SQLite as database for NC? Actually I don't.
  2. What does this have to do with the OCDownloader or aria2? The link you posted doesn't mention SQLite at all.