Skip to content

Still present random SIGSEGV segmentation violation in action-metrics-server  #2424

Closed

Description

@ozlotusflare

Checks

Controller Version

0.27.1

Helm Chart Version

0.22.0

CertManager Version

v1.11.0

Deployment Method

Helm

cert-manager installation

Installet correctly

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

image:
  tag: v0.27.1
  pullPolicy: Always
actionsMetricsServer:
  enabled: true

To Reproduce

Run `actionsMetricsServer` with a latest image

Describe the bug

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1420079]

goroutine 15 [running]:
github.com/actions/actions-runner-controller/pkg/actionsmetrics.(*EventReader).fetchAndParseWorkflowJobLogs(0x1583e40?, {0x19d0ed0?, 0xc0001a2000?}, 0xe?)
	github.com/actions/actions-runner-controller/pkg/actionsmetrics/event_reader.go:208 +0x59
github.com/actions/actions-runner-controller/pkg/actionsmetrics.(*EventReader).ProcessWorkflowJobEvent(0xc00018abd0, {0x19d0ed0, 0xc0001a2000}, {0x15fa880?, 0xc0005f01b0})
	github.com/actions/actions-runner-controller/pkg/actionsmetrics/event_reader.go:139 +0x105b
github.com/actions/actions-runner-controller/pkg/actionsmetrics.(*EventReader).ProcessWorkflowJobEvents(0xc00018abd0, {0x19d0ed0, 0xc0001a2000})
	github.com/actions/actions-runner-controller/pkg/actionsmetrics/event_reader.go:44 +0x59
main.main.func1()
	github.com/actions/actions-runner-controller/cmd/actionsmetricsserver/main.go:157 +0x6c
created by main.main
	github.com/actions/actions-runner-controller/cmd/actionsmetricsserver/main.go:154 +0xdef

Describe the expected behavior

See the metrics

Whole Controller Logs

Controller logs is fine

Whole Runner Pod Logs

Runner logs is fine

Additional Context

Related issue: #2309

Activity

  1. added
    bug
    needs triage
    on Mar 20, 2023
  2. changed the title [-]Still present random `SIGSEGV segmentation violation` in `action-metric-server` [/-] [+]Still present random `SIGSEGV segmentation violation` in `action-metrics-server` [/+] on Mar 20, 2023
  3. zanehala-wk commented on Mar 20, 2023

    @zanehala-wk
    Contributor

    +1, hitting this same issue.

  4. WissemChb commented on Mar 21, 2023

    @WissemChb

    +1, having the same issue.

  5. dongho-jung commented on Mar 27, 2023

    @dongho-jung
    Contributor

    I had the same issue. So I did some digging and found out that this line's reader.GitHubClient was nil. The reader.GitHubClient is set in the this line. However, in order for this property to be set, the conditions in this line must be met.

    Come to think of it, it was strange. I was sure I had set the github_webhook_secret_token, but upon checking, there was no secret called actions-metrics-server. actionsMetricsServer.enabled and actionsMetricsServer.secret.create were definitely true.

    After some time, it turned out that the necessary file for creating this secret was missing in the ChartVersion=0.22.0 release.
    I checked the last chart app version and you can also download and check actions-runner-controller-0.22.0.tgz

    @mumoshu maybe chart version should be updated too?

  6. mumoshu commented on Mar 30, 2023

    @mumoshu
    Collaborator

    Thank you everyone for reporting and @0xF4D3C0D3 for the detailed feedback!
    FYI, I've released the new chart version today.
    I'll shortly fix the issue and publish the next patch version for the controller.

  7. added a commit that references this issue on Mar 30, 2023
    baee0d8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions