You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spored install fails on EL8 (Rocky/RHEL 8): curl 7.61 rejects --retry-all-errors, bootstrap aborts with no TTL #1056
On Rocky Linux 8 / RHEL 8 (curl 7.61.1), the spored install always fails, and the bootstrap then aborts:
cloud-init[1686]: Installing spored for architecture: x86_64
cloud-init[1686]: Downloading spored binary...
cloud-init[1686]: Failed to download spored-linux-amd64 from any source
cloud-init[1686]: spored install failed — aborting bootstrap rather than running an unverified agent
cloud-init[1686]: ... Failed to run module scripts_user
No spored, no --command, and no --user-data means no TTL and no cost limit, while the instance keeps running.
Cause
pkg/sporedinstall/install.go:141,146,170,190 call curl ... --retry-all-errors. That option was added in curl 7.71.0; EL8 ships 7.61.1, which exits 2 with option --retry-all-errors: is unknown. The error is hidden by 2>/dev/null, so every source is reported as a download failure.
spawn launch curl-repro --region us-west-2 --instance-type t3.small \
--ami ami-002d02e441c88be78 --ttl 20m --cost-limit 0.10 --command true -y
aws ec2 get-console-output --instance-id <id> --latest --output text | grep spored
# instance is not terminated at TTL; terminate manually
Suggested fix
Probe once: curl --help all 2>/dev/null | grep -q -- --retry-all-errors && RAE=--retry-all-errors, then pass $RAE. Alternatively, drop the option and wrap the call in a small retry loop. Also consider not discarding curl's stderr on the final attempt, since a hidden usage error looks identical to a network failure.
Related: #1052 (SELinux label on EL9) and #1053 (SSM agent).
Activity
scttfrdmn commentedon Oct 15, 2026
Confirmed on the instance (Rocky 8.10,
ami-002d02e441c88be78):fix: spored installs and runs on EL8 and SELinux-enforcing AMIs (#1052,