Skip to content
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

Fix Health Monitor JSON plugin + add error logging #2530

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Conversation

ystros
Copy link
Contributor

@ystros ystros commented Jun 13, 2024

The Health Monitor JSON plugin was silently failing with the following error:

uninitialized constant Async::IO::Stream

This was due to a change in the async-io gem where neither async/io nor async/io/stream are automatically required anymore when the gem is installed.

In addition to adding the require, logging has been added when an internal Ruby exception occurs while running the custom JSON plugin scripts. This should make it easier to diagnose problems in the future. Logging has explicitly not been added when the custom plugin script returns a non-zero exit code, maintaining just the existing "Restarted process" log message..

Fixes #2528

The Health Monitor JSON plugin was silently failing with the following
error:
```
uninitialized constant Async::IO::Stream
```

This was due to a change in the async-io gem where neither async/io nor
async/io/stream are automatically required anymore when the gem is
installed.

In addition to adding the require, logging has been added when an
internal Ruby exception occurs while running the custom JSON plugin
scripts. This should make it easier to diagnose problems in the future.
Logging has explicitly not been added when the custom plugin script
returns a non-zero exit code, maintaining just the existing "Restarted
process" log message..
@ystros ystros merged commit e80c5ca into main Jun 18, 2024
4 checks passed
@ystros ystros deleted the fix-hm-json-plugin branch June 18, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

BOSH Health Monitor JSON Pluging Not Working
3 participants