Skip to content

Bug: Failed to register with GitHub before timeout period reachedΒ #225

@mikelax

Description

@mikelax

Overview

Using version 2.3.9 of this workflow, I am seeing situations where the runner fails to register with GitHub and fails with a timeout error. What is odd is that this situation occurs well before the timeout period is reached.

For example, I am using the default value of 5 minutes for a timeout, but the timeout error was thrown after just 41s. I have looked through the source code and can not see an obvious logic error that would cause this.

Example

Parameters:
startup-timeout-minutes - not specified
startup-retry-interval-seconds: 2
startup-quiet-period-seconds: 15

Here is the output from a workflow run.

Image
Run machulav/[email protected]
GitHub Registration Token is received
AWS EC2 instance i-xxxxxxxxxxxxxxxxx is started
Checking for instance i-xxxxxxxxxxxxxxxxx to be up and running
AWS EC2 instance i-xxxxxxxxxxxxxxxxx is up and running
Waiting 15s for the AWS EC2 instance to be registered in GitHub as a new self-hosted runner
Checking every 2s if the GitHub self-hosted runner is registered
Checking...
Checking...
Checking...
Checking...
Error: GitHub self-hosted runner registration error
Checking...
Error: A timeout of 5 minutes is exceeded. Your AWS EC2 instance was not able to register itself in GitHub as a new self-hosted runner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions