machulav / ec2-github-runner

On-demand self-hosted AWS EC2 runner for GitHub Actions
MIT License
747 stars 337 forks source link

Unable to register self-hosted runner #178

Closed danielMCF99 closed 2 weeks ago

danielMCF99 commented 11 months ago

I am trying to use this github action but I keep getting an error when checking if the GitHub self-hosted runner is registered.

Can anyone outline some possible reasons for this?

GoLoTrust commented 11 months ago

Same situation here =..(

danielMCF99 commented 11 months ago

still no progress :(

GoLoTrust commented 11 months ago

Hey @danielMCF99 , Thanks for pointing this out! After some testing I tried by creating our own AMI image where basically we use Ubuntu 22.04 and dependencies needed. Hope this can fix the problem for your use case as well!

dysfunctor commented 10 months ago

I ran into this because I did not do step 3.2 of the README: "Connect to the instance using SSH, install docker and git, then enable docker service."

Hope that helps!

yambottle commented 8 months ago

Folks, I ran into the same issue, and by default, the subnet I'm using sets Auto-assign public IPv4 address to No... It works when I set it to Yes

AndriiPidiablonskyi commented 7 months ago

Might be related to unsupported OS or arch, e.g. Github doesn't support Amazon Linux AMI for self-hosted runners, please refer here for more details.

4cm3 commented 4 months ago

Folks, I ran into the same issue, and by default, the subnet I'm using sets Auto-assign public IPv4 address to No... It works when I set it to Yes

This is the solution

4cm3 commented 4 months ago

Might be related to unsupported OS or arch, e.g. Github doesn't support Amazon Linux AMI for self-hosted runners, please refer here for more details.

I'm using Amazon Linux for self hosted runners and they work as expected. Will update if I find any issue

roshkhatri commented 3 months ago

Ran into the same issue

Folks, I ran into the same issue, and by default, the subnet I'm using sets Auto-assign public IPv4 address to No... It works when I set it to Yes

Worked after following this

Should probably be added to the README or have a TROUBLESHOOTING.md file

TerenceTian625 commented 1 month ago

I set it to No, and the failed to register as self-hosted runner issue never appears, weird

stecullum commented 2 weeks ago

I had to make sure the image has "libicu"

For amazon Linux AL2003 I had to add...

        "sudo yum update -y",
        "sudo yum install docker libicu -y",  << important
        "sudo systemctl enable docker",
        "sudo systemctl start docker",

        "# Install docker compose plugin",
        "sudo curl -L \"https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-linux-$(uname -m)\" -o /usr/libexec/docker/cli-plugins/docker-compose",
        "sudo chmod +x /usr/libexec/docker/cli-plugins/docker-compose"
Preen commented 2 weeks ago

Havent been able to confirm this yet in regards of AL2023. However until I have; please use Amazon Linux 2 for now. I will close this for now and if you encounter any new issues with runners not registering, create a new issue.