gitlab-runner 9.0.0 is incompatible with gitlab 8.17.4 3d2890c
Summary
After upgrading the gitlab-ci-multi-runner to version 9.0.0
, it stops working with GitLab 8.17.4 3d2890c
. It works just fine with GitLab 9.0.0 cf020e6
. After downgrading the runner to 1.11.1
, it works with both GitLab versions:
sudo apt-get install gitlab-ci-multi-runner=1.11.1
Steps to reproduce
Install the above mentioned versions of GitLab server + runner.
Actual behavior
On my <project>/settings/ci_cd
page, the runner is shown as "offline" (grey circle), and the runner produces 404 messages in the syslog (see below). It doesn't pick up build jobs, and all my jobs are shown as "stalled".
(Of course, the green circle only becomes gray after the runner hasn't been seen for a couple of hours. The 404s in the syslog are a better indication of the problem.)
Expected behavior
The runner should be online.
Relevant logs and/or screenshots
Syslog on Runner:
Mar 29 09:57:13 osproject gitlab-runner[8374]: time="2017-03-29T09:57:13+02:00" level=warning msg="Checking for jobs... failed" runner=6676b643 status="404 Not Found" #012<nil>
Mar 29 09:57:16 osproject gitlab-runner[8374]: time="2017-03-29T09:57:16+02:00" level=warning msg="Checking for jobs... failed" runner=6676b643 status="404 Not Found" #012<nil>
Mar 29 09:57:19 osproject gitlab-runner[8374]: time="2017-03-29T09:57:19+02:00" level=warning msg="Checking for jobs... failed" runner=6676b643 status="404 Not Found" #012<nil>
(6676b643 is the runner's ID on the GitLab 8.17.4 3d2890c
server)
Environment description
I'm running a gitlab-ci-multi-runner on a server called osproject
. It is registered as a specific runner on two different GitLab servers that run different versions of GitLab CE:
osproject Executor=docker Token=6676b643********************** # GitLab 8.17.4 3d2890c : doesn't work with gitlab-ci-multi-runner 9.0.0
osproject Executor=docker Token=47725a7d********************** # GitLab 9.0.0 cf020e6 : works with gitlab-ci-multi-runner 9.0.0
gitlab-ci-multi-runner version 9.0.0 only works with the second server, but gitlab-ci-multi-runner 1.11.1 works with both.
Here's my docker info:
# docker info
Containers: 7
Running: 0
Paused: 0
Stopped: 7
Images: 39
Server Version: 17.03.0-ce
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 172
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 977c511eda0925a723debdc94d09459af49d082a
runc version: a01dafd48bc1c7cc12bdb01206f9fea7dd6feb70
init version: 949e6fa
Kernel Version: 3.16.0-0.bpo.4-amd64
Operating System: Debian GNU/Linux 7 (wheezy)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 3.873 GiB
Name: osproject
ID: LOU6:4NNG:46KB:ODJZ:KFZL:43FV:P2PH:FSQK:F765:5WQJ:DJ7G:IFYA
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No oom kill disable support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Used GitLab Runner version
Broken version:
gitlab-runner --version
Version: 9.0.0
Git revision: 08a9e6f
Git branch: 9-0-stable
GO version: go1.7.5
Built: Wed, 22 Mar 2017 16:29:52 +0000
OS/Arch: linux/amd64
Working version:
Version: 1.11.1
Git revision: a67a225
Git branch: 1-11-stable
GO version: go1.7.5
Built: Fri, 03 Mar 2017 12:35:58 +0000
OS/Arch: linux/amd64