actions / actions/actions-runner-controller

One of the job steps hangs and fail without any log messages

Open
#2,243 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs triage
Dominant language
Go
Stars
6.5k
Forks
1.5k
Avg merge
2d 2h
Merged PRs (30d)
27

Description

Checks
Controller Version

v0.27.0

Helm Chart Version

0.22.0

CertManager Version

v1.9.1

Deployment Method

Helm

cert-manager installation

Using the official helm chart - https://charts.jetstack.io

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
apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
  name: default-runner
spec:
  template:
    spec:
      organization: goledge
      image: <our custom image, see dockerfile bellow>
      dockerdWithinRunnerContainer: true
      labels:
        - self-hosted
        - linux
      priorityClassName: low

FROM summerwind/actions-runner-dind@sha256:7c7a5dd8839644de4149da9150a19910930928bc9651ee40eec904567ae348ad

RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - \
  && echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list \
  && sudo apt-get install ca-certificates curl gnupg lsb-release \
  && sudo mkdir -p /etc/apt/keyrings \
  && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list \
  && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
  && sudo apt update && sudo apt install --no-install-recommends yarn docker-compose-plugin default-jdk amazon-ecr-credential-helper -y \
  && sudo apt-get install -y \
  && java -version \
  && wget https://github.com/bazelbuild/bazelisk/releases/download/v1.14.0/bazelisk-linux-amd64 -O /tmp/bazelisk && sudo mv /tmp/bazelisk /usr/local/bin/bazelisk && sudo chmod +x /usr/local/bin/bazelisk && sudo ln -s /usr/local/bin/bazelisk /usr/local/bin/bazel  \
  && bazelisk --version && bazel --version


### To Reproduce

```markdown
I am not sure how TBH
Describe the bug

Recently we noticed job failing without any clear indication about the why:

image

This is the hang, it usually fails after job timeout time. There are no logs anywhere, so I have no idea why it is failing

Describe the expected behavior

Job runs without failures and not hanging

Whole Controller Logs
https://gist.github.com/omerlh/0e958a197c0fc4ea1be83814fb17f444
Whole Runner Pod Logs
https://gist.github.com/omerlh/0e958a197c0fc4ea1be83814fb17f444
Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the RunnerDeployment and custom Dockerfile in the issue, then inspect the linked controller and runner pod logs. The reproduction section provides no steps, so first determine which job step hangs and whether the timeout is visible in either log source; done means identifying the cause of the silent failure and documenting a reproducible case.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, github-actions, go, helm, kubernetes
Domain
ci-cd, devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.