# Error encountered while running 'mender install' with .mender artifact

**URL:** <https://hub.mender.io/t/error-encountered-while-running-mender-install-with-mender-artifact/7805>\
**Category:** General Discussions\
**Created:** [May 31, 2025, 6:25pm UTC](https://hub.mender.io/t/error-encountered-while-running-mender-install-with-mender-artifact/7805 "2025-05-31T18:25:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepika](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@Deepika](https://hub.mender.io/u/Deepika)\
**Post date:** [May 31, 2025, 6:25pm UTC](https://hub.mender.io/t/error-encountered-while-running-mender-install-with-mender-artifact/7805/1 "2025-05-31T18:25:28Z")

</div>

I am reaching out to seek assistance with an issue I encountered while attempting to install a mender artifact on my device using the ‘mender install’ command.  
When executing the below command :  
mender install ./myapp-v2-arm64-artifact.mender  
I receive the following error:  
root@h3ulcb:~/Docker# mender install ./myapp-v2-arm64-artifact.mender  
INFO[0000] Loaded configuration file: /var/lib/mender/mender.conf  
INFO[0000] Loaded configuration file: /etc/mender/mender.conf  
WARN[0000] Could not resolve path link: /dev/mmcblk0p2 Attempting to continue  
WARN[0000] Could not resolve path link: /dev/mmcblk0p3 Attempting to continue  
INFO[0000] Output (stderr) from command “fw\_printenv”: Cannot read environment, using default  
INFO[0000] Output (stderr) from command “fw\_printenv”: Cannot read default environment from file  
INFO[0000] Output (stderr) from command “fw\_printenv”: Cannot read environment, using default  
INFO[0000] Output (stderr) from command “fw\_printenv”: Cannot read default environment from file  
ERRO[0000] Failed to read the current active partition: No match between boot and root partitions.: exit status 243  
WARN[0000] Could not resolve path link: /dev/mmcblk0p2 Attempting to continue  
WARN[0000] Could not resolve path link: /dev/mmcblk0p3 Attempting to continue  
INFO[0000] Output (stderr) from command “fw\_printenv”: Cannot read environment, using default  
INFO[0000] Output (stderr) from command “fw\_printenv”: Cannot read default environment from file  
INFO[0000] Output (stderr) from command “fw\_printenv”: Cannot read environment, using default  
INFO[0000] Output (stderr) from command “fw\_printenv”: Cannot read default environment from file  
ERRO[0000] Failed to read the current active partition: No match between boot and root partitions.: exit status 243  
INFO[0000] Start updating from local image file: [./myapp-v2-arm64-artifact.mender]  
Installing Artifact of size 5004800…  
INFO[0000] No public key was provided for authenticating the artifact  
… - 100 %  
INFO[0002] Output (stderr) from command “/usr/share/mender/modules/v3/docker”: Storing reference on running containers for rollback needs to /var/lib/mender/modules/v3/payloads/0000/tree/tmp/prev\_containers.list  
INFO[0003] Output (stderr) from command “/usr/share/mender/modules/v3/docker”: Stopping all running containers  
INFO[0013] Output (stdout) from command “/usr/share/mender/modules/v3/docker”: c1b1889a8887  
INFO[0013] Output (stderr) from command “/usr/share/mender/modules/v3/docker”: jq: error: Could not open file /var/lib/mender/modules/v3/payloads/0000/tree/meta-data: No such file or directory  
ERRO[0013] Update module terminated abnormally: exit status 2  
ERRO[0013] Installation failed: Update module terminated abnormally: exit status 2  
Rolling back Artifact…  
INFO[0014] Output (stdout) from command “/usr/share/mender/modules/v3/docker”: c1b1889a8887  
ERRO[0014] Update module terminated abnormally: exit status 2

could you please help me understand the root cause of this error.

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [June 2, 2025, 8:15am UTC](https://hub.mender.io/t/error-encountered-while-running-mender-install-with-mender-artifact/7805/2 "2025-06-02T08:15:59Z")

</div>

Hi @Deepika,

Thanks for reaching out.

The log indicates that the board either has no or a non-functional Mender integration. The key here is

```auto
INFO[0000] Output (stderr) from command “fw_printenv”: Cannot read environment, using default
INFO[0000] Output (stderr) from command “fw_printenv”: Cannot read default environment from file
ERRO[0000] Failed to read the current active partition: No match between boot and root partitions.: exit status 243

```

which means that the A/B state of the bootloader integration cannot be read, and therefore no root filesystem upgrades are possible.

Depending on the exact board it might be possible to use, or base something on an integration available in [`meta-mender-community`](https://github.com/mendersoftware/meta-mender-community).

Generally speaking, a `u-boot` integration is done like this  
[Manual U-Boot integration | Mender documentation](https://docs.mender.io/operating-system-updates-yocto-project/board-integration/bootloader-support/u-boot/manual-u-boot-integration), and can be verified using the checklist: [Integration checklist | Mender documentation](https://docs.mender.io/client-installation/integration-checklist)

If you share a bit more about the board in question, we can possibly give more detailed answers.

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![Deepika](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@Deepika](https://hub.mender.io/u/Deepika)\
**Post date:** [June 2, 2025, 9:30am UTC](https://hub.mender.io/t/error-encountered-while-running-mender-install-with-mender-artifact/7805/3 "2025-06-02T09:30:57Z")

</div>

Thanks for your response.  
let me say my end goal. I’m working on deploying container update using the docker update module in standalone mode. I’m not using the rootfs or A/B partition updates.In my board the container of v1 is running. When I give the artifact which contains the container of v2, by routing to update module of docker script it needs to stop the running container and up running new container of v2 . when I performed through the ‘mender install’ command I faced the issue like that.

Below is the configuration for the mender

# mender

INHERIT += “mender-full”  
IMAGE\_FSTYPES += “mender”  
MENDER\_FEATURES\_ENABLE:append = " mender-uboot"  
MENDER\_FEATURES\_DISABLE:append = " mender-grub"

MENDER\_UBOOT\_AUTO\_CONFIGURE = “1”  
BOOTENV\_SIZE = “0x10000”  
MENDER\_RESERVED\_SPACE\_BOOTLOADER\_DATA = “262144”  
MENDER\_STORAGE\_DEVICE = “/dev/mmcblk0”  
MENDER\_BOOT\_PART\_SIZE\_MB = “64”  
MENDER\_DATA\_PART\_SIZE\_MB = “1024”  
MENDER\_ARTIFACT\_NAME = “release-1”

MENDER\_PARTITION\_ALIGNMENT = “4096”  
MENDER\_IMAGE\_BOOTLOADER\_FILE = “u-boot.bin”  
MENDER\_IMAGE\_BOOTLOADER\_BOOTSECTOR\_OFFSET = “16”  
MENDER\_BOOT\_PART = “${MENDER\_STORAGE\_DEVICE}p1”  
MENDER\_ROOTFS\_PART\_A = “${MENDER\_STORAGE\_DEVICE}p2”  
MENDER\_ROOTFS\_PART\_B = “${MENDER\_STORAGE\_DEVICE}p3”  
MENDER\_DATA\_PART = “${MENDER\_STORAGE\_DEVICE}p4”

MENDER\_UBOOT\_ENV\_STORAGE\_DEVICE\_OFFSET = “4194304”  
MENDER\_UBOOT\_STORAGE\_INTERFACE = “mmc”  
MENDER\_UBOOT\_STORAGE\_DEVICE = “0”  
MENDER\_STORAGE\_TOTAL\_SIZE\_MB = “8192”  
IMAGE\_OVERHEAD\_FACTOR = “1.1”

MENDER\_DEVICE\_TYPE = “rcar-h3”

can you please let me know how to solve the issue.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [June 2, 2025, 12:27pm UTC](https://hub.mender.io/t/error-encountered-while-running-mender-install-with-mender-artifact/7805/4 "2025-06-02T12:27:04Z")

</div>

Hi @Deepika,

Ok, so this is a Yocto build and you are following this tutorial [Docker](https://hub.mender.io/t/docker/324), right?

Are you using the `docker-artifact-gen` script as provided here? [mender-update-modules/docker/module-artifact-gen/docker-artifact-gen at master · mendersoftware/mender-update-modules · GitHub](https://github.com/mendersoftware/mender-update-modules/blob/master/docker/module-artifact-gen/docker-artifact-gen)

Can you possibly drop the output of `mender-artifact read` on the artifact?

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![Deepika](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@Deepika](https://hub.mender.io/u/Deepika)\
**Post date:** [June 3, 2025, 12:59pm UTC](https://hub.mender.io/t/error-encountered-while-running-mender-install-with-mender-artifact/7805/5 "2025-06-03T12:59:41Z")

</div>

Hi @TheYoctoJester  
Thank you for your response.  
yes what you mentioned script of update module only I have used it.but little change I did in the script to pull the container locally not from the docker hub. please find my attached docker script.

 ![docker](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/2/272d906ce81224200038cc0a545f6a6a396327a5.png)  
and here is my the output of the mender-artifact read.  
 ![mender-artifact](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/e/e2b85f577aac9b61ad1f5cc25305d88a2371cfc7.png)

Thanks and Regards,  
Deepika U M

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [June 3, 2025, 6:22pm UTC](https://hub.mender.io/t/error-encountered-while-running-mender-install-with-mender-artifact/7805/6 "2025-06-03T18:22:48Z")

</div>

Hi @Deepika,

Does it work _without_ your modifications?

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![Deepika](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@Deepika](https://hub.mender.io/u/Deepika)\
**Post date:** [June 4, 2025, 3:43am UTC](https://hub.mender.io/t/error-encountered-while-running-mender-install-with-mender-artifact/7805/7 "2025-06-04T03:43:04Z")

</div>

Hi @TheYoctoJester

It may works but I didnt try according to my requirement the artifact created in one device and when deploy into the hardware where meta-mender layer is added to the yocto and trigger the updates to the arm board (rcar -h3ulcb) it has no flexibility of internet so I can’t use the original script fetching image from docker hub.expected output is to get the new version container which is in that artifact .but Its getting roll-back to original container.

can you let me know how to solve the jq: error .  
Thanks in advance.  
Thanks and Regards,  
Deepika

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [June 4, 2025, 7:30am UTC](https://hub.mender.io/t/error-encountered-while-running-mender-install-with-mender-artifact/7805/8 "2025-06-04T07:30:07Z")

</div>

Hi @Deepika,

I understand the use case. Yet I think it would be very useful for isolating the error if you could try the original, unmodified version. In your development setup, I guess you have internet connectivity for the board.

If that works, then we need to work on your additions. If that also fails, then the problem is somewhere else.

Additionally, showing your actual code - not as a screenshot, but the full files of Update Module and generator script - let me try and reproduce too. You can either upload them here, or use some form of a pastebin or repository. As this definitely is not business critical IP, this should not be a problem.

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![Deepika](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@Deepika](https://hub.mender.io/u/Deepika)\
**Post date:** [June 5, 2025, 5:42am UTC](https://hub.mender.io/t/error-encountered-while-running-mender-install-with-mender-artifact/7805/9 "2025-06-05T05:42:48Z")

</div>

Hi @TheYoctoJester

Thank you for your response.  
I got my expected output .I changed my docker module script. and also in the mender artifact-command.

Thanks and Regards,  
Deepika

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [June 5, 2025, 6:26am UTC](https://hub.mender.io/t/error-encountered-while-running-mender-install-with-mender-artifact/7805/10 "2025-06-05T06:26:01Z")

</div>

Hi @Deepika,

So everything is working now?

For the record, we would love to have such an Update Module in [GitHub - mendersoftware/mender-update-modules: Community-supported Update Modules for the Mender client](https://github.com/mendersoftware/mender-update-modules) so others can also benefit.

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![Deepika](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@Deepika](https://hub.mender.io/u/Deepika)\
**Post date:** [June 6, 2025, 5:57am UTC](https://hub.mender.io/t/error-encountered-while-running-mender-install-with-mender-artifact/7805/11 "2025-06-06T05:57:54Z")

</div>

Hi @TheYoctoJester  
Yes as of now no threads.

Thank you I followed same docker module script. I modified according to my requirement.

Thanks and regards,  
Deepika
