GitLab CI builds remains pending

2020-06-07 08:31发布

问题:

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.