Skip to content

worker: a stalled .sig redirect is fatal, and the fallback Servers 404 for every package updated since the snapshot #76

Open

Description

@Nemo-010

pkgforge-dev/Anylinux-AppImages' Build Demos matrix runs 24 jobs, each pacman -Syu with the Worker as the first Server. Run 40634801457 took five attempts: 8 jobs failed, then 3, then 1, then 1. All 13 failures carry Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds from ghcr.mirror.archlinux.pkgforge.dev.

The Worker is not the slow part. It answers a 302 in 0.36–0.9 s from a normal host, including at 100 concurrent requests. What stalls is one of the two hops behind it — the GHCR subrequest or the blob download — and pacman's timer cannot tell which. On the runners the stalls land in the same second across all five ParallelDownloads slots (04:53:59: gcc, llvm-libs, perl, python and mesa together), so it is a shared window rather than per-file luck. That timer is not configurable in pacman.conf: libalpm sets CURLOPT_LOW_SPEED_LIMIT = 1 and CURLOPT_LOW_SPEED_TIME = 10 unless --disable-download-timeout is passed.

A stalled .sig cannot fail over. libalpm builds the signature payload with sig->fileurl set and no server list (lib/libalpm/dload.c, the payload->download_signature branch), so curl_retry_next_server() has nothing to try and the transfer is fatal. 11 of the 13 failures stalled on a .sig. On x86_64 there were no 404s at all, and each of the four failures included one: gcc-...sig and mesa-...sig stalled while the packages themselves were fine. This is the case #65 raises for a .sig 302, happening in the wild.

The fallbacks cannot rescue the rest. When pacman does fall through to the next Server, upstream has already deleted the snapshot's versions. While latest named perl-error-0.17030-3, harfbuzz-14.6.0-1 and llvm-libs-23.1.4-1, ALARM served 0.17031-1, 15.0.0-1 and 23.1.4-1.1 — so all 13 ALARM mirrors answered 404 for exactly the packages that had changed most recently.

Suggestion: answer .sig inline from the manifest's .sig layer instead of a 302, as #65 proposes for lane 1. That removes the one request per package that pacman cannot fail over. Until then, way 1 in README.md could note that a client with a low-speed abort — plain pacman, without --disable-download-timeout — has to retry the transaction, because a redirect to a second host can outlast the 10 s limit when 24 jobs pull at once. Neucom Sphere would have routed that around; a mirror with one hard-coded timeout in its clients has to be gentler than the client.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions