Returned GID is null ! Is Aria2c running as a daemon ? on nc 19.0
xspeed1989 opened this issue · 12 comments
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
It's work fine when aria2c run without --rpc-secret=xxxxxxxx
I have the same problem
I have the same problem
@luxi78
It's work fine when aria2c run without --rpc-secret=xxxxxxxx
@e-alfred the new release has the same issue
Do you see any error messages in the Aria2c log?
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
i modify your source code and put my password in source file instead read from setting,it woks fine
@e-alfred
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
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
I have the same issue, moreover there is no option in the admin menu to set RPC password. Am I missing something?
Don't use SQLite as the DB engine.
Thanks for your response. I have two questions though:
- On what basis do you infer I'm using SQLite as database for NC? Actually I don't.
- What does this have to do with the OCDownloader or aria2? The link you posted doesn't mention SQLite at all.