Builds stall on unreachable Ubuntu mirrors; use a country mirror #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Since 2026-09-11, image builds crawl. The
coder-xfce-vncjob on #22 took 48 minutes (usually ~10), #23'scijob took 26 minutes (usually 3–7), and the first desktop attempts on both PRs were cancelled after about 38 minutes.Every
apt-getstep fetches from Ubuntu's default mirrors, and Canonical's main archive is down (see Canonical's status page). From the build cluster:archive.ubuntu.com(all 6 addresses)security.ubuntu.comfr.archive.ubuntu.com200in 55–73 msIt's the same from three different nodes, and there's no IPv6 route to fall back on. Network speed isn't the problem: GitHub and JetBrains downloads run at 60–250 MB/s from the same node and from inside the build container.
Normally the default mirrors are fine, but a release can't wait for Canonical to recover, and country mirrors run on separate hosts that keep working through outages like this.
Proposal
Add a
UBUNTU_MIRRORbuild argument to the base stage, defaulting to the France country mirror, and rewrite the image's Ubuntu sources to use it. Every variant inherits it, and an empty value keeps the stock sources.Because the rewritten sources ship in the published images, this needs clear public documentation: what changed, the trade-off for security updates, how to check which mirror an image uses, and how to switch mirrors or restore the stock sources, both at build time and in existing images.
🤖 Generated with Claude Code