Talk:Mirrors

From ArchWiki
Latest comment: 21 February 2021 by Lahwaacz in topic FTP mirrors

rsync errors in tier2 mirrors

It is possible for arch mirrors to be in an inconsistent state if rsync fails at some point. This is due to mirrors not generating their own package databases but rather copying the one from lower tier mirrors. In these cases, trying to grab a package from these mirrors may result in a 404 error due to incomplete syncing. The method described in Tier 2 requirements does not adequately protect this case.

The following code will re-run rsync if it ever fails to ensure mirrors are properly synced.

RET=1
COUNTER=100
until [[ RET -eq 0 && COUNTER -gt 0 ]]; do
 rsync -rtlH --safe-links --delete-after --progress -h --timeout=600 --contimeout=60 -p \
             --delay-updates --no-motd --bwlimit=4096 \
             --temp-dir="/tmp" \
             --exclude='*.links.tar.gz*' \
             --exclude='/other' \
             --exclude='/sources' \
             --exclude='/iso' \
       'rsync://mirror.pkgbuild.com/packages/' \
       "/srv/repo" &&
       RET=0
       COUNTER=$[COUNTER-1]
done;

—This unsigned comment is by Bluerider (talk) 21:55, 26 March 2015 (UTC). Please sign your posts with ~~~~!Reply[reply]

List by speed procedure

Looking at the procedure for Mirrors#List_by_speed it seems a bit odd to me that it suggests editing the backup that was taken of the local mirror list. I would think the instructions should either suggest creating a second working copy to delete once completed or, since a backup has already been taken, just modify the mirrorlist in place rather than modifying the backup.

Thoughts?

Ocelotsloth (talk) 03:04, 24 April 2019 (UTC)Reply[reply]

Sorting mirrors - Methods order

It seems to me that using reflector is easier and more powerful than using rankmirrors. What about putting it first for newcomers ?

Also, I was thinking about putting the part where you make a backup of mirrors at the beginning of this section.

Any objection ?

-- Apollo22 (talk) 11:26, 22 June 2019 (UTC)Reply[reply]

Server-side ranking does not consider the user's location and the link speed between the user's computer and the servers, so rankmirrors is actually more powerful and the separate "server-side ranking" section makes sense. -- Lahwaacz (talk) 20:14, 22 June 2019 (UTC)Reply[reply]
I agree but reflector has the ability to use both server side ranking and client side ranking. I planned to refactor it this way (none of the current content would be deleted):
 - (Section) Sorting mirros
   - Make a backup
 - Use reflector
 - Client side ranking
 - Server side ranking

-- Apollo22 (talk) 07:22, 23 June 2019 (UTC)Reply[reply]

reflector regularly breaks where rankmirror does not (see the forum thread: [1]). The working/more reliable tool should be documented first, regardless of "user friendlyness". -- Alad (talk) 08:16, 23 June 2019 (UTC)Reply[reply]
I fully agree with your point about stability vs freadlyness. However, I am less convinced by the **regularly breaks** point about reflector. So for now I'll keep rankmirror first, but I'll still try to make reflector more visible. -- Apollo22 (talk) 08:40, 23 June 2019 (UTC)Reply[reply]

FTP mirrors

The article remarks "HTTP mirrors are faster than FTP due to persistent HTTP connection: with FTP, a new connection to server has to be established each time pacman requests a package to be downloaded, which results in a brief pause." However there aren't any FTP mirrors on the mirror list. Is this note obsolete and can be removed? --Pyfisch (talk) 17:52, 20 February 2021 (UTC)Reply[reply]

An argument against removing the note: there can still be FTP mirrors in internal networks. Just because there are not any public mirrors using FTP anymore does not mean that there are no mirrors using FTP.
-- NetSysFire (talk) 17:56, 20 February 2021 (UTC)Reply[reply]
There are still some unofficial mirrors serving over FTP. -- Lahwaacz (talk) 08:27, 21 February 2021 (UTC)Reply[reply]