Artifact upload stalls, every 4th or 5th build
Summarize the bug encountered concisely To pass a docker container between my stages, I used docker save, then save it to my artifact upload folder. At the point of artifact upload it sometimes stalls (every 4th or 5th build). The container is just under 1 gig.
Steps to reproduce
stage: build script: - docker build -t sheepdipper . - mkdir image - docker save sheepdipper > image/sheepdipper.tar when: on_success retry: 3 artifacts: paths: - image
This is my build stage it stalls at the artifact upload piece.
Build stalls intermittently but once it's stalled it won't succeed, 982 minutes longest I've left it.
build successfully uploads artifacts
Relevant logs and/or screenshots
Step 13/14 : RUN mkdir -p /import && mkdir -p /tests/workspace && mkdir -p /root/tmp && mkdir /root/keys && mkdir /root/.ssh ---> Running in f1f4ae8b433a Removing intermediate container f1f4ae8b433a ---> 9ca1167fbf3c Step 14/14 : ENTRYPOINT ["bash","/import.sh"] ---> Running in 6db5f95f879a Removing intermediate container 6db5f95f879a ---> c2842dbe4d64 Successfully built c2842dbe4d64 Successfully tagged sheepdipper:latest $ mkdir image $ docker save sheepdipper > image/sheepdipper.tar Uploading artifacts... image: found 2 matching files ERROR: Uploading artifacts to coordinator... error error=couldn't execute POST against https://gitlab.com/api/v4/jobs/42435268/artifacts?: Post https://gitlab.com/api/v4/jobs/42435268/artifacts?: write tcp 172.17.0.3:54796->18.104.22.168:443: write: connection reset by peer id=42435268 token=REDACTED WARNING: Retrying... ERROR: Uploading artifacts to coordinator... error error=couldn't execute POST against https://gitlab.com/api/v4/jobs/42435268/artifacts?: Post https://gitlab.com/api/v4/jobs/42435268/artifacts?: write tcp 172.17.0.3:55148->22.214.171.124:443: write: connection reset by peer id=42435268 token=REDACTED WARNING: Retrying... ERROR: Job failed: canceled
Using the docker in docker runner on gitlab.com. From here: https://docs.gitlab.com/ce/ci/docker/using_docker_build.html
sudo gitlab-runner register -n \ --url https://gitlab.com/ \ --registration-token REGISTRATION_TOKEN \ --executor docker \ --description "My Docker Runner" \ --docker-image "docker:latest" \ --docker-privileged
Used GitLab Runner version
Version: 10.2.0 Git revision: 0a75cdd1 Git branch: 10-2-stable GO version: go1.8.3 Built: Wed, 22 Nov 2017 09:19:04 +0000 OS/Arch: linux/amd64