You are not logged in.

#1 2010-01-14 12:59:43

cunik
Member
Registered: 2008-01-20
Posts: 6

pacman and timeout trouble

Hi,
sitting at cafe I found pretty annoying trying to upgrade my system:
- enabled traffic: 80, 443
my mirror list looks like that:

#Mirror used during installation  /
Server = ftp://ftp.sh.cvut.cz/MIRRORS/arch/$repo/os/x86_64

# Selected mirrors - I havent noticed two same mirrors, thats why Im getting two time outs (btw its quite funny smile and NOT my fault.. ok, its my fault...:)
Server = ftp://ftp.sh.cvut.cz/MIRRORS/arch/$repo/os/x86_64
Server = http://ftp.sh.cvut.cz/MIRRORS/arch/$repo/os/x86_64

What's going on?

# pacman -Syu
:: Synchronizing package databases...
error: failed retrieving file 'core.db.tar.gz' from ftp.sh.cvut.cz : Network is unreachable
error: failed retrieving file 'core.db.tar.gz' from ftp.sh.cvut.cz : Connection timed out
core                      35.8K  234.3K/s 00:00:00 [#####################] 100%
error: failed retrieving file 'extra.db.tar.gz' from ftp.sh.cvut.cz : Connection timed out
error: failed retrieving file 'extra.db.tar.gz' from ftp.sh.cvut.cz : Connection timed out
extra                    441.3K  445.8K/s 00:00:01 [#####################] 100%
error: failed retrieving file 'community.db.tar.gz' from ftp.sh.cvut.cz : Connection timed out
error: failed retrieving file 'community.db.tar.gz' from ftp.sh.cvut.cz : Connection timed out
community                374.0K  445.1K/s 00:00:01 [#####################] 100%

(skipped)

Proceed with installation? [Y/n] y
:: Retrieving packages from core...
error: failed retrieving file 'dhcpcd-5.1.4-1-x86_64.pkg.tar.gz' from ftp.sh.cvut.cz : Connection timed out
error: failed retrieving file 'dhcpcd-5.1.4-1-x86_64.pkg.tar.gz' from ftp.sh.cvut.cz : Connection timed out
dhcpcd-5.1.4-1-x86_64     61.2K  280.1K/s 00:00:00 [#####################] 100%
error: failed retrieving file 'zlib-1.2.3.4-3-x86_64.pkg.tar.gz' from ftp.sh.cvut.cz : Connection timed out
...


Time out occurs every database synchronization and every package retrieving... Isnt it annoying?
I know that all I have to do is to get http mirror at the first place in my list (at least thats what I did), but if that mirror was down (and no communication dropped) -> getting two timeouts (http -> ftp -> other mirror) until pacman finally gets to the hopefully working mirror FOR EVERY upgrading package (26 in this case smile.

What the point: Is there a reason why pacman goes again and again from begin through the list of mirrors and why it doesnt stick with the working on (in case of timeout or "server is down")?

Offline

#2 2010-01-14 13:11:30

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: pacman and timeout trouble

Perhaps file a bug report asking if this could be improved.  But how to distinguish between a mirror being down and a package being missing?

Offline

#3 2010-01-14 22:24:03

Richer
Member
Registered: 2008-02-26
Posts: 19

Re: pacman and timeout trouble

Same problem here, i try with 3 or 4 different repos and nothing, time out

Offline

Board footer

Powered by FluxBB