Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase maximum artifacts size for Gitlab on-premises

We've installed Gitlab on-premises, however someone else did the installation so I don't know as much about configuring the runners, etc. A pipeline failed due to the following error:

Uploading artifacts...
app/build/outputs/apk/debug/app-debug.apk: found 1 matching files
app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk: found 1 matching files
ERROR: Uploading artifacts to coordinator... too large archive id=13832 responseStatus=413 Request Entity Too Large status=413 Request Entity Too Large token=fCysmH9H
FATAL: Too large
ERROR: Job failed: exit code 1

Where/how do I configure the allowable artifact size?

like image 429
Michael Osofsky Avatar asked Aug 05 '19 23:08

Michael Osofsky


People also ask

Where are GitLab build artifacts stored?

The artifacts are stored by default in /home/git/gitlab/shared/artifacts . Save the file and restart GitLab for the changes to take effect.

What are GitLab pipeline artifacts?

Pipeline artifacts are files created by GitLab after a pipeline finishes. Pipeline artifacts are different to job artifacts because they are not explicitly managed by . gitlab-ci. yml definitions. Pipeline artifacts are used by the test coverage visualization feature to collect coverage information.

Where is GitLab admin area?

If you are an administrator, you can access the Admin Area by visiting /admin on your self-managed instance. You can also access it through the UI: GitLab versions 14.0 and later: on the top bar, select Menu > Admin. GitLab versions 13.12 and earlier: on the top bar, select the Admin Area icon ( ).


1 Answers

I was able to solve my problem after finding https://gitlab.com/gitlab-org/gitlab-runner/issues/2584. It suggests increasing maximum artifacts size on the on-prem instance of Gitlab. Here are the steps that worked for me:

  1. Click Admin Area (top of Gitlab on-prem screen)
  2. Click Settings

    1. The direct link, assuming the on-prem instance is hosted at gitlab.MYCOMPANY.com is: https://gitlab.MYCOMPANY.com/admin/application_settings/ci_cd
  3. Expand "Continuous Integration and Deployment"

  4. Set the "Maximum artifacts size (MB)"

This assumes your login credentials allow you to see the Admin Area.

like image 169
Michael Osofsky Avatar answered Oct 08 '22 20:10

Michael Osofsky