14

Hello I got this error at the installation, when I use the command "gitlab-runner run" or "gitlab-runner start":

ERRO[0000] Docker executor: prebuilt image helpers will be loaded from /var/lib/gitlab-runner

The strange thing about it is, I using a shell runner. I also tried on another server with no problems. Even I tried it with a docker build and without.

I installed via

apt install gitlab-runner

Also I upgraded it and updated also. Rebuild the server (digitalocean droplet Ubuntu20.04)) and jep ... dont know what is going on.

Here also some output og the gitlab-runner:

root@Server:~# gitlab-runner verify
ERRO[0000] Docker executor: prebuilt image helpers will be loaded from /var/lib/gitlab-runner.
Running in system-mode.

Verifying runner... is alive                        runner=xVNzfox5

root@Server:~# gitlab-runner list
ERRO[0000] Docker executor: prebuilt image helpers will be loaded from /var/lib/gitlab-runner.
Listing configured runners                          ConfigFile=/etc/gitlab-runner/config.toml
test                                                Executor=shell Token=JustAToken
URL=https://gitlab.com/

All I found about this error was about docker runner, but like I said I use a shell runner.

Thanks if someone can help.

MaTok
  • 353
  • 3
  • 16

3 Answers3

13

Using this command apt-cache policy gitlab-runner, you will notice that only version 11.2.0 of gitlab-runner is available on the repositories, which is not supported by Gitlab.

Follow the official documentation to install the latest version 14.2.0.

$ sudo curl -L --output /usr/local/bin/gitlab-runner "https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64"
$ sudo chmod +x /usr/local/bin/gitlab-runner
$ sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
$ # Optional sudo rm /etc/systemd/system/gitlab-runner.service
$ sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
farch
  • 315
  • 4
  • 14
JanPo
  • 345
  • 2
  • 8
0

I have the same problem since the last update of gitlab-cc.

Found this related post which helped:

Gitlab-runner without Docker

So just disable shared runners (until someone fixes this issue ;)

pat
  • 41
  • 3
0

I was having the same problem with gitlab-runner version 13.x.

Updating to version 14.2.0 solved the problem.

user2809057
  • 23
  • 1
  • 1
  • 5
  • To update, if you can't update manually to 14.x (such as with raspberry pi), go to https://gitlab-runner-downloads.s3.amazonaws.com/latest/index.html and pick the correct package. For raspberry pi you want to do `curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_armhf.deb"` followed by `sudo dpkg -i gitlab-runner_armhf.deb` – ekuusi Mar 22 '22 at 15:23