Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

events is forbidden: User "system:serviceaccount:actions-runner-system:actions-runner-controller-gha-rs-controller" cannot create resource "events" in API group "" in the namespace "actions-runner-system"' (will not retry!) #3857

Open
4 tasks done
julien-michaud opened this issue Dec 18, 2024 · 1 comment
Labels
bug Something isn't working gha-runner-scale-set Related to the gha-runner-scale-set mode needs triage Requires review from the maintainers

Comments

@julien-michaud
Copy link

Checks

Controller Version

0.9.4

Deployment Method

Helm

Checks

  • This isn't a question or user support case (For Q&A and community support, go to Discussions).
  • I've read the Changelog before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes

To Reproduce

use the 0.9.4 version of the controller

Describe the bug

getting this message from the controller

'events is forbidden: User "system:serviceaccount:actions-runner-system:actions-runner-controller-gha-rs-controller" cannot create resource "events" in API group "" in the namespace "actions-runner-system"' (will not retry!)

Describe the expected behavior

no error message

Additional Context

the event resource is not defined in the Helm chart provided.

Controller Logs

I1218 13:17:36.921721       1 leaderelection.go:250] attempting to acquire leader lease actions-runner-system/actions-runner-controller-gha-rs-controller...
I1218 13:17:39.201879       1 leaderelection.go:250] attempting to acquire leader lease actions-runner-system/actions-runner-controller-gha-rs-controller...
I1218 13:17:40.529987       1 leaderelection.go:250] attempting to acquire leader lease actions-runner-system/actions-runner-controller-gha-rs-controller...
I1218 13:17:52.294299       1 leaderelection.go:260] successfully acquired lease actions-runner-system/actions-runner-controller-gha-rs-controller
E1218 13:17:52.296139       1 event.go:280] Server rejected event '&v1.Event{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"actions-runner-controller-gha-rs-controller.181247e8f11d6bba", GenerateName:"", Namespace:"actions-runner-system", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ManagedFields:[]v1.ManagedFieldsEntry(nil)}, InvolvedObject:v1.ObjectReference{Kind:"Lease", Namespace:"actions-runner-system", Name:"actions-runner-controller-gha-rs-controller", UID:"d386b57d-3538-417a-a174-e0e49d2302ca", APIVersion:"coordination.k8s.io/v1", ResourceVersion:"923943137", FieldPath:""}, Reason:"LeaderElection", Message:"actions-runner-controller-gha-rs-controller-75ccdfc645-hw5h9_f722a5ba-9863-4207-8037-47451bc76a57 became leader", Source:v1.EventSource{Component:"actions-runner-controller-gha-rs-controller-75ccdfc645-hw5h9_f722a5ba-9863-4207-8037-47451bc76a57", Host:""}, FirstTimestamp:time.Date(2024, time.December, 18, 13, 17, 52, 294284218, time.Local), LastTimestamp:time.Date(2024, time.December, 18, 13, 17, 52, 294284218, time.Local), Count:1, Type:"Normal", EventTime:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Series:(*v1.EventSeries)(nil), Action:"", Related:(*v1.ObjectReference)(nil), ReportingController:"actions-runner-controller-gha-rs-controller-75ccdfc645-hw5h9_f722a5ba-9863-4207-8037-47451bc76a57", ReportingInstance:""}': 'events is forbidden: User "system:serviceaccount:actions-runner-system:actions-runner-controller-gha-rs-controller" cannot create resource "events" in API group "" in the namespace "actions-runner-system"' (will not retry!)
I1218 13:17:36.921721       1 leaderelection.go:250] attempting to acquire leader lease actions-runner-system/actions-runner-controller-gha-rs-controller...
I1218 13:17:39.201879       1 leaderelection.go:250] attempting to acquire leader lease actions-runner-system/actions-runner-controller-gha-rs-controller...
I1218 13:17:40.529987       1 leaderelection.go:250] attempting to acquire leader lease actions-runner-system/actions-runner-controller-gha-rs-controller...

Runner Pod Logs

/
@julien-michaud julien-michaud added bug Something isn't working gha-runner-scale-set Related to the gha-runner-scale-set mode needs triage Requires review from the maintainers labels Dec 18, 2024
@diseku
Copy link

diseku commented Dec 18, 2024

same issue. also with v0.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gha-runner-scale-set Related to the gha-runner-scale-set mode needs triage Requires review from the maintainers
Projects
None yet
Development

No branches or pull requests

2 participants