codex-remote-troubleshoot
Use this skill for fast triage when command execution fails.
Triage Order
- •Validate machine profile exists in local config.
- •Run
machine check. - •Verify local direct addr vs SSH forwarding path.
- •Retry with a tiny command (
hostname). - •Inspect remote daemon logs if available.
Common Errors And Fixes
- •
unknown machine- •Fix
~/.config/codex-remote/config.yamlmachine name.
- •Fix
- •
connection reset by peer- •Usually forwarding/daemon lifecycle issue; check daemon health first.
- •
unauthorized- •Verify token in local machine profile and remote
auth_token.
- •Verify token in local machine profile and remote
- •
exec_id not found- •Ensure querying the same
machinewhere command was submitted.
- •Ensure querying the same
Minimal Verification Command
bash
codex-remote exec start --machine "$MACHINE" --cmd "hostname"
If submission succeeds, use result/logs to complete chain.