You are not logged in.
Pages: 1
Hello, I'm trying to get pacman 3.0.3-2 working with aria2, using the instructions from the Arch wiki. It doesn't work. When I use the aria XferCommand, I get the following output
[root@myhost etc]# pacman -Sy
:: Synchronizing package databases...
error: failed to synchronize testing:
0/0 Bytes 0% - 0.00 KB/s 2 connections
The download was not complete because of errors. Check the log.
aria2 will resume download if the transfer is restarted.error: could not open /var/lib/pacman/current.db.tar.gz: Failed to open '/var/lib/pacman/current.db.tar.gz': No such file or directory
error: failed to update current (unexpected system error)
0/0 Bytes 0% - 0.00 KB/s 2 connections
The download was not complete because of errors. Check the log.
aria2 will resume download if the transfer is restarted.error: could not open /var/lib/pacman/extra.db.tar.gz: Failed to open '/var/lib/pacman/extra.db.tar.gz': No such file or directory
error: failed to update extra (unexpected system error)
0/0 Bytes 0% - 0.00 KB/s 2 connections
The download was not complete because of errors. Check the log.
aria2 will resume download if the transfer is restarted.error: could not open /var/lib/pacman/community.db.tar.gz: Failed to open '/var/lib/pacman/community.db.tar.gz': No such file or directory
error: failed to update community (unexpected system error)
error: failed to synchronize any databases
[root@myhost etc]#
When I comment out the XferCommand in /etc/pacman.conf, I get the following output (nothing else has been changed)
[root@myhost etc]# pacman -Sy
:: Synchronizing package databases...
testing 2.0K 158.2K/s 00:00:00 [#####################] 100%
current is up to date
extra 284.2K 125.8K/s 00:00:02 [#####################] 100%
community 174.0K 123.9K/s 00:00:01 [#####################] 100%
local database is up to date
[root@myhost etc]# pacman -V
.--. Pacman v3.0.3 - libalpm v1.0.0
/ _.-' .-. .-. .-. Copyright (C) 2002-2007 Judd Vinet <jvinet@zeroflux.org>
\ '-. '-' '-' '-'
'--'
This program may be freely redistributed under
the terms of the GNU General Public License
[root@myhost etc]# pacman -Q pacman
pacman 3.0.3-2
[root@myhost etc]#
This is on my testing system.
/var/log/pacman.log only has
[2007-05-08 18:26] synchronizing package lists
[2007-05-08 18:28] synchronizing package lis
Offline
Obviously the problem is due to aria2 not downloading any files.
When aria2 just stays on 0/0 Bytes it often means that the server you connect to is live but you can't get the file. Since most mirrors are ftp server, I assume that you use aria2 in non-passive mode. Try adding the -p option to the aria2c command.
non-passive mode just plain doesn't work in most cases if you are behind a NAT or whatever.
If all that didn't help, try to make a script which outputs the input and output files and the current working directory. Then replace the aria2c XferCommand with that script to investigate the problem more.
I suppose you use
XferCommand = /usr/bin/aria2c -s 2 -m 2 -o %o %u
So the script will look something like that:
#!/bin/bash
pwd
echo $1
echo $2
#out of consideration I never use more than 1 connection per server (please try and add more mirrors instead)
/usr/bin/aria2c -s 1 -m 10 -p -o $1 $2
exit $?
If you save the script as xfercommand in /usr/bin/
then your XferCommand will look like that:
XferCommand = /usr/bin/xfercommand %o %u
Hope that helps (but I'm pretty confident that you have a problem with non-passive mode).
Offline
Pages: 1