Comments (7)
I ran into this issue when previous runners didn't clean themselves up in the GitHub API and I look at the cloud-init log of the configure command it was asking if I wanted to replace the previous runner:
https://github.com/actions/runner/blob/main/src/Runner.Listener/CommandSettings.cs#L193
Edit: I followed up here and it seems one can pass in --replace
to the config.sh script. I could fork and cut a PR for this, but was wondering if it should be flaggable since it shouldn't normally happen on a clean stop of the instance (which sometimes isn't guaranteed).
Jun 24 20:41:24 ip-10-x-0-61 cloud-init[2458]: This runner will have the following labels: 'self-hosted', 'Linux', 'X64'
Jun 24 20:41:24 ip-10-x-0-61 cloud-init[2458]: Enter any additional labels (ex. label-1,label-2): [press Enter to skip]```
from ec2-github-runner.
We're also experiencing this, requiring periodic manual re-run of our CI jobs.
from ec2-github-runner.
Would also like to know if there's something one can do to limit these situations...
from ec2-github-runner.
Hello!
Any update on this? We are also facing a lot of unstarted runners...
@farvour do you plan to do a PR or is there a way to apply your solution on our side?
Thank you!
from ec2-github-runner.
A timeout of 5 minutes is exceeded
This error usually means that your new EC2 runner can not communicate to GitHub and registers itself as a new runner. Based on the tests, 5 minutes is more than enough for the EC2 runner to be able to register itself.
So I recommend double-checking if the outbound traffic on port 443 is always opened for your EC2 runner.
If that does not help, I have to ask you to provide more information about your action configuration and the AWS infrastructure setup to help you with the issue.
from ec2-github-runner.
A timeout of 5 minutes is exceeded
This error usually means that your new EC2 runner can not communicate to GitHub and registers itself as a new runner. Based on the tests, 5 minutes is more than enough for the EC2 runner to be able to register itself. So I recommend double-checking if the outbound traffic on port 443 is always opened for your EC2 runner.
If that does not help, I have to ask you to provide more information about your action configuration and the AWS infrastructure setup to help you with the issue.
I'll have to do some probing to see what's going on with 443 traffic however some observations which may be relevant are:
-
For successful registrations (under 5 minutes) the distribution of time it takes is pretty wide. Not sure why, but I get a decent number of registrations that occur around the 4-5 minute mark. Others occur almost immediately. This seems independent of how long it takes for the instance to reach an "OK" status reported via
aws ec2 describe-instance-status
. -
None of my other EC2 instances instances in this subnet have any obvious networking issues. All my security policies are fully open in the outbound direction.
I'm using a t3.mini instance with an AMI based on bare Ubuntu 20.04, then prepared with the apt
equivalent of the README instructions, and nothing else done to it.
from ec2-github-runner.
Hi, I think this might be the same issue where the hostname is used as runner name, and hostnames are reused between instances: #128
Maybe using the --replace
option is a good idea though!
from ec2-github-runner.
Related Issues (20)
- stop action fails to find Github runner though the labeled runner does exist HOT 2
- Runners fail to register when IPs/hostnames are reused HOT 4
- Instance role when added not working HOT 2
- update the options for github runner setup script (config.sh)
- Runner is up and running but job isn't running on selfhosted runner HOT 2
- Support for c7g instances. HOT 1
- Add missing library to README / Arm64
- Make ec2-github-runner working with GITHUB_TOKEN generated into the Github Action workflow HOT 3
- EBS Volume doesn't get deleted HOT 1
- [feature request] make to be installed github runner version configurable
- [feature request] Make configurable pre-commands in user-data possible HOT 1
- is there a way to pass additional parameter to ec2 instance, like enable detail monitor? HOT 2
- Github Runner - not able to register itself in GitHub as a new self-hosted runner HOT 1
- [feature request] Allow use of Fine-grained personal access tokens
- Issue starting runner HOT 1
- [feature request] Allow requesting spot instance instead of an on-demand instance. HOT 7
- Error regarding ec2 os input HOT 1
- Unable to register self-hosted runner HOT 8
- Support node 20 HOT 2
- Setting up GitHub Self-Hosted Runner On-Demand: Permission Denied Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ec2-github-runner.