Skip to content

failed to get message: failed to get next message: actions error: StatusCode 200, AcivityId "": EOF #4285

@jmcgrathTT

Description

@jmcgrathTT

Checks

Controller Version

0.12.1

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

N/A

Describe the bug

Our AutoscalingListener pod will stop accepting jobs and go into a "looping" state where we constantly see errors like this.

2025/10/23 16:04:46 Application returned an error: createSession failed: failed to create session: failed to do the session request: actions error: StatusCode 409, AcivityId "": GitHub.Actions.Runtime.WebApi.RunnerScaleSetSessionConflictException, GitHub.Actions.Runtime.WebApi: The actions runner scaleset example already has an active session.

The issue seems to be related to the 30-second cancel function context, as we don't ever see failed to delete message session: but only Deleting message session in the logs.

https://github.com/actions/actions-runner-controller/blob/gha-runner-scale-set-0.12.1/cmd/ghalistener/listener/listener.go#L441-L452

It seems like the message session is not being cleaned up in time, and when the app is re-initialized, it sees the old message session id via API causes it to "loop"

Describe the expected behavior

N/A

Additional Context

N/A

Controller Logs

2025/10/23 16:04:46 Application returned an error: createSession failed: failed to create session: failed to do the session request: actions error: StatusCode 409, AcivityId "": GitHub.Actions.Runtime.WebApi.RunnerScaleSetSessionConflictException, GitHub.Actions.Runtime.WebApi: The actions runner scaleset example already has an active session.
2025-10-23T16:02:07Z	INFO	listener-app	Starting listener
2025-10-23T16:02:07Z	INFO	listener-app	Starting metrics server
2025-10-23T16:02:07Z	INFO	listener-app	app initialized
2025/10/23 16:02:04 Application returned an error: failed to get message: failed to get next message: actions error: StatusCode 200, AcivityId "": EOF
2025-10-23T16:02:04Z	INFO	listener-app.listener	Deleting message session
2025-10-23T16:02:00Z	INFO	listener-app.listener	Getting next message	{"lastMessageID": 100042318}

Runner Pod Logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggha-runner-scale-setRelated to the gha-runner-scale-set modeneeds triageRequires review from the maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions