ec2-github-runner icon indicating copy to clipboard operation
ec2-github-runner copied to clipboard

Avoid failures when other runners are already registered with same name

Open jeverling opened this issue 3 years ago • 4 comments

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 https://github.com/machulav/ec2-github-runner/issues/128

jeverling avatar Dec 08 '22 13:12 jeverling

this is awesome and was also causing us problems.

scottdickerson avatar Dec 08 '22 14:12 scottdickerson

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

GiovaneRibeiro-neuro avatar Mar 19 '24 12:03 GiovaneRibeiro-neuro

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

dsnjunior avatar Mar 19 '24 16:03 dsnjunior

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

thimios avatar Apr 15 '24 13:04 thimios