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

Metric of "lost communication with the server" error #444

Closed
int128 opened this issue Aug 27, 2022 · 0 comments · Fixed by #445
Closed

Metric of "lost communication with the server" error #444

int128 opened this issue Aug 27, 2022 · 0 comments · Fixed by #445

Comments

@int128
Copy link
Owner

int128 commented Aug 27, 2022

Problems to solve

Eventually a self-hosted runner is killed by OOM or some issue. It is called "lost communication with the server" error.

When the error occurred, GitHub Actions adds an annotation with the following message:

The self-hosted runner: POD_NAME lost communication with the server. Verify the machine is running and has a healthy network connection. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.

Currently, we send the annotation message to Slack by this action:
https://github.com/int128/workflow-run-summary-action/blob/216f94dd10d099652cfb393e598c2a8f604c3bd0/src/run.ts#L60

How to solve

It would be nice to monitor the count of "lost communication with the server" errors for fact-based decision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant