Gitlab-ci-multi-runner 9.0 hangs after update on a shell executor.
Summary
After updating to latest gitlab-ce 9.0.0 and gitlab-runner-9.0, pipeline jobs on shell executor started to hangs forever with warn message in syslogs of the gitlab-runner host. This was working fine earlier with gitlab-multi-runner 1.11.1. To resolve this we had to downgrade gitlab-ci-multi-runner from 9.0.0 to 1.11.1. upon downgrade it works well as expected.
Steps to reproduce
-
configure a gitlab-ci-multi-runner 1.11.1 shell executor along with gitlab-8.17.1,
-
Verify that pipeline runs as expected.
-
once the pipeline is set and works as expected, upgrade both gitlab-ce to 9.0.0 and multi-runner to 9.0.0.
-
try to execute a job. This is result in gitlab runner hanging forever.
gitlab-ci.yml
---
variables:
CI_DEBUG_TRACE: "true"
INSTALL_PROFILE: profile1
PROJECT: project2
REPO: $CI_BUILD_REPO
after_script:
- "echo 'after script placeholder'"
before_script:
- "echo 'before script placeholder'"
stages:
- build
- test
- deploy
- cleanup
job_build_1:
except:
- project1
only:
- qa
- triggers
- master
script:
- build.sh
stage: build
when: on_success
job_delete_1:
environment:
name: qa
script:
- delete1.sh
stage: deploy
when: manual
job_delete_2:
only:
- triggers
script:
- delete2.sh
stage: deploy
job_deploy_1:
environment:
name: qa
script:
- deploy1.sh
stage: deploy
job_test_1:
allow_failure: true
script:
- test.sh
stage: test
Actual behavior
pipeline job hangs forever and nothing is observed in git-lab coordinator
Expected behavior
Job should be running and logs to appear in gitlab coordinator
Relevant logs and/or screenshots
#33 (closed)[33mrunner#033[0m= #33 (closed)[33mstatus#033[0m=Error decoding json payload json: cannot unmarshal array into Go value of type string#12 (closed)
Environment description
GitLab information Version: 9.0.0 Revision: cf020e6
Custom Installation. Ubuntu 14 LTS, with gitlab -9.0.0 and gitlab-ci-multi-runner-9.0 with Shell executor.
Used 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