# Upload Artifact fails because of size

**URL:** <https://hub.mender.io/t/upload-artifact-fails-because-of-size/2887>\
**Category:** General Discussions\
**Created:** [November 24, 2020, 11:53am UTC](https://hub.mender.io/t/upload-artifact-fails-because-of-size/2887 "2020-11-24T11:53:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [October 5, 2021, 11:09pm UTC](https://hub.mender.io/t/upload-artifact-fails-because-of-size/2887/5 "2021-10-05T23:09:59Z")

</div>

Have you gone through your Golden Image to remove anything you don’t need, as there is normally an awful lot that can be removed to reduce the size of it without affecting functionality. Often there is a lot of caching of packages by the package manger as well as multiple kernels/modules, man page removal, swap file etc that take up a lot of unnecessary space. A 14GB compressed mender artifact does seems a little on the large size. Once you start auditing your root file system, you will often be surprised as to what’s consuming space that you were unaware of.

There’s a more in-depth discussion below on large image sizes.

> [@\[FATAL\] \[mender-convert-package\] You can try adjusting the MENDER\_STORAGE\_TOTAL\_SIZE\_MB variable to increase available space, or](https://hub.mender.io/t/fatal-mender-convert-package-you-can-try-adjusting-the-mender-storage-total-size-mb-variable-to-increase-available-space-or/3744/7):
>
> You will need to adjust the variables I mentioned above to make sure it all fits. You may also need to set IMAGE\_ROOTFS\_SIZE to “-1”. Drew

---

_[View the full topic](https://hub.mender.io/t/upload-artifact-fails-because-of-size/2887)._
