Skip to content

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

@cd-Barnes cd-Barnes mentioned this pull request Jun 18, 2024
romeroyonatan added a commit to Shiphero/ec2-github-runner that referenced this pull request Aug 8, 2024
romeroyonatan added a commit to Shiphero/ec2-github-runner that referenced this pull request Aug 8, 2024
romeroyonatan added a commit to Shiphero/ec2-github-runner that referenced this pull request Aug 8, 2024
Bellangelo added a commit to Bellangelo/ec2-github-runner that referenced this pull request Jun 11, 2025
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