Gitlba CI. Uploading large artifacts is failed.
Even with client_max_body_size
already set to 0.
Build log:
$ ls -lh testfile*
-rw-r--r--. 1 root root 100M Apr 1 14:29 testfile1
-rw-r--r--. 1 root root 100M Apr 1 14:29 testfile2
-rw-r--r--. 1 root root 100M Apr 1 14:29 testfile3
-rw-r--r--. 1 root root 100M Apr 1 14:30 testfile4
Uploading artifacts...
testfile*: found 4 matching files
ERROR: Uploading artifacts to coordinator... too large archive id=19 token=NDcRe__k
FATAL: Too large
ERROR: Build failed: exit code 1
Nginx and gitlab-workhorse logs:
$ grep -ir " 413 " /var/log/gitlab/*
/var/log/gitlab/gitlab-workhorse/current:2016-04-01_14:31:05.58570 gitlab.xxx.com @ - - [2016-04-01 10:31:00.840163263 -0400 EDT] "POST /ci/api/v1/builds/19/artifacts HTTP/1.1" 413 42 "" "Go-http-client/1.1" 4.744815
/var/log/gitlab/nginx/gitlab_access.log:xx.xx.xx.xx - - [01/Apr/2016:10:31:05 -0400] "POST /ci/api/v1/builds/19/artifacts HTTP/1.1" 413 42 "-" "Go-http-client/1.1"
$ grep -r client_max_body_size /etc/gitlab/gitlab.rb /var/opt/gitlab/nginx/conf/*
/etc/gitlab/gitlab.rb:nginx['client_max_body_size'] = '0'
/etc/gitlab/gitlab.rb:ci_nginx['client_max_body_size'] = '0'
/etc/gitlab/gitlab.rb:# mattermost_nginx['client_max_body_size'] = '250m'
/var/opt/gitlab/nginx/conf/gitlab-http.conf: client_max_body_size 0;
$ gitlab-rake gitlab:env:info
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.1.8p440
Gem Version: 2.5.1
Bundler Version:1.10.6
Rake Version: 10.5.0
Sidekiq Version:4.0.1
GitLab information
Version: 8.6.1
Revision: a96d737
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://gitlab.xxx.com
HTTP Clone URL: https://gitlab.xxx.com/some-group/some-project.git
SSH Clone URL: git@gitlab.xxx.com:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 2.6.11
Repositories: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git
Edited by Borys Borysenko