CI jobs just stop with "Job Suceeded" status. No error.
Summary
I run a pipeline with only one job. It simply pulls several images from docker hub. When I run it just stops in the middle of pulling from docker hub with 'Job succeeded' status and without an error.
Steps to reproduce
Run this job:
### Pre-Build ###
k8-Pre-Build:
services:
- docker:dind
image: docker:latest
stage: Pre-Build
script:
- docker pull golang:1.9-alpine
- docker pull mhart/alpine-node
- docker pull graze/php-alpine
- docker pull spotify/alpine
- docker pull bashell/alpine-bash
- docker pull zzrot/alpine-ghost
- docker pull rawmind/alpine-traefik:1.6.3-0
I deployed a gitlab-runner using the helm chart [https://gitlab.com/charts/gitlab-runner] on Kubernetes version
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.7",....}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.9",....}.
I have my projects on self-hosted GitLab Enterprise Edition 10.8.4-ee f80a528
.
Actual behavior
The job succeesfully finishes even that there are a lot of commands left to execute. I have noticed that ususally the job ends around the completion of the first minute of execution.
Expected behavior
The expected behavior is for the job to succeed when all the commnds have been executed. The expected behavior was the norm, until it wasn't for no apparent reason.
Relevant logs and/or screenshots
the build log
Running with gitlab-runner 11.3.0~beta.673.gfb161916 (fb161916)
on runner-gitlab-runner-9f4cb8847-zqh5s 5416a3fd
Using Kubernetes namespace: default
Using Kubernetes executor with image docker:latest ...
Waiting for pod default/runner-5416a3fd-project-32-concurrent-0lf9xs to be running, status is Pending
Waiting for pod default/runner-5416a3fd-project-32-concurrent-0lf9xs to be running, status is Pending
Running on runner-5416a3fd-project-32-concurrent-0lf9xs via runner-gitlab-runner-9f4cb8847-zqh5s...
Cloning repository...
Cloning into '/some/repo/demo-fe'...
Checking out c6f8ae9a as merged...
Skipping Git submodules setup
1.9-alpine: Pulling from library/golang
8e3ba11ec2a2: Pulling fs layer
8e6b2bc60854: Pulling fs layer
3d20cafe6dc8: Pulling fs layer
--- snipped ---
Digest: sha256:92c6399a70040523d3b4b9574e3f8addc8f31b1ebf289b4a7d31cc7efd984efb
Status: Downloaded newer image for bashell/alpine-bash:latest
Using default tag: latest
latest: Pulling from zzrot/alpine-ghost
6d6a6a7dae29: Pulling fs layer
65015b9de793: Pulling fs layer
1114cf8db753: Pulling fs layer
7204e63dafc6: Pulling fs layer
64b942612f3e: Pulling fs layer
c896bf332b09: Pulling fs layer
d25035db5317: Pulling fs layer
64b942612f3e: Waiting
7204e63dafc6: Waiting
c896bf332b09: Waiting
d25035db5317: Waiting
1114cf8db753: Verifying Checksum
1114cf8db753: Download complete
6d6a6a7dae29: Verifying Checksum
65015b9de793: Verifying Checksum
65015b9de793: Download complete
64b942612f3e: Verifying Checksum
64b942612f3e: Download complete
c896bf332b09: Verifying Checksum
c896bf332b09: Download complete
7204e63dafc6: Verifying Checksum
7204e63dafc6: Download complete
6d6a6a7dae29: Pull complete
d25035db5317: Verifying Checksum
d25035db5317: Download complete
65015b9de793: Pull complete
1114cf8db753: Pull complete
Job succeeded
the runner log
λ kubectl logs runner-gitlab-runner-9f4cb8847-zqh5s
WARNING: Running in user-mode.
WARNING: The user-mode requires you to manually start builds processing:
WARNING: $ gitlab-runner run
WARNING: Use sudo for system-mode:
WARNING: $ sudo gitlab-runner...
Registering runner... succeeded runner=QXqDP_KQ
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!
Starting multi-runner from /home/gitlab-runner/.gitlab-runner/config.toml ... builds=0
WARNING: Running in user-mode.
WARNING: Use sudo for system-mode:
WARNING: $ sudo gitlab-runner...
Configuration loaded builds=0
WARNING: 'metrics_server' configuration entry is deprecated and will be removed in one of future releases; please use 'listen_address' instead
Metrics server listening at [::]:9252
Checking for jobs... received job=6072 repo_url=http://my-gitlab-url.com/some/project/demo-fe.git runner=5416a3fd
Job succeeded job=6072 project=32 runner=5416a3fd
Environment description
- It is a self-hosted GitLab Enterprise Edition 10.8.4-ee f80a528 .
- I use kubernetes executor as configured from the Helm chart.
Used GitLab Runner version
Running with gitlab-runner 11.3.0~beta.673.gfb161916 (fb161916)
on runner-gitlab-runner-9f4cb8847-zqh5s 5416a3fd
Using Kubernetes namespace: default
Using Kubernetes executor with image docker:latest ...
...
Running on runner-5416a3fd-project-32-concurrent-0lf9xs via runner-gitlab-runner-9f4cb8847-zqh5s...
I have the same results with different gitlab-runner image tags.