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

Avoid failures when other runners are already registered with same name #127

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jeverling
Copy link

@jeverling jeverling commented Dec 8, 2022

Hi, we were running into issues where newly created instances weren't able to register with Github as runners, because by default the hostname is used as --name, and AWS was reusing hostnames from our IP range.
This can be fixed by setting the name explicitly, to something that is unique.
I think --name $(hostname)-$(uuidgen) should work well.

Fixes #128

Avoid failures when other runners are already registered with same name
@scottdickerson
Copy link

this is awesome and was also causing us problems.

@GiovaneRibeiro-neuro
Copy link

Awesome fix! I am facing this problem right now on my builds... When this PR will be merged?

@dsnjunior
Copy link

Awesome fix! I am facing this problem right now on my builds... When this PR will be merged?

It looks like it won't be that soon.

If it helps we are using it like that:

- name: Start EC2 runner
  uses: kimetrica/ec2-github-runner@set-unique-name-in-UserData-script

@thimios
Copy link

thimios commented Apr 15, 2024

We are also running in the same issue, it would be great to see this merged soon

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 this pull request may close these issues.

Runners fail to register when IPs/hostnames are reused
5 participants