Skip to content

fix(agent/agentssh): allow scp to exit with zero status #12028

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Feb 6, 2024

I wanted to add a test for this but I didn't manage to do it with the SCP client library we use in tests. The exit code is always EOF, whereas the exit is cleaner live:

2024-02-06 14:34:34.404 [warn]  ssh-server: sftp server closed with error  remote_addr=[fd7a:115c:a1e0:4a91:860b:c4d9:67b2:eed1]:42916  local_addr=[fd7a:115c:a1e0:49d6:b259:b7ac:b1b2:48f4]:1  id=7b45d6dd-e187-4800-99fd-026bf8a2e1c3  error=<nil>

Fixes #11786

@mafredri mafredri self-assigned this Feb 6, 2024
@mafredri mafredri requested a review from coadler February 6, 2024 14:55
@mafredri mafredri merged commit f2aef07 into main Feb 7, 2024
@mafredri mafredri deleted the mafredri/fix-agent-agentssh-scp-exit branch February 7, 2024 08:22
@github-actions github-actions bot locked and limited conversation to collaborators Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scp over SSH exits with status code 1 after successful transfer
2 participants