Skip to content

Artifact upload - Fails with Request Entity Too Large

I am having an issue with uploading artifacts after a stage. In the admin area, I have set the max upload size of artifacts to 400MB, but am still encountering a too large archive error. As you can see from the log below, the total size of the directory is 9MB, but it is still saying it is too large. This seems very strange to me, so I'm reporting it here.

The runner is on my centOS server and uses docker for it's executor

The project in question is located here https://gitlab.henriksen.is/espen/henriksen.is

Build log

$ du -sh _site
9.0M	_site
$ ls -lR _site
_site:
total 40
-rw-r--r--. 1 root root 5011 Sep  2 21:39 404.html
drwxr-xr-x. 2 root root   23 Sep  2 21:39 about
drwxr-xr-x. 6 root root   47 Sep  2 21:39 assets
-rw-r--r--. 1 root root 1150 Sep  2 20:35 favicon.ico
-rw-r--r--. 1 root root 1179 Sep  2 20:35 favicon.png
-rw-r--r--. 1 root root 1526 Sep  2 21:39 feed.xml
-rw-r--r--. 1 root root 1050 Sep  2 21:39 feed.xslt.xml
drwxr-xr-x. 2 root root   23 Sep  2 21:39 handelsbanken
-rw-r--r--. 1 root root 5617 Sep  2 21:39 index.html
drwxr-xr-x. 2 root root   23 Sep  2 21:39 posts
drwxr-xr-x. 2 root root   23 Sep  2 21:39 projects
-rw-r--r--. 1 root root   56 Sep  2 20:35 robots.txt
drwxr-xr-x. 2 root root   33 Sep  2 21:39 scripts
-rw-r--r--. 1 root root  700 Sep  2 21:39 sitemap.xml
drwxr-xr-x. 2 root root   23 Sep  2 21:39 tags

_site/about:
total 8
-rw-r--r--. 1 root root 7904 Sep  2 21:39 index.html

_site/assets:
total 12
drwxr-xr-x. 2 root root   21 Sep  2 21:39 css
drwxr-xr-x. 2 root root 4096 Sep  2 21:39 fonts
drwxr-xr-x. 3 root root 4096 Sep  2 21:39 img
drwxr-xr-x. 2 root root 4096 Sep  2 21:39 js

_site/assets/css:
total 56
-rw-r--r--. 1 root root 56540 Sep  2 21:39 main.css

_site/assets/fonts:
total 728
-rw-r--r--. 1 root root      1 Sep  2 20:35 da
-rw-r--r--. 1 root root  70807 Sep  2 20:35 fontawesome-webfont.eot
-rw-r--r--. 1 root root 365616 Sep  2 20:35 fontawesome-webfont.svg
-rw-r--r--. 1 root root 142072 Sep  2 20:35 fontawesome-webfont.ttf
-rw-r--r--. 1 root root  83588 Sep  2 20:35 fontawesome-webfont.woff
-rw-r--r--. 1 root root  66624 Sep  2 20:35 fontawesome-webfont.woff2

_site/assets/img:
total 8096
-rw-r--r--. 1 root root  508776 Sep  2 20:35 bg.jpg
-rw-r--r--. 1 root root 1777601 Sep  2 20:35 bg2.jpg
-rw-r--r--. 1 root root  269375 Sep  2 20:35 bg3.jpg
-rw-r--r--. 1 root root  137912 Sep  2 20:35 circle_profile.jpg
-rw-r--r--. 1 root root  710966 Sep  2 20:35 circle_profile.png
drwxr-xr-x. 2 root root    4096 Sep  2 21:39 favicons
-rw-r--r--. 1 root root 2299888 Sep  2 20:35 headshot.png
-rw-r--r--. 1 root root 2305076 Sep  2 20:35 headshot2.png
-rw-r--r--. 1 root root    3618 Sep  2 20:35 logo.png
-rw-r--r--. 1 root root  261809 Sep  2 20:35 placeholder-big.jpg

_site/assets/img/favicons:
total 36
-rw-r--r--. 1 root root  6585 Sep  2 20:35 apple-icon-114x114.png
-rw-r--r--. 1 root root  8544 Sep  2 20:35 apple-icon-144x144.png
-rw-r--r--. 1 root root  3656 Sep  2 20:35 apple-icon-72x72.png
-rw-r--r--. 1 root root 11409 Sep  2 20:35 apple-icon-precomposed.png

_site/assets/js:
total 156
-rw-r--r--. 1 root root 97362 Sep  2 20:35 jquery-1.12.0.min.js
-rw-r--r--. 1 root root  4981 Sep  2 20:35 jquery.dlmenu.min.js
-rw-r--r--. 1 root root  1782 Sep  2 20:35 jquery.fitvid.min.js
-rw-r--r--. 1 root root  3314 Sep  2 20:35 jquery.goup.min.js
-rw-r--r--. 1 root root 20266 Sep  2 20:35 jquery.magnific-popup.min.js
-rw-r--r--. 1 root root  7896 Sep  2 20:35 modernizr-3.3.1.custom.min.js
-rw-r--r--. 1 root root  1777 Sep  2 20:35 scripts.js
-rw-r--r--. 1 root root  8427 Sep  2 20:35 wow.min.js

_site/handelsbanken:
total 8
-rw-r--r--. 1 root root 6461 Sep  2 21:39 index.html

_site/posts:
total 8
-rw-r--r--. 1 root root 4931 Sep  2 21:39 index.html

_site/projects:
total 8
-rw-r--r--. 1 root root 5243 Sep  2 21:39 index.html

_site/scripts:
total 4
-rwxr-xr-x. 1 root root 492 Sep  2 20:35 import-ownertrust.sh

_site/tags:
total 8
-rw-r--r--. 1 root root 5123 Sep  2 21:39 index.html
Creating cache build/master...
WARNING: .bundle/: no matching files               
Archive is up to date!                             
Uploading artifacts...
_site/: found 55 matching files                    
ERROR: Uploading artifacts to coordinator... too large archive  id=50 responseStatus=413 Request Entity Too Large status=413 Request Entity Too Large token=AKoQT7os
FATAL: Too large                                   
ERROR: Build failed: exit code 1

.gitlab-ci

 image: "ruby:2.3"

before_script:
  - ruby -v
  - which ruby

stages:
  - verify_signature
  - build_and_test
  - deploy

verify_signature:
  stage: verify_signature
  script:
    - curl -s https://henriksen.is/public-key.gpg | gpg --import
    - scripts/import-ownertrust.sh "Namey McNameface" 6
    - git verify-commit $CI_BUILD_REF

build:
  stage: build_and_test
  cache:
    paths:
      - .bundle/
  artifacts:
    expire_in: 1 week
    paths:
      - _site/
  script:
    - bundle install --jobs $(nproc)  "${FLAGS[@]}"
    - bundle exec jekyll build
    - bundle exec htmlproofer ./_site --url-ignore henriksen.is --allow-hash-href
    - du -sh _site
    - ls -lR _site

deploy_job:
  stage: deploy
  dependencies:
    - build
  script:
    - make deploy
  when: manual