AriaNG can't download any files! Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
stephane77
Posts: 7
Joined: Sun Nov 22, 2020 2:29 am

AriaNG can't download any files!

Post by stephane77 »

Hi,
I'm using latest version of dietpi through vmware workstation and the same setup with my raspberry pi 3b.

I installed ariang docker and no issues downloading files with ariang when it runs with vmware workstation!
I try the same configuration on my raspberry pi 3b and no issues installing ariang and accessing web interface but I can't download any files? It says Aria2 status connected and files that I try to download appears in the download list and eventually times out without downloading!

As an exemple, I try to download Winzip demo (https://download.winzip.com/gl/nkln/winzip25-all.exe). After a minute it says under Task Status : Error Occured (2) and we see : Operation Time Out but the same setup work when AriaNG is installed in the virtual machine!

I run only one aria2ng instance at a time. From SSH, I can access the network drive with folders in it (I see them in Webmin too).

mkdir -p /mnt/samba/aria2ng/downloads
mkdir -p /mnt/samba/aria2ng/config
mount -t cifs -o username="Htpc",password="" //192.168.1.109/Media/aria2ng/downloads /mnt/samba/aria2ng/downloads

docker pull hurlenko/aria2-ariang

docker run -d \
--name ariang \
-p 8080:8080 \
-v /mnt/samba/aria2ng/downloads:/aria2/data \
-v /mnt/samba/aria2ng/config:/aria2/conf \
-e PUID=0 \
-e PGID=0 \
-e ARIA2RPCPORT=80 \
-e RPC_SECRET=dietpi \
hurlenko/aria2-ariang

I don't know if it's write access issue to save the files on Samba share (but why that issue is not present in virtual machine with the same configuration?). I try to find out if it's ariang docker bug or issue with dietpi or docker or something else. I tried with PUID=1000 and PGID=1000 and it failed too!

I installed many other dockers and they all works like Droppy.

Regards,
Stephane
Attachments
Aria2log.txt
Log file or Aria2NG
(1.19 KiB) Downloaded 1 time
Task exemple where I try to download any files with failure message!
Task exemple where I try to download any files with failure message!
User avatar
Joulinar
Posts: 2572
Joined: Sat Nov 16, 2019 12:49 am

Re: AriaNG can't download any files!

Post by Joulinar »

Hi,

I did exactly the same like you on my RPi3B+ and downloading stuff is working without issues. There shouldn't be any issue with SAMBA as docker is executed as root user. As well you get an Operation Time Out. This seems more a network issue and you are not able to get the download started. But let's check. Can you have a look to AriaNg > Aria2 Settings > Basic Settings > Log File. Just create a log file /aria2/data/log.file. Now, try to download https://download.winzip.com/gl/nkln/winzip25-all.exe. Once failed, go to your SAMBA share, open the log.file and search for something starting winzip25.

On my installation I see following

Code: Select all

2020-11-22 21:03:37.701813 [DEBUG] [RequestGroupMan.cc:591] 1 RequestGroup(s) added.
2020-11-22 21:03:37.702070 [INFO] [AbstractHttpServerResponseCommand.cc:117] CUID#16 - HttpServer: all response transmitted.
2020-11-22 21:03:37.702128 [INFO] [HttpServerResponseCommand.cc:60] CUID#16 - Persist connection.
2020-11-22 21:03:37.702223 [DEBUG] [AbstractCommand.cc:181] CUID#17 - socket: read:0, write:0, hup:0, err:0
2020-11-22 21:03:37.702363 [DEBUG] [FeedbackURISelector.cc:167] Selected from fastCands
2020-11-22 21:03:37.702458 [DEBUG] [FeedbackURISelector.cc:84] FeedbackURISelector selected https://download.winzip.com/gl/nkln/winzip25-all.exe
2020-11-22 21:03:37.702590 [DEBUG] [AbstractCommand.cc:181] CUID#17 - socket: read:0, write:0, hup:0, err:0
2020-11-22 21:03:37.702673 [INFO] [AbstractCommand.cc:771] CUID#17 - DNS cache hit: download.winzip.com -> 92.123.228.38
2020-11-22 21:03:37.702738 [INFO] [HttpInitiateConnectionCommand.cc:123] CUID#17 - Connecting to 92.123.228.38:443
2020-11-22 21:03:37.703780 [DEBUG] [AbstractCommand.cc:181] CUID#17 - socket: read:0, write:0, hup:0, err:0
2020-11-22 21:03:37.727849 [DEBUG] [AbstractCommand.cc:181] CUID#17 - socket: read:0, write:1, hup:0, err:0
2020-11-22 21:03:37.728108 [DEBUG] [AbstractCommand.cc:181] CUID#17 - socket: read:0, write:1, hup:0, err:0
2020-11-22 21:03:37.728163 [DEBUG] [SocketCore.cc:926] Creating TLS session
2020-11-22 21:03:37.728246 [DEBUG] [Platform.cc:87] GnuTLS: <5> REC[0x1300d00]: Allocating epoch #0
2020-11-22 21:03:37.728550 [DEBUG] [Platform.cc:87] GnuTLS: <2> added 4 protocols, 29 ciphersuites, 18 sig algos and 10 groups into priority list
2020-11-22 21:03:37.728624 [DEBUG] [SocketCore.cc:946] TLS Handshaking
2020-11-22 21:03:37.728691 [DEBUG] [Platform.cc:87] GnuTLS: <5> REC[0x1300d00]: Allocating epoch #1
2020-11-22 21:03:37.728767 [DEBUG] [Platform.cc:87] GnuTLS: <4> HSK[0x1300d00]: Adv. version: 3.3
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
stephane77
Posts: 7
Joined: Sun Nov 22, 2020 2:29 am

Re: AriaNG can't download any files!

Post by stephane77 »

Hi,
Thanks for the quick reply! Here's a copy and paste of partial log file that might help find the issue!

2020-11-22 22:01:41.760328 [INFO] [AbstractHttpServerResponseCommand.cc:117] CUID#10 - HttpServer: all response transmitted.
2020-11-22 22:01:41.760385 [INFO] [HttpServerResponseCommand.cc:60] CUID#10 - Persist connection.
2020-11-22 22:01:41.760582 [INFO] [AbstractHttpServerResponseCommand.cc:117] CUID#24 - HttpServer: all response transmitted.
2020-11-22 22:01:41.760638 [INFO] [HttpServerResponseCommand.cc:60] CUID#24 - Persist connection.
2020-11-22 22:01:42.762119 [DEBUG] [AbstractCommand.cc:181] CUID#31 - socket: read:0, write:0, hup:0, err:0
2020-11-22 22:01:42.762249 [DEBUG] [ServerStat.cc:160] ServerStat: set status ERROR for download.winzip.com (https)
2020-11-22 22:01:42.762310 [DEBUG] [AbstractCommand.cc:334] CUID#31 - All IP addresses were marked bad. Removing Entry.
2020-11-22 22:01:42.762501 [INFO] [AbstractCommand.cc:366] CUID#31 - Restarting the download. URI=https://download.winzip.com/gl/nkln/winzip25-all.exe
Exception: [AbstractCommand.cc:368] errorCode=2 URI=https://download.winzip.com/gl/nkln/winzip25-all.exe
-> [AbstractCommand.cc:340] errorCode=2 Timeout.

If it helps, I have docker installed through dietpi installer. I reinstalled it with command line and reboot (router and rpi). I also have Pi-Hole 5 latest version installed (I upgraded since it was final version but never uninstall and reinstall it). I can save files from one windows 10 pc to the other windows 10 pc (samba share) from the internet and from one pc to the other one. 100% of apps installed come from dietpi installer or from docker. Also Rpi is Ethernet, wifi is disabled. Rpi connectivity test confirms that internet works and also all my devices works to surf on the internet.

Regards,
Stephane
User avatar
Joulinar
Posts: 2572
Joined: Sat Nov 16, 2019 12:49 am

Re: AriaNG can't download any files!

Post by Joulinar »

Hi,

not sure why but your container has some issues. Maybe some issues with interface setup.

Code: Select all

2020-11-22 22:01:42.762249 [DEBUG] [ServerStat.cc:160] ServerStat: set status ERROR for download.winzip.com (https)
2020-11-22 22:01:42.762310 [DEBUG] [AbstractCommand.cc:334] CUID#31 - All IP addresses were marked bad. Removing Entry.
you could try to ping something from inside the container

Code: Select all

docker exec -it ariang ping download.winzip.com
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
stephane77
Posts: 7
Joined: Sun Nov 22, 2020 2:29 am

Re: AriaNG can't download any files!

Post by stephane77 »

I'll try it and in the mean time, some more info about my setup!

*** Appz installed with docker ***
- droppy with ports 8989:8989
- daapd with port 3689
- heimdall with ports 5331:80 and 443:443
- portainer with ports 9000:9000
- ariang with port 8080:8080

*** Appz through dietpi installer ***
- Pi-hole v5.1.2
- Webmin
- Samba

Do you believe Pi-Hole, the network interfaces in Webmin and or Portainer could cause or indicate a problem?
If there is anything I can try before formatting and reinstalling dietpi from scratch it would be nice!
Attachments
Portainer also see multiples network interfaces!
Portainer also see multiples network interfaces!
I don't know why I have that many interfaces?
I don't know why I have that many interfaces?
User avatar
Joulinar
Posts: 2572
Joined: Sat Nov 16, 2019 12:49 am

Re: AriaNG can't download any files!

Post by Joulinar »

as said, you could try to ping something from inside the container

Code: Select all

docker exec -it ariang ping download.winzip.com
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
stephane77
Posts: 7
Joined: Sun Nov 22, 2020 2:29 am

Re: AriaNG can't download any files!

Post by stephane77 »

If I ping google.com IP (172.217.13.206) it works!

root@RaspberryPi:~# docker exec -it ariang ping 172.217.13.206
PING 172.217.13.206 (172.217.13.206): 56 data bytes
64 bytes from 172.217.13.206: seq=0 ttl=114 time=27.156 ms
64 bytes from 172.217.13.206: seq=1 ttl=114 time=26.733 ms
64 bytes from 172.217.13.206: seq=2 ttl=114 time=36.558 ms
64 bytes from 172.217.13.206: seq=3 ttl=114 time=26.074 ms
64 bytes from 172.217.13.206: seq=4 ttl=114 time=25.608 ms
^C
--- 172.217.13.206 ping statistics ---
13 packets transmitted, 13 packets received, 0% packet loss
round-trip min/avg/max = 17.109/25.057/36.558 ms

If I ping google.com domain it fails! What can I do?

root@RaspberryPi:~# docker exec -it ariang ping google.com
ping: bad address 'google.com'
User avatar
Joulinar
Posts: 2572
Joined: Sat Nov 16, 2019 12:49 am

Re: AriaNG can't download any files!

Post by Joulinar »

seems to be an issue with DNS. Let's check configured DNS server

Code: Select all

docker exec -it ariang cat /etc/resolv.conf
and try to resolve a host name

Code: Select all

docker exec -it ariang nslookup google.com
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
stephane77
Posts: 7
Joined: Sun Nov 22, 2020 2:29 am

Re: AriaNG can't download any files!

Post by stephane77 »

Hi,

*** At the docker level ***

root@RaspberryPi:~# docker exec -it ariang cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.1.108

root@RaspberryPi:~# docker exec -it ariang nslookup google.com
;; connection timed out; no servers could be reached


*** By opening SSH session in RPI ***
root@RaspberryPi:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.1.108
root@RaspberryPi:~# nslookup google.com
Server: 192.168.1.108
Address: 192.168.1.108#53

Non-authoritative answer:
Name: google.com
Address: 172.217.13.142
Name: google.com
Address: 2607:f8b0:4020:807::200e


It's strange that it works everywhere else (including my 2 Windows 10 PC and virtual machines)!
My router is : TP-Link TD-W8980 (N600 Wireless Dual Band Gigabit ADSL2+ Modem Router)

I have 3 pages of settings that I modified since Pi-Hole was installed last year. I may have put incorrect settings after reading the documention on Pi-Hole web site.

As Pi-Hole settings, I choose Google DNS but I believe ads were not blocked so I also choose options in my router : Set DNS server manually and put Google DNS here. Should I remove that (Picture 1)?

Also, according to my understanding of Pi-Hole, I understood that I choose change DNS server to the IP address of my Raspberry Pi (192.168.1.108). Should I remove that (Picture 2)?

I also put DNS server of my Pi-Hole (Picture 3). Should I remove that?

I have multiple computers and devices. I have no issues surfing, downloading, pinging including including virtual machines but I might have wrong settings there and could be losing perfomance... I suspect either the settings on my router that you see that are incorrect and/or something with Pi-Hole!

Regards,
Stephane
Attachments
Router settings
Router settings
Router settings
Router settings
Router settings
Router settings
User avatar
Joulinar
Posts: 2572
Joined: Sat Nov 16, 2019 12:49 am

Re: AriaNG can't download any files!

Post by Joulinar »

slowly I get what happen. Is PiHole running on same system running as Docker? If yes, can you check if Pihole is set to Listen on all interfaces?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply