Repository navigation
Description
Severity: high — blocks every spored bootstrap on the v0.96.0 release
Found during a real-AWS smoke test of spawn pool (dev account, us-east-1, t3.micro). A freshly launched instance fails to install spored, so it never runs its workload.
Evidence (from the worker's cloud-init-output.log, via SSM)
Installing spored for architecture: x86_64
Region: us-east-1
Downloading spored binary...
No signature at https://spawn-binaries-us-east-1.s3.amazonaws.com/spawn — trying next source
Downloaded spored from https://spawn-binaries-us-east-1.s3.amazonaws.com
Verifying checksum...
... (curl retries for ~20s) ...
curl: (52) Empty reply from server
Failed to download checksum
scripts-user.py[WARNING]: Failed to run module scripts-user
So: the binary downloads fine, but the checksum fetch returns an empty reply and the install aborts. Result on the instance: which spored → NO-SPORED, systemctl is-active spored → inactive. Any workload depending on spored (pool workers, spawn task run, job arrays, etc.) silently never starts.
Likely cause
The v0.96.0 release step logged Uploaded spored 0.96.0 (linux+windows) to 11 regions, but the checksum artifact (e.g. spored.sha256 / the per-arch checksum key) appears to be missing, empty, or unreadable in the regional spawn-binaries-<region> buckets — while the binary itself is present. The bootstrap treats a missing checksum as fatal (correct — it shouldn't run an unverified binary).
What to check (needs infra-account access — I only have dev)
- Do the
spawn-binaries-<region>buckets contain the checksum key(s) the bootstrap fetches for this release, alongside the binary? (The dev role can'ts3:ListBucketthese; the release/upload runs in the infra account.) - Did the v0.96.0 upload step publish the checksum with the same key naming the bootstrap's "Verifying checksum" step expects? A rename/format drift between the release workflow and
scripts/install-spored.shwould produce exactly this (binary present, checksum 404/empty). - Is this v0.96.0-specific or does it reproduce on the prior release too? (If prior releases boot fine, it's a regression in the v0.96.0 upload.)
Impact / urgency
This is bigger than the pool feature: it blocks any spored-backed instance on v0.96.0. If confirmed, it likely warrants a v0.96.1 that fixes the checksum publication (or the bootstrap's checksum-source URL), and the paid #70 validation is blocked until then.
Discovered alongside #70 (pooled execution). The pool-side launch bugs found in the same smoke are fixed separately in #461; this distribution bug is not.
Activity
scttfrdmn commentedon Jul 31, 2026
Corrected diagnosis — artifacts are fine; it's a missing-retry robustness gap
Dug in without needing infra access. The checksum artifact is NOT missing. Probing the exact keys the bootstrap fetches (the no-prefix candidate it actually used):
spored-linux-amd64→ HTTP 200spored-linux-amd64.sha256→ HTTP 200spored-linux-amd64.sig→ HTTP 200The release workflow (
.github/workflows/release.yaml) uploads per-binary.sha256/.sigto both thespawn/-prefixed and no-prefix keys in every regional bucket, and they're present + reachable.Real cause: the bootstrap's checksum fetch (
pkg/launcher/bootstrap.go:282) was a single-shotcurl -fwith no retry. Thecurl (52) Empty reply from serverin the smoke was a transient S3 response on that one GET — with no retry it aborts the whole install, so the instance boots with no spored. The binary GET had per-candidate fallback but no retry either.Severity downgraded: this is not "blocks all spored / needs an urgent v0.96.1." Existing v0.96.0 instances mostly boot fine; the failure is intermittent. It's a robustness fix worth shipping in the next release.
Fix in #463: all download/verify fetches (binary, checksum,
.sig,.sigHEAD probe) now usecurl --retry ... --retry-all-errors. Fail-closed on a genuinely bad artifact is unchanged. Tests + the existingbash -nsyntax check pass; retry flags locked in by assertion.fix(bootstrap): retry transient spored binary/checksum/sig downloads (#…
fix: spored installs and runs on EL8 and SELinux-enforcing AMIs (#1052,
fix: spored installs and runs on EL8 and SELinux-enforcing AMIs (#1052,