aria2 not working Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
marik
Posts: 18
Joined: Thu Jun 27, 2019 12:56 pm

aria2 not working

Post by marik »

hi
I installed aria2 and in the web interface after entering my global pwd in the rpc secret token (and leaving the rpc user & pwd empty) - i get:

Oh Snap! Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings

I read an old post here about this, but its for stretch and we are on buster now.

I did tried the suggested steps:

Code: Select all

root@DietPi:~# cat /etc/systemd/system/aria2.service
[Unit]
Description=Aria2 (DietPi)

[Service]
User=aria2
UMask=002
ExecStart=/usr/bin/aria2c --conf-path=/mnt/dietpi_userdata/aria2/aria2.conf

[Install]
WantedBy=multi-user.target


root@DietPi:~# grep Global_Password /DietPi/dietpi.txt
grep: /DietPi/dietpi.txt: No such file or directory
from android app - also error.

what can I do now?
User avatar
Joulinar
Posts: 6000
Joined: Sat Nov 16, 2019 12:49 am

Re: aria2 not working

Post by Joulinar »

Hi,

I recomment to revert all changes you have done and have a look to this forum post viewtopic.php?p=31247#p31247 as well as our online docs https://dietpi.com/docs/software/bittorrent/#aria2

btw /DietPi/ did not exist anymore. All DietPi scripts have been moved to /boot/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
marik
Posts: 18
Joined: Thu Jun 27, 2019 12:56 pm

Re: aria2 not working

Post by marik »

I havent made any changes.
since i just installed dietpi and its the first try to run it.

the pwd in /mnt/dietpi_userdata/aria2/aria2.conf is the same exact what im typing inside the web interface.

also after i refresh the page - the pwd is not stored there.

and grep Global_Password /boot/dietpi.txt gives nothing in return.
User avatar
Joulinar
Posts: 6000
Joined: Sat Nov 16, 2019 12:49 am

Re: aria2 not working

Post by Joulinar »

After first boot password has been removed from /boot/dietpi.txt and it doesn't matter. You would need to use the password from aria2 configuration file. Did you pushed the save button on the bottom of the configuration page? I did a test an all working fine for me.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
marik
Posts: 18
Joined: Thu Jun 27, 2019 12:56 pm

Re: aria2 not working

Post by marik »

offcourse i did.

and i checked the pwd in the file and it is the same what i type in the field.
User avatar
Joulinar
Posts: 6000
Joined: Sat Nov 16, 2019 12:49 am

Re: aria2 not working

Post by Joulinar »

Do you use any special characters in the password?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
marik
Posts: 18
Joined: Thu Jun 27, 2019 12:56 pm

Re: aria2 not working

Post by marik »

no. only numbers (6 nums)
User avatar
Joulinar
Posts: 6000
Joined: Sat Nov 16, 2019 12:49 am

Re: aria2 not working

Post by Joulinar »

Hi,

maybe RPC server is not running. Let's check it

Code: Select all

ss -tulpn | grep LISTEN
journalctl -u aria2.service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
marik
Posts: 18
Joined: Thu Jun 27, 2019 12:56 pm

Re: aria2 not working

Post by marik »

sorry for the delay in reply.

i just re-installed aria and its working great now.

thanks for the help.
Post Reply