Open itsmekarthikreddy opened 2 months ago
Hello! Thank you for filing an issue.
The maintainers will triage your issue shortly.
In the meantime, please take a look at the troubleshooting guide for bug reports.
If this is a feature request, please review our contribution guidelines.
FYI , I have created a standard cluster not auto pilot in gcp
actions-actions-runner-controller manger pod logs :
github.com/actions-runner-controller/actions-runner-controller/controllers.(*RunnerReconciler).Reconcile
/workspace/controllers/runner_controller.go:189
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:298
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:214
2024-05-02T08:44:52.580Z ERROR controller-runtime.manager.controller.runner-controller Reconciler error {"reconciler group": "actions.summerwind.dev", "reconciler kind": "Runner", "name": "k8s-runners-4xf79-lhnrk", "namespace": "actions", "error": "failed to create registration token: POST https://api.github.com/repos/XXXX-XXX/XXXX/actions/runners/registration-token: 401 Bad credentials []"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:214
2024-05-02T08:44:52.580Z DEBUG controller-runtime.manager.events Warning {"object": {"kind":"Runner","namespace":"actions","name":"k8s-runners-4xf79-lhnrk","uid":"5a59b3b4-8186-4450-b05d-94c0108400e3","apiVersion":"actions.summerwind.dev/v1alpha1","resourceVersion":"8139"}, "reason": "FailedUpdateRegistrationToken", "message": "Updating registration token failed"}
2024-05-02T08:44:52.774Z ERROR actions-runner-controller.runner Failed to get new registration token {"runner": "k8s-single-runner", "error": "failed to create registration token: POST https://api.github.com/repos/XXXX-XXX/XXXX/actions/runners/registration-token: 401 Bad credentials []"}
github.com/actions-runner-controller/actions-runner-controller/controllers.(*RunnerReconciler).Reconcile```
@itsmekarthikreddy I'm currently experiencing a similar issue. Were you able to resolve? And if so, how?
For me it was the issue below
I used "spec.template.spec.repository" field instead of "spec.template.spec.organization" in the runnerDeployment, when using github app creds for an organization. when changes it to organization everything worked.
The logs are not very helpful to understand what is wrong, and pin point the issue did took some time.
Hope it will help someone.
Checks
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
Resource Definitions
To Reproduce
Describe the bug
Failed to get new registration token
Describe the expected behavior
Runner should be created successfully.
Whole Controller Logs
Whole Runner Pod Logs
Additional Context
No response