unexpected EOF error when ci Downloading artifacts
Summary
unexpected EOF error when ci Downloading artifacts
Steps to reproduce
part of .gitlab-ci.yml
# For `master` branch run `mvn deploy` automatically.
# Here you need to decide whether you want to use JDK7 or 8.
# To get this working you need to define a volume while configuring your gitlab-ci-multi-runner.
# Mount your `settings.xml` as `/root/.m2/settings.xml` which holds your secrets.
# See https://maven.apache.org/settings.html
deploy:jdk8:
# Use stage test here, so the pages job may later pickup the created site.
stage: deploy
before_script:
- export GITLAB_APPLICATION_NAME=`grep -oPm1 "(?<=<artifactId>)[^<]+" */pom.xml`
- export GITLAB_APPLICATION_VERSION=`grep -oPm1 "(?<=<version>)[^<]+" */pom.xml`
services:
- rabbitmq:3.6-alpine
script:
- mkdir -p dist/
- 'mvn $MAVEN_CLI_OPTS -DskipTests deploy'
- 'cp ${GITLAB_APPLICATION_NAME}/target/${GITLAB_APPLICATION_NAME}-${GITLAB_APPLICATION_VERSION}.jar dist/app.jar'
only:
- master
# Archive up the built documentation site.
cache:
paths:
- dist/
artifacts:
paths:
- dist/
image: maven:3.3.9-jdk-8
build:
stage: build_image
image: docker:latest
only:
- master
cache:
paths:
- dist/
services:
- docker:dind
script:
- cp dist/app.jar app.jar
- export IMAGE_TAG=$(echo -en $CI_COMMIT_REF_NAME | tr -c '[:alnum:]_.-' '-')
- docker login -u "$ALI_CR_USER" -p "$ALI_CR_PASSWORD" $ALI_CR_DOMAIN
- docker build --pull -t "$ALI_CR_DOMAIN$ALI_CR_REPO:$IMAGE_TAG" .
- docker push "$ALI_CR_DOMAIN$ALI_CR_REPO:$IMAGE_TAG"
Actual behavior
Downloading artifacts error
Relevant logs and/or screenshots
Running with gitlab-runner 10.0.0-rc.1 (6331f360)
on Rancher Docker Runner (796bdc85)
Using Docker executor with image docker:latest ...
Starting service docker:dind ...
Pulling docker image docker:dind ...
Using docker image docker:dind ID=sha256:1ab52967778e46d72867aa7cc962fa5aff6fc2fa56cf0564d49e392531853f7a for docker service...
Waiting for services to be up and running...
Using docker image sha256:3e86be9a716ba08f1de08751ab12343c64f09e4366335d8a76e08bcecafb5cd5 for predefined container...
Pulling docker image docker:latest ...
Using docker image docker:latest ID=sha256:5b7585e8dd70eadf71435f10a6490d8d17a950c49e86f48810b5bdc6219b2765 for build container...
Running on runner-796bdc85-project-93-concurrent-0 via 53220717e780...
Fetching changes...
Removing dc-microservice-service/target/
HEAD is now at 5c8955d
Checking out 5c8955df as master...
Skipping Git submodules setup
Checking cache for default...
Successfully extracted cache
Downloading artifacts for deploy:jdk8 (4476)...
ERROR: Downloading artifacts from coordinator... error error=unexpected EOF id=4476 responseStatus=200 OK token=oohSsswF
WARNING: Retrying...
ERROR: Downloading artifacts from coordinator... error error=unexpected EOF id=4476 responseStatus=200 OK token=oohSsswF
WARNING: Retrying...
ERROR: Downloading artifacts from coordinator... error error=unexpected EOF id=4476 responseStatus=200 OK token=oohSsswF
FATAL: invalid argument
ERROR: Job failed: exit code 1
Environment description
gitlab version 9.5.4 ce
docker-compose.yml
version: '2'
services:
gitlab-runner-config:
image: gitlab/gitlab-runner:alpine-v10.0.0-rc.1
stdin_open: true
volumes:
- /nas/data/docker/gitlab/gitlab-runner:/etc/gitlab-runner/
tty: true
command:
- register
- -n
- --url
- https://gitlab.example.com/
- --registration-token
- mytoken
- --tag-list
- docker
- --executor
- docker
- --description
- Rancher Docker Runner
- --docker-image
- docker:latest
- --docker-volumes
- /var/run/docker.sock:/var/run/docker.sock
- --docker-privileged
gitlab-runner:
image: gitlab/gitlab-runner:alpine-v10.0.0-rc.1
stdin_open: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
tty: true
volumes_from:
- gitlab-runner-config
command:
- run
Used GitLab Runner version
Running with gitlab-runner 10.0.0-rc.1 (6331f360) on Rancher Docker Runner (796bdc85) Using Docker executor with image docker:latest ...
Edited by Laoshancun