You are not logged in.
reading this post
https://bbs.archlinux.org/viewtopic.php?id=78385
led me to put:
XferCommand = /usr/bin/wget --limit-rate 100K --passive-ftp -c -O %o %u
in my pacman.conf
but now I get issues such as this:
https://bbs.archlinux.org/viewtopic.php?pid=1042148
or more specifically on my system:
--2013-01-06 10:16:05-- http://ftp.osuosl.org/pub/archlinux/extra/os/i686/extra.db.sig
Resolving ftp.osuosl.org (ftp.osuosl.org)... 64.50.233.100
Connecting to ftp.osuosl.org (ftp.osuosl.org)|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-01-06 10:16:05 ERROR 404: Not Found.
but I imagine it is all related to this 'internal downloader' which is spoken of. Is there actually an internal downloader these days? My guess is it's just another wget command done differently, rather than digging through the source I was wondering if anyone here knew offhand how the new wget command is structured, and maybe more importantly why the above one fails on the db.sigs.
last thoughts, maybe this belongs in the bug tracker as I tried both of the XferCommands in the default pacman.conf that are commented out:
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
and neither of them work either. The error output of curl was decidedly more useless:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
Offline
update pacman (pacman -Syy)
Offline
pacman -Syy only works if I comment out all XferCommands otherwise it fails just like the others:
--2013-01-06 10:52:52-- http://ftp.osuosl.org/pub/archlinux/community/os/i686/community.db.sig
Resolving ftp.osuosl.org (ftp.osuosl.org)... 64.50.233.100
Connecting to ftp.osuosl.org (ftp.osuosl.org)|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-01-06 10:52:52 ERROR 404: Not Found.
Offline
Yeah, mine actually won't download the sigs either... maybe this is flyspray worthy...
Offline
https://bugs.archlinux.org/task/33309
^me thinks you're right, I forgot to adjust category though and can't change it now, boo. Oh well, I haven't been yelled at by the beards in awhile anyhow
Offline
Hey, I learned something from that bug report. Even though there is apparently nothing wrong... thanks thoth.
I too am curious why you would need to limit the download rates? It is not as though these downloads last for a terribly long time. Maybe you are looking for something like QoS?
Offline
just my downloading the newest KDE updates was keeping others in my home from enjoying 'full high quality proprietary streaming media downloads' and I thought I'd just squeeze pacman down a bit by modifying the XferCommand. It does appear from the info falconindy gave that the errors are harmless though, so I'm going to continue to try modding that XferCommand during times when I want one of many arch machines to be a bit more polite.
Offline
After you figure that out, why not make an alternative config file to be used in these cases. Then simply use
# pacman --config /etc/pacman.d/pacman-alt.conf
Offline
If politeness is the main requirement, you could put 'pacman -Syuw --noconfirm' in a middle-of-the-night cron job, and then run 'pacman -Su' to your heart's content during the day.
Not quite on-topic, but as you have many Arch machines, you should also consider sharing the package cache to avoid unnecessary duplicate downloads.
Offline
or combine both:
pacman --config /etc/pacman.d/pacman-alt.conf -Syuw --noconfirm
and use pacserve the rest of the time on other machines:
pacsrv -Syu
as posted above the XferCommand is still what I'm using despite the very ominous warning from falconindy:
XferCommand = /usr/bin/wget --limit-rate 100K --passive-ftp -c -O %o %u
but only in my alternate conf and only for download. bah wish there was a simple:
sudo apt-get -o Acquire::http::Dl-Limit=30 upgrade
Offline