Skip to content

spored bootstrap fails at 'Failed to download checksum' for v0.96.0 — blocks ALL spored instances #462

Closed

Description

@scttfrdmn

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't s3:ListBucket these; 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.sh would 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

  1. scttfrdmn commented on Jul 31, 2026

    @scttfrdmn
    ContributorAuthor

    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 200
    • spored-linux-amd64.sha256 → HTTP 200
    • spored-linux-amd64.sig → HTTP 200

    The release workflow (.github/workflows/release.yaml) uploads per-binary .sha256/.sig to both the spawn/-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-shot curl -f with no retry. The curl (52) Empty reply from server in 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, .sig HEAD probe) now use curl --retry ... --retry-all-errors. Fail-closed on a genuinely bad artifact is unchanged. Tests + the existing bash -n syntax check pass; retry flags locked in by assertion.

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