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
spawn extend: TTL reload SSHes as ec2-user, silently no-ops on Ubuntu AMIs #581
spawn extend doesn't apply the new TTL on-box: reload SSHes as ec2-user on Ubuntu AMIs
spawn extend <name> <duration> updates the TTL but then tries to reload the on-box spored over SSH as ec2-user, which fails on Ubuntu AMIs (login user is ubuntu), so the extension is not applied and the box still self-terminates at the original TTL.
Repro (Ubuntu 24.04 arm64 AMI, launched with --ttl 45m):
spawn extend <name> 45m --profile <p>
# ⚠️ Warning: Failed to trigger reload: exit status 255: ec2-user@<ip>: Permission denied (publickey).
# You may need to manually run: ssh ec2-user@<ip> 'sudo spored reload'
The workaround is to reload as the real login user:
Fix: the reload SSH should use the same login user spawn connect resolves (the AMI's default user / --user), not a hardcoded ec2-user. Impact: spawn extend silently no-ops on non-AL2023 AMIs — a box you believe you extended terminates mid-run.
(Found while benchmarking on Ubuntu boxes; a multi-instance run lost a box to this.)
Activity
fix(connect): resolve SSH login user for spored triggers; add connect…
fix(connect): resolve SSH login user for spored triggers; add connect…