# Artifact upload error both from web (Network Error) and cli (failed with status 413)

**URL:** <https://hub.mender.io/t/artifact-upload-error-both-from-web-network-error-and-cli-failed-with-status-413/6291>\
**Category:** General Discussions\
**Tags:** mender-cli\
**Created:** [October 21, 2023, 2:42pm UTC](https://hub.mender.io/t/artifact-upload-error-both-from-web-network-error-and-cli-failed-with-status-413/6291 "2023-10-21T14:42:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueEcoLine](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@BlueEcoLine](https://hub.mender.io/u/BlueEcoLine)\
**Post date:** [October 21, 2023, 2:42pm UTC](https://hub.mender.io/t/artifact-upload-error-both-from-web-network-error-and-cli-failed-with-status-413/6291/1 "2023-10-21T14:42:05Z")

</div>

Hi, I am facing issues uploading a system image (with `.mender` extension) both in the Mender Hosted dashboard (eu region) and through the mender-cli interface.

The file is 4.1GB.

- If I try to use the Mender Hosted web interface to uplad it as a release, the upload progress resets each time it reaches 5-7% for several times and then it stops trying and states `Artifact couldn't be uploaded. Network Error`.
- If I try instead through `mender-cli`, each time that it reaches exaclty 97% it throws `FAILURE: artifact upload to 'eu.hosted.mender.io' failed with status 413`.

For the latter case, the error code 413 is, afaik, “content too large”, and indeed the 97% of the file is exactly 4096MB… so I think there is some max size limitation for an artifact, at least if using `mender-cli`.  
For the web intereface issue instead, I tried to upload the file from many networks (both from work, home and in a third place), but the error remains. It is probably on the server side, then.

How this two issues can be solved? I need at least a working procedure to update my devices.

---

<div class="post-metadata">

**Author:** ![marius-westgaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marius-westgaard/32/2045_2.png) [@marius-westgaard](https://hub.mender.io/u/marius-westgaard)\
**Post date:** [October 24, 2023, 12:57pm UTC](https://hub.mender.io/t/artifact-upload-error-both-from-web-network-error-and-cli-failed-with-status-413/6291/2 "2023-10-24T12:57:25Z")

</div>

I have the exactly same issue. it is currently blocking us from deploying any new releases to our devices that we just moved over to Mender Hosted.

We did not have this limit on the self hosted instance we were running and did not see anything about this in the Mender Hosted documentation.

---

<div class="post-metadata">

**Author:** ![BlueEcoLine](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@BlueEcoLine](https://hub.mender.io/u/BlueEcoLine)\
**Post date:** [October 24, 2023, 1:32pm UTC](https://hub.mender.io/t/artifact-upload-error-both-from-web-network-error-and-cli-failed-with-status-413/6291/3 "2023-10-24T13:32:47Z")

</div>

My current workaround is to change the disk compression algorithm to lmza, but I don’t think it will last for long, I still have many data to insert on my devices.

---

<div class="post-metadata">

**Author:** ![lramirez](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lramirez/32/1195_2.png) [@lramirez](https://hub.mender.io/u/lramirez)\
**Post date:** [October 25, 2023, 12:11am UTC](https://hub.mender.io/t/artifact-upload-error-both-from-web-network-error-and-cli-failed-with-status-413/6291/4 "2023-10-25T00:11:51Z")

</div>

My understanding is the [max size is 10G](https://github.com/mendersoftware/deployments/blob/c6361256f9811e69ea7f98971bdc1c1bd5dfa267/config.yaml#L112).  
I was able to reproduce your issue and created an internal report. We will keep you updated.  
Thanks for your report.

Luis

---

<div class="post-metadata">

**Author:** ![Kopern1k](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kopern1k/32/2527_2.png) [@Kopern1k](https://hub.mender.io/u/Kopern1k)\
**Post date:** [June 23, 2025, 8:21am UTC](https://hub.mender.io/t/artifact-upload-error-both-from-web-network-error-and-cli-failed-with-status-413/6291/6 "2025-06-23T08:21:35Z")

</div>

When I disconnected deployed devices from network while uploading image, web “Network error” disappears

Michal
