Repository navigation
Open
Labels
bugSomething isn't workingcommunityCommunity contributionneeds triageRequires review from the maintainers
Description
Checks
- I've already read https://github.com/actions/actions-runner-controller/blob/master/TROUBLESHOOTING.md and I'm sure my issue is not covered in the troubleshooting guide.
- I'm not using a custom entrypoint in my runner image
Controller Version
latest
Helm Chart Version
0.27.6
CertManager Version
1.13.1
Deployment Method
Helm
cert-manager installation
Installed ok by Chart.yaml
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:
{{- if hasSuffix "-dev" .Release.Namespace }}
name: {{ .Values.runnerDeploymentDev.name }}
namespace: {{ .Release.Namespace }}
{{- end }}
{{- if hasSuffix "-prd" .Release.Namespace }}
name: {{ .Values.runnerDeploymentPrd.name }}
namespace: {{ .Release.Namespace }}
{{- end }}
spec:
{{- if hasSuffix "-dev" .Release.Namespace }}
replicas: {{ .Values.runnerDeploymentDev.replicas }}
{{- end }}
{{- if hasSuffix "-prd" .Release.Namespace }}
replicas: {{ .Values.runnerDeploymentPrd.replicas }}
{{- end }}
template:
spec:
{{- if hasSuffix "-dev" .Release.Namespace }}
image: {{ .Values.runnerDeploymentDev.image }} ## Alterar para repositório de DEV
{{- end }}
{{- if hasSuffix "-prd" .Release.Namespace }}
image: {{ .Values.runnerDeploymentPrd.image }} ## Alterar para repositório de Prd
{{- end }}
organization: company-a
{{- if hasSuffix "-dev" .Release.Namespace }}
labels:
{{- range .Values.runnerDeploymentDev.labels }}
{{ "-" }} {{ . }}
{{- end }}
{{- end }}
{{- if hasSuffix "-prd" .Release.Namespace }}
labels:
{{- range .Values.runnerDeploymentPrd.labels }}
{{ "-" }} {{ . }}
{{- end }}
{{- end }}
env:
- name: teste
{{- if hasSuffix "-dev" .Release.Namespace }}
value: a
{{- end }}
{{- if hasSuffix "-prd" .Release.Namespace }}
value: b
{{- end }}
---
apiVersion: actions.summerwind.dev/v1alpha1
kind: HorizontalRunnerAutoscaler
metadata:
{{- if hasSuffix "-dev" .Release.Namespace }}
name: {{ .Values.HpaDev.name }}
namespace: {{ .Release.Namespace }}
{{- end }}
{{- if hasSuffix "-prd" .Release.Namespace }}
name: {{ .Values.HpaPrd.name }}
namespace: {{ .Release.Namespace }}
{{- end }}
spec:
scaleTargetRef:
kind: RunnerDeployment
{{- if hasSuffix "-dev" .Release.Namespace }}
name: {{ .Values.HpaDev.nameRunner }}
{{- end }}
{{- if hasSuffix "-prd" .Release.Namespace }}
name: {{ .Values.HpaPrd.nameRunner }}
{{- end }}
{{- if hasSuffix "-dev" .Release.Namespace }}
minReplicas: {{ .Values.HpaDev.minReplicas }}
maxReplicas: {{ .Values.HpaDev.maxReplicas }}
scaleDownDelaySecondsAfterScaleOut: {{ .Values.HpaDev.scaleDownDelaySecondsAfterScaleOut }}
metrics:
- type: {{ .Values.HpaDev.type }}
scaleUpThreshold: '{{ .Values.HpaDev.scaleUpThreshold }}' # The percentage of busy runners at which the number of desired runners are re-evaluated to scale up
scaleDownThreshold: '{{ .Values.HpaDev.scaleDownThreshold }}' # The percentage of busy runners at which the number of desired runners are re-evaluated to scale down
scaleUpAdjustment: {{ .Values.HpaDev.scaleUpAdjustment }} # The scale up runner count added to desired count
scaleDownAdjustment: {{ .Values.HpaDev.scaleDownAdjustment }} # The scale down runner count subtracted from the desired count
# Podemos usar os parametros de Factor ou Adjustment acima, mas não os dois juntos.
# scaleUpFactor: {{ .Values.HpaDev.scaleUpFactor }} # The scale up runner count added to desired count
# scaleDownFactor: {{ .Values.HpaDev.scaleDownFactor }} # The scale down runner count subtracted from the desired count
{{- end }}
{{- if hasSuffix "-prd" .Release.Namespace }}
minReplicas: {{ .Values.HpaPrd.minReplicas }}
maxReplicas: {{ .Values.HpaPrd.maxReplicas }}
scaleDownDelaySecondsAfterScaleOut: {{ .Values.HpaPrd.scaleDownDelaySecondsAfterScaleOut }}
metrics:
- type: {{ .Values.HpaPrd.type }}
scaleUpThreshold: '{{ .Values.HpaPrd.scaleUpThreshold }}' # The percentage of busy runners at which the number of desired runners are re-evaluated to scale up
scaleDownThreshold: '{{ .Values.HpaPrd.scaleDownThreshold }}' # The percentage of busy runners at which the number of desired runners are re-evaluated to scale down
scaleUpAdjustment: {{ .Values.HpaPrd.scaleUpAdjustment }} # The scale up runner count added to desired count
scaleDownAdjustment: {{ .Values.HpaPrd.scaleDownAdjustment }} # The scale down runner count subtracted from the desired count
# Podemos usar os parametros de Factor ou Adjustment acima, mas não os dois juntos.
# scaleUpFactor: {{ .Values.HpaPrd.scaleUpFactor }} # The scale up runner count added to desired count
# scaleDownFactor: {{ .Values.HpaPrd.scaleDownFactor }} # The scale down runner count subtracted from the desired count
{{- end }}To Reproduce
1. Create a runner
2. Watch runner container logsDescribe the bug
I'm using a GKE version: 1.26.10-gke.1101000. In my Dockerfile, I'm using: FROM summerwind/actions-runner:latest.
In values.yaml, I'm using:
image:
repository: "summerwind/actions-runner-controller"
actionsRunnerRepositoryAndTag: "summerwind/actions-runner:latest"
dindSidecarRepositoryAndTag: "docker:dind"
pullPolicy: IfNotPresent
# The default image-pull secrets name for self-hosted runner container.
# It's added to spec.ImagePullSecrets of self-hosted runner pods.
actionsRunnerImagePullSecrets: []
But when deploy is done, in GKE and get a lot of pods, with error: "Cannot connect to the Docker daemon at unix:///run/docker.sock. Is the docker daemon running?"
The pods are restarting with error in container "docker" with this message: "Cannot connect to the Docker daemon at unix:///run/docker.sock. Is the docker daemon running?". It died and start new with the same problem.
I've already follow this issue: 2490, but doesn't work.
Could help me please?
Describe the expected behavior
Doesn't get this situation with error, and running normally.
Whole Controller Logs
Nothing logs in controller with errors.Whole Runner Pod Logs
In pods I got the same error: "Cannot connect to the Docker daemon at unix:///run/docker.sock. Is the docker daemon running?"
I've tried to change $DOCKER_HOST to DOCKER_HOST="tcp://localhost:2375", but when I open the running that I can, a do echo $DOCKER_HOST and my response is: unix:///run/docker.sock. I don't think this can be the error.Additional Context
No response
Reacted by Nuru, Casey Robertson, Thiago Ribeiro, Jacob Lauritzen and Tafadzwa Lameck Nyamukapa
Reacted by Asaf Haim, darren-bell-optiva, Joe Haddad, Thiago Ribeiro and Abhinav Singh
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingcommunityCommunity contributionneeds triageRequires review from the maintainers
Activity
github-actions commentedon Feb 1, 2024
Hello! Thank you for filing an issue.
The maintainers will triage your issue shortly.
In the meantime, please take a look at the troubleshooting guide for bug reports.
If this is a feature request, please review our contribution guidelines.
asafhm commentedon Feb 2, 2024
I think I'm facing the same issue as well. I it happened to me a month ago and it went away on its own but I couldn't figure it out.
The logs of the
dockercontainer in the runner pods all emit this:I'm using GKE version 1.28, with the default dind container image in the helm chart.
asafhm commentedon Feb 4, 2024
Wonder if this has anything to do with the recent fix GKE has released for CVE-2023-6817
viniciusesteter commentedon Feb 4, 2024
I don’t think so. Because this errors in my cluster happening since 4/5 months ago.
asafhm commentedon Feb 4, 2024
Ended up following this workaround which made dind work again: #3159 (comment)
Still think dind needs to address this.
viniciusesteter commentedon Feb 5, 2024
But where manifest in helm, Can I put this arguments? Because I don't have a argument that has container docker. And I actually used image:
summerwind/actions-runner:latestin myDockerfileandsummerwind/actions-runner:latestin myvalues.yaml from deployment.yamlhelm.asafhm commentedon Feb 5, 2024
I agree, that's tricky.
I actually transitioned to the new runner-scale-set operator, where you can control the pod template, including the dind sidecar container.
jctrouble commentedon Feb 11, 2024
@asafhm Would you be willing to share the snippet of your
values.yaml(or helm command) where you specified thedindcontainer with the workaround environment variable?asafhm commentedon Feb 11, 2024
@jctrouble Here's a portion of the
values.yamlI use for thegha-runner-scale-setchart:The reason I added a lot more here than just the env var part is because the docs specify that if you need to modify something in the dind container, you have to have all its configuration in your values file and edit it there.
Not a clean solution yet I'm afraid, but at least it works well.
rekha-prakash-maersk commentedon Feb 11, 2024
Hi @asafhm I have tried your workaround but still facing the same issue. the issue started after upgrading new scale-set to its latest version. any other options to try ? Thanks!
The runner is starting fine, but the error appears if I run a workflow which has docker build step., so I am a bit clueless!
asafhm commentedon Feb 12, 2024
@rekha-prakash-maersk Did you verify that runner pods that come up have said env var in the dind container spec?
Also did you check the dind container logs?
Cannot connect to the Docker daemon at unix:///run/docker.sockcan result from a number of reasons.rekha-prakash-maersk commentedon Feb 13, 2024
Hi @asafhm , I found that dind container needed more resources for the docker build that was executed. thanks for the help!
sravula84 commentedon Apr 11, 2024
we are facing similar issue -
time="2024-04-11T22:08:59.214409763Z" level=info msg="Loading containers: start." │
│ time="2024-04-11T22:08:59.337082693Z" level=info msg="stopping event stream following graceful shutdown" error="" module=libcontainerd namespace=moby │
│ time="2024-04-11T22:08:59.337523532Z" level=info msg="stopping healthcheck following graceful shutdown" module=libcontainerd │
│ time="2024-04-11T22:08:59.337584737Z" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=plugins.moby │
│ failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to register "bridge" driver: unable to add return rule in DOCKER-ISOLATION-STAGE-1 chain: (iptables failed: iptables --wait -A DOCKER-ISOLATION-STAGE-1 -j RETURN: iptables v1.8.10 (nf_tables): RULE_APPEND failed (No such file or directory): rule in chain DOCKER-ISOLATION-STAGE-1 │
│ (exit status 4)) │
│ Stream closed EOF for arc-runners/arc-runner-set-qwwpf-runner-nffvc (dind)
any suggestion @rekha-prakash-maersk @asafhm
marc-barry commentedon Apr 18, 2024
I'm have the same issue on Google Cloud Platform on GKE when simply using:
I haven't adjusted any of the values.
rekha-prakash-maersk commentedon Apr 19, 2024
Hi @marc-barry , I have allocated more resource to CPU and memory for dind container like below, which resolved the issue for me
marc-barry commentedon Apr 19, 2024
@rekha-prakash-maersk thanks for that information. We've decided to move away from using runners on Kubernetes as the documentation isn't yet fully complete and we don't want to spend our time fighting infrastructure problems like we are experiencing with this controller. The concepts and ideas are pretty sound but the execution is challenging. For the time being, we have gone to bare VMs running Debian on GCP on both
t2a-standard-xfor our Arm64 builds andt2d-standard-xfor our Amd64 builds. We then have an image template that simply has Docker installed on the machine and the runner started with Systemd. I was able to get this all running in under an hour versus the challenges faced with the Actions Runner Controller.GitHub Actions is super convenient and that's why we use it. But if I find the need to bring our runners more and more then I'll switch us to Buildkite as I feel like their BYOC is a bit more developed (and I have a lot of experience with it).
sravula84 commentedon Apr 22, 2024
@rekha-prakash-maersk do we need to comment below sections ?
containerMode:
type: "dind"
Nuru commentedon May 23, 2024
I am seeing this, too, intermittently, running on AWS EKS, Kubernetes v1.29.3.
casey-robertson-paypal commentedon Aug 8, 2024
Same here. It's a very small percentage of jobs but I have yet to figure out why.