Skip to content

spored install fails on EL8 (Rocky/RHEL 8): curl 7.61 rejects --retry-all-errors, bootstrap aborts with no TTL #1056

Closed

Description

@scttfrdmn

Summary

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.

Repro

spawn v0.128.2, ami-002d02e441c88be78 (Rocky-8-EC2-Base-8.10-20260625.x86_64), us-west-2:

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

  1. scttfrdmn commented on Oct 15, 2026

    @scttfrdmn
    ContributorAuthor

    Confirmed on the instance (Rocky 8.10, ami-002d02e441c88be78):

    curl 7.61.1 (x86_64-redhat-linux-gnu) libcurl/7.61.1 OpenSSL/1.1.1k ...
    curl: option --retry-all-errors: is unknown
    curl --retry-all-errors rc=2
    
  2. added this to the v0.135.2 milestone on Oct 19, 2026
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions