Bug 16882

Summary: Unable to download packages using aria2 (fails with exit 1)
Product: Mageia Reporter: andré blais <andr999>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: doktor5000, lists.jjorge, marja11
Version: 5Keywords: NEEDINFO
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: aria2-1.18.7-2.mga5.src.rpm CVE:
Status comment:

Description andré blais 2015-10-03 15:28:39 CEST
Attempting to download/install packages with drakrpm, urpmi, or mgaupdate fails when aria2 is the selected download agent (i.e., another download is not selected explicitly or in urpmi.cfg)

The error message is
----
1 transactions d'installation ont échoué
Une erreur est survenue pendant l'installation des paquetages :
... échec de la récupération : aria2 a échoué : sortie avec 1
... échec de la récupération : aria2 a échoué : sortie avec 1
----
for each package attempted to download.  (Blank lines removed)

This happens every time.

Downloading via browser from the same mirror (as indicated by urpmi) works normally.
Specifying curl instead of aria2 also works normally.
Specifying wget instead of aria2 gives similar error messages to aria2.
(another bug will be filed for wget)

Running urpmi or drakrpm from console gives some gtk3 error messages, which could be related.
Comment 1 andré blais 2015-10-03 15:40:55 CEST
The similar wget bug is reported in mga bug 16883
Comment 2 Rémi Verschelde 2015-10-03 16:12:33 CEST
I can't reproduce it on x86_64 with:
# urpmi --test null --downloader aria2
Comment 3 Samuel Verschelde 2015-10-04 21:22:56 CEST
aria2 uses a list of mirrors, so it probably chose one that is not reachable or not up to date.
Comment 4 andré blais 2015-10-05 05:54:31 CEST
(In reply to Samuel VERSCHELDE from comment #3)
> aria2 uses a list of mirrors, so it probably chose one that is not reachable
> or not up to date.

No, it chose my usual mirror, both before and after my manual download of affected packages.  (I tested after downloading but before installing packages.)
It is both the closest and fastest mirror according to the mirror list file, which seems to be updated every time I update.
But maybe it affects only i586 ?
Florian Hubold 2015-10-10 19:36:14 CEST

CC: (none) => doktor5000

Comment 5 José Jorge 2015-10-11 09:28:09 CEST
And if you try to download manually with aria2 or wget?

CC: (none) => lists.jjorge

Comment 6 andré blais 2015-10-12 07:09:38 CEST
Manual download with aria2 works, but strange error message in console.
(Manual download with wget also works, but no error message, see mga bug16883.)
Console output :

[andr@localhost ~]$ aria2c ftp://mageia.webconquest.com/distrib/5/i586/media/core/updates/libpolkit1_0-0.113-1.1.mga5.i586.rpm

10/12 00:52:59 [WARN] Unknown option: enable-direct-io=true

10/12 00:53:00 [NOTICE] Téléchargement terminé: /home/andr/libpolkit1_0-0.113-1.1.mga5.i586.rpm

Résultats du téléchargement:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
726ccb|OK  |   162KiB/s|/home/andr/libpolkit1_0-0.113-1.1.mga5.i586.rpm

Légende du statut:
(OK): téléchargement terminé.
[andr@localhost ~]$
Comment 7 Marja Van Waes 2016-12-17 17:51:27 CET
There was no action in this bug report since over a year ago, I assume the issue was solved?

Keywords: (none) => NEEDINFO
CC: (none) => marja11

Comment 8 Marja Van Waes 2017-01-07 10:41:24 CET
No reply, so closing as OLD.

Please reopen if needed.

Status: NEW => RESOLVED
Resolution: (none) => OLD