Skip to content

ERROR: Uploading artifacts

Summary

I have ERROR: Uploading artifacts when I have multiple files. I have not the error if I upload only an artifact file.

Steps to reproduce

I have a runner in a PC (shell, not docker) different to Gitlab Server.

before_script:
  
stages:
  - UnitTest

Doc-job:
  stage: UnitTest
  script:
    - cd lib/doc-gen
    - doxygen Doxyfile
    - cd ../../doc/latex
    - make pdf
  artifacts:
   paths:
    - ./doc/html/*.*
    - ./doc/latex/*.pdf

Relevant logs and/or screenshots

I have the error:

Uploading artifacts...
./doc/html/*.*: found 28 matching files            
./doc/latex/*.pdf: found 1 matching files          
ERROR: Uploading artifacts to coordinator... error  error=couldn't execute POST against http://xxx/gitlab/ci/api/v1/builds/324/artifacts?: Post http://xxx/gitlab/ci/api/v1/builds/324/artifacts?: read tcp 10.0.2.15:40542->10.20.1.12:80: read: connection reset by peer id=324 token=vNXyUsMt
WARNING: Retrying...                               
ERROR: Uploading artifacts to coordinator... error  error=couldn't execute POST against http://xxx/gitlab/ci/api/v1/builds/324/artifacts?: Post http://xxx/gitlab/ci/api/v1/builds/324/artifacts?: read tcp 10.0.2.15:40544->10.20.1.12:80: read: connection reset by peer id=324 token=vNXyUsMt
WARNING: Retrying...                               
ERROR: Uploading artifacts to coordinator... error  error=couldn't execute POST against http://xxx/gitlab/ci/api/v1/builds/324/artifacts?: Post http://xxx/gitlab/ci/api/v1/builds/324/artifacts?: read tcp 10.0.2.15:40546->10.20.1.12:80: read: connection reset by peer id=324 token=vNXyUsMt
FATAL: invalid argument                            
ERROR: Job failed: exit status 1

Used GitLab Runner version

cruiz@cruiz-pc:~/Repositorio/FPGA_DF$ gitlab-runner --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