-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Network Timeouts #393
Comments
@michaelst Hey! Could you share your workflow yaml file that contains the job running |
Here is the workflow file, it works up to the docker build step on
I've been doing some more testing around that and it actually works to curl that url. This flow works on regular GitHub Actions. From looking at tickets with similar issues it has been a DNS issue. Is the dind image doing something weird with DNS?
Here is my Dockerfile
|
@michaelst Thanks! Does |
So the curl did work when inside of the Dockerfile, which container in the runner pod should I do that, it doesn't work in the docker container as it doesn't have curl installed and limited shell access. |
I'm also getting random timeouts on
|
@michaelst I think this kind of issue can happen when your network requires smaller MTU size. If you think it worth trying, would you mind trying #385 and try setting it to lower to adapt your environment? The feature is available in the |
Looks like that is my problem as eth0 has an MTU of 1450, however, how do I use the canary flag, I don't see that on docker and the latest docker image is 7 days ago, I am using the 0.9.0 version chart. |
@michaelst Thanks for confirming. Re docker image tag, it's about |
I'm getting this error with the canary image installed trying to setup the RunnerDeployment
|
@michaelst Would you mind removing |
ok deleting those allowed the pods to deploy, however, docker0 still has 1500
and I do see this configured on the pod now
|
@michaelst Ah, seems like we've accidentally committed some wrong code there. The env var name must be just 46ca924#diff-f0d17d25b8858cbb2b4871bde93cb452e3a7f84ef75a00e9f7026949610915fbR37 cc/ @bkimbrough88 |
Ok I manually set the mtu on the runner pods and was able to get
|
looks like that may be due to this showing up when the docker build starts and using an MTU of 1500
|
@michaelst Thanks for testing/additional info! I thought it might be due to that additional docker network being created by some process still receiving MTU of 1500 somehow (if so that's Perhaps giving To do so, you'll probably need to create your own dind image with something like the below:
The custom dind image can be passed to actions-runner-controller via the You may prefer trying our "dind within runner container" option: https://github.com/summerwind/actions-runner-controller#runner-with-dind. That one doesn't require you to set |
this is what ended up working for me
|
@michaelst Thanks a lot for sharing! I'll definitely add the ability to set optional |
I think I have the same problem. My builds fail with network timeouts. I'm deploying the actions-runner-controller with helm. How do I proceed to override the MTU? I read through this thread but couldn't follow it completely. |
@xiwenc Unfortunately you need to build a custom dind image from a Dockerfile like
and specify it via the |
@mumoshu Thanks for summarizing it. For future reference, helm users can override the docker image with for instance:
|
@xiwenc Thanks for sharing! |
#421 should make the |
#421 has been merged and |
Hi @mumoshu I'm having this same problem using the latest version. I'm not sure where I'm supposed to add |
Hey @acrogenesis 👋 Please see https://github.com/actions/actions-runner-controller/blob/master/TROUBLESHOOTING.md#outgoing-network-action-hangs-indefinitely if you have not done so yet! |
Thank you that helped me a lot! |
When running a docker build network requests made inside the Dockerfile are blocked. It pulls the FROM image just fine. I'm not sure what info would help debug this so just let me know.
The text was updated successfully, but these errors were encountered: