I’m using GitLab Community Edition 8.13.1 91f25c2, trying to upload artifacts over 100MB in size after a build in CI and I’m getting an 413 error of Entity Too Large:
++ /usr/bin/gitlab-ci-multi-runner artifacts-uploader --url http://xxx.xxx.xxx/ci --token xxxxxxxxxxxxxxxxxxxx --id 136 --path ./testfile
./testfile: found 1 matching files
ERROR: Uploading artifacts to coordinator… too large archive id=136 responseStatus=413 Request Entity Too Large status=413 Request Entity Too Large token=DHcYYyyx
FATAL: Too large
ERROR: Build failed: exit status 1
I googled around before posting here and saw a couple of articles that recommended changing the Maximum Attachment Size in Settings (which I set to 400MB) and to set the client_max_body_size in /etc/gitlab/gitlab.rb:
nginx[‘client_max_body_size’] = ‘400M’
I also tried setting the client_max_body_size to 0 also, and it still didn’t work. I’d do a gitlab-ctl reconfigure and then check the /var/opt/gitlab/nginx/conf/gitlab-http.conf file to make sure the client_max_body_size parameter was indeed updated and it was each time. I’m able to upload anything under 100MB but as soon it goes over 100MB I get the too large archive error above.
Any other pointers on where to look? It almost seems like changing the value in the Settings for Maximum Attachment Size isn’t actually doing anything.