-
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
Could not run RunnerDeployment with organization setting #60
Comments
@rezmuh Hey! Maybe there's any issue in your workflow definition? Would u mind sharing it? To me, a docker run like this one, in a job on a self-hosted runner, just works: https://github.com/mumoshu/runnertest/blob/master/.github/workflows/test.yaml#L18 |
Hi, this is the workflow definition I tried to run.
|
@rezmuh Thanks! Perhaps it has something to do with GH Actions' Would you mind running:
|
still the same. I even removed the services just to see if it would build without it. But it still stopped at the same step. However, I found another error from the annotations: Perhaps it has something to do with how my Kubernetes is setup? Does it require certain type of network that my kubernetes doesn't support? If it any helps, my Kubernetes cluster is on EKS (version v1.13) and was installed through |
@rezmuh Would you mind confirming that you do know that any changes to workflow yaml must be in the |
@mumoshu no, i wasn't aware that changes to workflow yaml must be in |
btw, i just tested to create a self-hosted runner on a separate EC2 instance and I got the same error. I fixed it by adding a Docker daemon and add the user group into a So I presume this runner has Docker in Docker inside Kubernetes? Then I guess the issue is that the pod / runner could not connect to Docker in Docker? |
Thanks. I think we're close. Yes, it's a dind inside a K8s pod. Each one-shot runner pod has a sidecar container that's named Even though I'm still unable to reproduce your exact issue, the user/group settings seem not "correct" between the runner and the dockerd containers. In
Where in
For me, it seems to be "accidentally" working due to that the docker.sock has What're outputs of |
let me try to reproduce this in a few hours. However, is it possible to make |
@rezmuh Yeah probably. Is there any "reserved" gid for the |
Too bad that adding |
Well, how about adding the runner user to
More concretely, how about adding cc/ @summerwind |
sorry for the late response. weird that I see the ids very similar to yours: on
and on the
|
Btw here's some errors I saw from docker container log: https://gist.github.com/rezmuh/ea44373ff09112fe2368265c7d9e0c5b Not sure if it helps |
@rezmuh Thanks! That helps. So our user commands like I'm now curious if this has something to do with I tried to reproduce your error on EKS nodes using this workflow definition, but has no luck. For me it throws a different error: Give the above information, do you have any idea on how I can reproduce your issue? |
JFYI, with https://github.com/mumoshu/runnertest/blob/master/.github/workflows/test.yaml#L1 |
@rezmuh Which version of actions-runner-controller are you using? |
Not sure if I follow the question. But I installed it using:
Then I used Github Personal Access Token, then I used a RunnerDeployment to deploy (as shown in the beginning of the issue body) But i don't think the issue comes from |
@rezmuh Thanks. I tried to reproduce it using both the latest release of actions-runner-controller and a prerelease version of it, but had no luck. I'm using a personal access token, and a RunnerDeploment, too. So probably that's not the issue. All I can say is that this can happen when our pods or clusters have different configurations. How's your EKS cluster created? WIth eksctl, cdk, or anything else? Can you still reproduce the problem on K8s 1.15 or greater? I'm using eksctl 0.22.0 and K8s 1.16. |
i created using eksctl but on an older version |
I also tried to create a new cluster in EKS with the latest version but got the same error :( |
Btw, i have figured this out now. Looks like I needed to create a custom image on for the action runners. So this now works fine. |
@rezmuh Yes, those various "no such file or directory" errors are due to that your custom job image specified via So apparently your original issue has been caused by older versions of K8s, which was good to know! Thank you so much for your patience and help! |
Hey @rezmuh & @mumoshu I was hoping to pick your brain on this since I am having the same issue as rezmuh mentioned here: #60 (comment) I am also using a custom image for my runner and my workflow has the
When I replace my custom runner image with the |
@erikkn Hey! Have you tried installing nodejs runtime ( |
Hey @mumoshu! Thank you for your reply :)! Yes, I did install the |
In the light of full transparency, here is my Docker sidecarContainer stdout:
I stumbled upon this (actions/checkout#334) issue, but the |
@erikkn Thanks for the report! I'm now reading actions/checkout#334 (comment) and wondering if we need to copy all the deps included in the actions runner's release archive into our runner image, and provide missing shared libraries. Probably it takes a few days for me to finish that. Until then, it would be great if you could keep using checkout v1 |
Thanks a lot! I am quite new to this scene, but I am very keen to help out where I can, please let me know if there is anything. |
Running into the same issue with the Let me know if you want to sync-up about those libraries / or if you have a list somewhere so I can try to help you tackle this. |
Hi, I just installed this for my organization and I already saw that the runners are running:
And the runners are registered within the organization as well as shown below.
And this is how I installed the runners:
However, the actions could not be run. This was the error I got from the action log
It looks like I must have missed a setting somewhere?
The text was updated successfully, but these errors were encountered: