# Writer: error writing header, Writer: can not store header-info

**URL:** <https://hub.mender.io/t/writer-error-writing-header-writer-can-not-store-header-info/3990>\
**Category:** General Discussions\
**Created:** [August 10, 2021, 12:46pm UTC](https://hub.mender.io/t/writer-error-writing-header-writer-can-not-store-header-info/3990 "2021-08-10T12:46:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![w.cheema](https://avatars.discourse-cdn.com/v4/letter/w/48db29/32.png) [@w.cheema](https://hub.mender.io/u/w.cheema)\
**Post date:** [August 10, 2021, 12:46pm UTC](https://hub.mender.io/t/writer-error-writing-header-writer-can-not-store-header-info/3990/1 "2021-08-10T12:46:17Z")

</div>

Hi everyone, I am pretty new to Mender so would like some help with this error. Basically my setup is

A Ubuntu 18.04 device with a mender client.  
A hosted mender server.

I am trying to do application updates only using a Docker image that is pulled from AWS ECR. A ‘hello-world’ docker image is stored on my AWS ECR and I use the amazon-ecr-credential-helper for authentication. But when I try to create the artifact I get the following error:

./docker-artifact-gen -n ${ARTIFACT\_NAME} -t ${DEVICE\_TYPE} -o ${OUTPUT\_PATH} ${DOCKER\_IMAGES}  
latest: Pulling from hello-world  
Digest: sha256:1b26826f602946860c27xxxxxxxxxxx  
Status: Image is up to date for [9972xxxxxxx.dkr.ecr.eu-central-1.amazonaws.com/hello-world:latest](http://9972xxxxxxx.dkr.ecr.eu-central-1.amazonaws.com/hello-world:latest)  
[9972xxxxxxxx.dkr.ecr.eu-central-1.amazonaws.com/hello-world:latest](http://9972xxxxxxxx.dkr.ecr.eu-central-1.amazonaws.com/hello-world:latest)  
writeArtifactV3: writing header: writer: error writing header: writer: can not store header-info

Any clue what is going on ?

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [August 11, 2021, 9:43am UTC](https://hub.mender.io/t/writer-error-writing-header-writer-can-not-store-header-info/3990/2 "2021-08-11T09:43:39Z")

</div>

Hey @w.cheema

Do you have the possibility to recompile mender-artifact with [this patch](https://github.com/mendersoftware/mender-artifact/pull/347/files), and then retry? Unfortunately the real error message is hidden, so we cannot see why it failed.

If you have the Go compiler installed, it should be a simple matter of cloning the repository, applying that patch, and running `make`. Then make sure your `PATH` points to that binary.

---

<div class="post-metadata">

**Author:** ![w.cheema](https://avatars.discourse-cdn.com/v4/letter/w/48db29/32.png) [@w.cheema](https://hub.mender.io/u/w.cheema)\
**Post date:** [August 11, 2021, 1:36pm UTC](https://hub.mender.io/t/writer-error-writing-header-writer-can-not-store-header-info/3990/3 "2021-08-11T13:36:57Z")

</div>

@kacf thanks for the help/patch but (un)fortunately the error went away and I cannot recreate it. I did too many things and have no idea what solved it and what was casing it.
