GitLab CI builds remains pending

为君一笑 提交于 2019-12-04 16:24:13

问题


We recently started to use GitLab-CI on the gitlab.com free service. At first everything went fine, but now, seems like we can't build our project anymore. The builds are shown as pending and doesn't do anything.

Here's what we have in our builds list:

And if we check the details of a build:

As you might notice, in the list, each build is assigned to a runner id, but in the details page, the runner section is blank.

At first, we thought it was just latency caused by gitlab.com ingrastructure, but it's really just stuck there...

EDIT

It's more than 1 year ago but I keep having notifications about this question. If I recall properly, the problem was due to GitLab itself. Follow the GitLab docs and make sure your setup is valid, and hope for the best !


回答1:


GitLab maxed out their shared runners but they have just finished adding more of them. Now GitLab has 12 shared runners. Take a look at this issue: https://gitlab.com/gitlab-org/gitlab-foss/issues/5543#note_3130561

Update

GitLab has moved to auto scaling Runners. If you're still hitting any issues it might be due to a different cause.




回答2:


I was stuck into same issue on my windows machine. I went to event viewer to get some logs of the service and found the error "listen_address not defined".

I followed below steps to fix it.

  1. Go to gitlab repository and edit the runner settings.
  2. You will find checkbox named "Indicates whether this runner can pick jobs without tags"
  3. Make sure the option is checked.

It works for me now.



来源:https://stackoverflow.com/questions/34625885/gitlab-ci-builds-remains-pending

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!