checkout icon indicating copy to clipboard operation
checkout copied to clipboard

TypeError: Converting circular structure to JSON

Open remidebette opened this issue 1 year ago • 6 comments

Hi,

In the context of using github action runners in kubernetes sith scalesets, we recently saw this error happening at checkout.

What is the meaning of the error?

Error: TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'ClientRequest'
    |     property 'socket' -> object with constructor 'TLSSocket'
    --- property '_httpMessage' closes the circle
Error: Process completed with exit code 1.
Error: Executing the custom container implementation failed. Please contact your self hosted runner administrator.
Image

remidebette avatar Feb 03 '25 15:02 remidebette

Also, If it helps, in the Post step, we see this

env: can't execute '/__e/node20/bin/node': No such file or directory
Error: Error: failed to run script step: command terminated with non-zero exit code: error executing command [sh -e /__w/_temp/f3[5](https://github.com/....EDITED...)1d450-e79e-11ef-bdc3-07b71b06c61b.sh], exit code 127
Error: Process completed with exit code 1.
Error: Executing the custom container implementation failed. Please contact your self hosted runner administrator.

remidebette avatar Feb 10 '25 14:02 remidebette

Hi @remidebette , Is there any updates? I met the same issue.

Hongjia-Jia avatar Mar 05 '25 06:03 Hongjia-Jia

For us it was a corrupted node on our on premisses kubernetes cluster that was prematurely killing the pods. Getting it out and recycling it solved the issue.

But the logs here clearly don't handle this use case and don't help in finding the culprit node

remidebette avatar Mar 05 '25 08:03 remidebette

this is happening on our end as well.

jonathan-fileread avatar Apr 17 '25 20:04 jonathan-fileread

IMO, this happens at some random step of a GitHub workflow run, on GHES v3.12.

It even fails on just steps.run with echo hello.

(FYI I am using gha-runner-set v0.11 with kubernetes enabled, along with openebs hostpath volume.)

igxactly avatar May 28 '25 07:05 igxactly

Created this in the forums to advance https://github.com/orgs/community/discussions/162615

remidebette avatar Jun 12 '25 10:06 remidebette