GitHub CodeBuild runners - job is not picked up by runner #173944
-
Hi, We are experiencing problems with GH runners hosted on AWS Codebuild:
This is happening randomly, but most of the jobs are failing. This is the second time we are having such issues. we had the similar problems about a month ago, runners were failing with similar symptoms for whole day. We are on GHE. Is anyone else experiencing this? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 3 replies
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
We are facing the same issue, what I have noticed is that the labels get applied correctly however the job stay queued and never matches with the runner. |
Beta Was this translation helpful? Give feedback.
-
We have a very similar issue but let me try to elaborate in case I can help, since we are facing a really weird one. We have the setup of ghe and codebuild runners. At some point in the last few days, on the newly created repos the codebuild runners would trigger and stuck on "Listening for jobs". The old repos would still have actions that would trigger codebuild runners that would get the job and run successfully, we got the "Listening for jobs" ONLY on the newly created repos. |
Beta Was this translation helpful? Give feedback.
-
I'm facing EXACTLY the same issue with Codebuild in AWS. This was working last week, so something must have changed either in the Github Enterprise API or the token workflow for runner registration. I'm using Github Enterprise Cloud with data residency (.ghe.com). |
Beta Was this translation helpful? Give feedback.
-
I can confirm that this time it is happening only with newly created repositories on hge.com. On already existing ones, jobs are processing fine. The issue still persists. |
Beta Was this translation helpful? Give feedback.
-
@lukas665 did you by any chance find a fix or a way around? |
Beta Was this translation helpful? Give feedback.
-
Hi @commixon It seems that changing RO permissions to RW on Actions solved problems on our side as well, now it works for newly created applications. GHE support also suggested checking the permissions for Actions, but they asked to check the if the 'view' permissions are granted:
But you are right, this does not explain why old repositories were working just fine. |
Beta Was this translation helpful? Give feedback.
@lukas665 we went through the same process. But in the meantime we found a potential fix (it is working now). If you are using a Github App with codebuild then apparently there was a missing permission in this app.
By adding Read-Write to the Actions permission it seemed to do the trick.
Now, this does not fully explain the weird situation with "old repos working, new ones stuck" but we are on GHE and AWS support and still trying to figure this out.