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

action-runner has crashed loop with latest version. #722

Closed
1 of 2 tasks
h-r-k-matsumoto opened this issue Aug 11, 2021 · 7 comments
Closed
1 of 2 tasks

action-runner has crashed loop with latest version. #722

h-r-k-matsumoto opened this issue Aug 11, 2021 · 7 comments

Comments

@h-r-k-matsumoto
Copy link
Contributor

Describe the bug
Suddenly runner pod has crashed loop after 2021-08-11.
I think summerwind/actions-runner:latest is not built correctly.

Checks

  • My actions-runner-controller version (v0.x.y) does support the feature
  • I'm using an unreleased version of the controller I built from HEAD of the default branch

To Reproduce

First o all , summerwind/actions-runner:latest cannot be started.

$ docker images |findstr  summerwind/actions-runner
summerwind/actions-runner                                                     latest         42c0cefce236   3 hours ago     788MB
$ docker run -it --rm summerwind/actions-runner:latest
standard_init_linux.go:228: exec user process caused: exec format error
$

I think dump-init doesnot install correctly.

$ docker run -it --rm --entrypoint '' summerwind/actions-runner:latest /bin/sh
$ cat  /usr/local/bin/dumb-init
Not Found$

Expected behavior
It can be started normally.

Screenshots
Nothing.

Environment (please complete the following information):

  • Controller Version: 0.18.2
  • Deployment Method: Kustomize

Additional context
Nothing

@h-r-k-matsumoto
Copy link
Contributor Author

There is the code below.
https://github.com/actions-runner-controller/actions-runner-controller/blob/master/runner/Dockerfile#L51

    && curl -L -o /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_${ARCH} \

This is run as follows:

  && curl -L -o /usr/local/bin/dumb-init  https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_amd64

However dumb-init_1.2.5_amd64 file is not exists in Yelp/dumb-init/releases/tag/v1.2.5

@h-r-k-matsumoto
Copy link
Contributor Author

A Condition with downloading dumb-init is wrong.
https://github.com/Yelp/dumb-init/releases/tag/v1.2.3

x86_64 (previously amd64)
aarch64 (previously arm64)
ppc64le (previously ppc64el)

if amd64, $ARCH should be set x86_64 .

@AndreaSoldino-TomTom
Copy link

I reverted back to an older image, e.g.

# runnerdeployment.yaml
apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
  name: serviceplatform
  namespace: runners
spec:
  replicas: 1
  template:
    spec:
      organization: redacted
      image: summerwind/actions-runner:v2.279.0-ubuntu-20.04-743e6d6

You can find a full list of images on docker hub

@hammadzz
Copy link

I reverted back to an older image, e.g.

# runnerdeployment.yaml
apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
  name: serviceplatform
  namespace: runners
spec:
  replicas: 1
  template:
    spec:
      organization: redacted
      image: summerwind/actions-runner:v2.279.0-ubuntu-20.04-743e6d6

You can find a full list of images on docker hub

This was in response to my question on a workaround fix. I had to delete it as I accidentally posted it from one of my orgs github account. Thanks!

@sledigabel
Copy link
Contributor

I would suggest adding the sha256sum download as part of the image build and match it against the downloaded file.
It's possible the curl resulted in a download of a 404 or 500 page, and we wouldn't know until trying to run the dumb-init

https://github.com/Yelp/dumb-init/releases/

@h-r-k-matsumoto
Copy link
Contributor Author

I've confirmed that this issue was solved with #723 , so close it.
Thank you for your cooperation.

@mumoshu
Copy link
Collaborator

mumoshu commented Aug 12, 2021

@h-r-k-matsumoto Thanks a lot for reporting and fixing this! ☺️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants