The Arch Linux ARM geo host mirror.archlinuxarm.org redirects every request on its own, so pacman took core.db from a mirror that already held kmod-34.4-1 and fetched the packages from mirrors that only served kmod-34.3-2, and the upgrade failed with 404s on arm64 (main run 45509759037: Bridgy Fed#0, LAM#1, Meta#1, Nextcloud#13, jitsi#2; PR #2873 OpenProject#0; PR #2856 GitLab#1).
alarm_mirror.sh demote moves every geo Server line behind the last concrete Server before the database refresh. When the upgrade still fails to retrieve files, alarm_mirror.sh retry rotates the first concrete Server behind the last concrete one and runs pacman -Syyu, once per further concrete mirror; the geo host never leads. The role decides by the script's exit code only, the mirrorlist is replaced atomically with its mode kept, and a mirrorlist without the geo host (x86_64 Arch) stays untouched.
🎯 Fix: 85 %
💥 Break: 4 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 82
🚦 Gate: ⛔ fix 85 % < 90
Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pacman's DatabaseOptional fetches <repo>.db.sig after every database; Arch
publishes none, so every mirror answers 404. The XferCommand ran curl with
--retry-all-errors, which retried that permanent 404 three times, 2 s apart,
for about 18 s per refresh on every Arch host (deploy log 17.4-18.3 s).
pacman-xfer keeps retrying transient failures (transport errors, 5xx, every
4xx but 404/410), honours Retry-After on 429/503 up to 30 s and drops a failed
attempt's partial bytes like curl's own retry did; 404 and 410 fail at once.
The shell-download-retry lint accepts a download its script retries in a
bounded counter loop that leaves on success and sleeps between attempts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>