actions / actions/actions-runner-controller
Failed to get new registration token while installing ARC org wide for enterprise GITHUB
Open
Nobody has claimed this yet.
bug
community
needs triage
- Dominant language
- Go
- Stars
- 6.5k
- Forks
- 1.5k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 27
Description
Checks
- I've already read https://github.com/actions/actions-runner-controller/blob/master/TROUBLESHOOTING.md and I'm sure my issue is not covered in the troubleshooting guide.
- I'm not using a custom entrypoint in my runner image
Controller Version
0.27.6
Helm Chart Version
0.23.7
CertManager Version
1.8.0
Deployment Method
Helm
cert-manager installation
Yes Installed as per ARC Doc
Checks
- This isn't a question or user support case (For Q&A and community support, go to Discussions. It might also be a good idea to contract with any of contributors and maintainers if your business is so critical and therefore you need priority support
- I've read releasenotes before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes
- My actions-runner-controller version (v0.x.y) does support the feature
- I've already upgraded ARC (including the CRDs, see charts/actions-runner-controller/docs/UPGRADING.md for details) to the latest and it didn't fix the issue
- I've migrated to the workflow job webhook event (if you using webhook driven scaling)
Resource Definitions
---
apiVersion: actions.summerwind.dev/v1alpha1
kind: HorizontalRunnerAutoscaler
metadata:
name: k8s-runners-autoscaler
namespace: XXXX-actions-runners
spec:
scaleTargetRef:
name: k8s-runners
scaleDownDelaySecondsAfterScaleOut: 300
minReplicas: 1
maxReplicas: 10
metrics:
- type: TotalNumberOfQueuedAndInProgressWorkflowRuns
repositoryNames:
- XXX/XXX
---
apiVersion: actions.summerwind.dev/v1alpha1
kind: Runner
metadata:
name: k8s-single-runner
namespace: XXXX-actions-runners
spec:
repository: XXXX/XXXX
env: []
---
apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
name: k8s-runners
namespace: XXXX-actions-runners
spec:
template:
spec:
repository: XXXX/XXXX
labels:
- XXX-core-stack
env: []
To Reproduce
Create GIT HUB app as per https://github.com/actions/actions-runner-controller/blob/master/docs/authenticating-to-the-github-api.md
Create secret controller-manager in actions-runners-system with above details and pem key
Describe the bug
Failed to get new registration token
Describe the expected behavior
Runner should be created successfully.
Whole Controller Logs
https://gist.github.com/itsmekarthikreddy/18c5112333acaee2c54f0945b0f87222
Whole Runner Pod Logs
https://gist.github.com/itsmekarthikreddy/18c5112333acaee2c54f0945b0f87222
Additional Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the authentication guide and the supplied Runner, RunnerDeployment, and HorizontalRunnerAutoscaler manifests, then inspect the controller and runner logs in the linked gist for the registration-token failure. Reproduce the enterprise, organization-wide installation with the stated ARC and Helm versions. Done means the controller obtains a registration token and creates the runner successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, go, helm, kubernetes
- Domain
- ci-cd, devops, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100