Skip to content

SSH Connection EOF #274

@s-newman

Description

@s-newman

Bug Report

Dynamicbeat may print a warning log about failing to close an SSH connection even when there are no issues.

See stackoverflow for a suggested fix.

Expected behavior

If the check finishes successfully, and there are no sessions left open on the target system, then Dynamicbeat shouldn't print any warning/error logs. Since this isn't a genuine issue, Dynamicbeat shouldn't print anything.

Actual behavior

A warning log is printed when closing an SSH session after a successful check.

Replication steps

For us to be able to fix the bug, it's important that we can replicate it. Please provide as detailed a guide as possible to reliably replicate the issue, if possible.

  1. Create a new SSH check
  2. Run Dynamicbeat against the check with logs printed to STDOUT (./dynamicbeat -e)
  3. See Failed to close SSH session connection: EOF error

Screenshots

image.png

Metadata

Metadata

Assignees

Labels

A-DynamicbeatRelates to DynamicbeatT-BugSomething isn't working the way it should be

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions