Package: aria2
Version: 1.37.0+debian-4+b1
Severity: important
File: /usr/bin/aria2c
Tags: ipv6
X-Debbugs-Cc: [email protected]


$ host download.microsoft.com
download.microsoft.com is an alias for dlc-ds-shim.trafficmanager.net.
dlc-ds-shim.trafficmanager.net is an alias for main.dl.ms.akadns.net.
main.dl.ms.akadns.net is an alias for download.microsoft.com.edgekey.net.
download.microsoft.com.edgekey.net is an alias for e12671.dscd.akamaiedge.net.
e12671.dscd.akamaiedge.net has address 184.25.54.62
e12671.dscd.akamaiedge.net has IPv6 address 2a02:26f0:8d00:686::317f
e12671.dscd.akamaiedge.net has IPv6 address 2a02:26f0:8d00:691::317f
$

$ aria2c 
https://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe

07/29 23:17:10 [NOTICE] Downloading 1 item(s)

07/29 23:17:10 [ERROR] CUID#7 - Download aborted. 
URI=https://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe
Exception: [AbstractCommand.cc:351] errorCode=1 
URI=https://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe
  -> [SocketCore.cc:507] errorCode=1 Failed to connect to the host 
184.25.54.62, cause: Network is unreachable

07/29 23:17:10 [NOTICE] Download GID#c684e8a1bba4e27c not complete:

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
c684e8|ERR |       
0B/s|https://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe

Status Legend:
(ERR):error occurred.


In fact if I run this commands few times, it sometimes succeeds because
aria somehow selects a random address and that happens to be sometimes
IPv6.

It looks like Aria resolver is not too doing a greate job, of sorting
addresses by family better. Nor trying other IPs on failure.

This causes some other issues. I.e. winetricks package by default uses
aria2c as a downloader, if it is installed on a system (it is a
downloader with highest priority), and this causes winetricks downloads
to fail in general (workaround is to uninstall aria, patch winetricks,
or pass WINETRICKS_DOWNLOADER=wget for example).


Regards,
Witold



-- System Information:
Debian Release: forky/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.1.0-rc5 (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages aria2 depends on:
ii  libaria2-0  1.37.0+debian-4+b1
ii  libc6       2.42-16
ii  libgcc-s1   16.1.0-1
ii  libstdc++6  16.1.0-1

Versions of packages aria2 recommends:
ii  ca-certificates  20260223

aria2 suggests no packages.

-- no debconf information

Reply via email to