# Meta-mender update - missing /etc/mender/artifact\_info

**URL:** https://hub.mender.io/t/meta-mender-update-missing-etc-mender-artifact-info/5320
**Category:** Yocto Project
**Tags:** mender-client, bug
**Created:** [October 17, 2022, 1:50pm UTC](https://hub.mender.io/t/meta-mender-update-missing-etc-mender-artifact-info/5320 "2022-10-17T13:50:15Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![ruben](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ruben/32/565_2.png) [@ruben](https://hub.mender.io/u/ruben)
#### Post date: [October 17, 2022, 1:50pm UTC](https://hub.mender.io/t/meta-mender-update-missing-etc-mender-artifact-info/5320/1 "2022-10-17T13:50:15Z")

</div>

We are using meta-mender in our yocto build environment. We are currently working on dunfell branch.  
Last week I updated meta-mender from [45041cfb7b05c2ff44204d592b200493b25ed8ae](https://github.com/mendersoftware/meta-mender/commit/45041cfb7b05c2ff44204d592b200493b25ed8ae) to [b3a10de4a3e5332d91fdea6169db3b0c2eb3f3ee](https://github.com/mendersoftware/meta-mender/commit/b3a10de4a3e5332d91fdea6169db3b0c2eb3f3ee).

After that update, the file /etc/mender/artifact\_info is missing in the RootFS. Without that file we are not able to do any deployments to this devices.

As a result, this update will break our OTA-functionality!

As far as I see this change: [feat: generate a bootstrap artifact · mendersoftware/meta-mender@222532b · GitHub](https://github.com/mendersoftware/meta-mender/commit/222532bf36d3ac195d62e11e5cfd06df0ae5a1c0#diff-b1b4a6c1b87e731a379af60c4413916faaecada2293291a27262ac7f79310395L116) is causing the problem.

As we are on dunfell, we are using mender-client version 2.6.1 per default. Same issue is there when using latest release 3.4.0. Other versions weren’t tested, I expect 3.3.0 to work when looking at the sources.

We manually fixed this by adding

```auto
DISTRO_EXTRA_RDEPENDS += " mender-artifact-info "

```

to our distro config. Is this the recommended way if fixing the issue?  
Is there anything wrong with our configuration?  
Does anybody have same issues?

Thanks in advance and best regards  
Ruben

---

<div class="post-metadata">

### Author: ![hacpa](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@hacpa](https://hub.mender.io/u/hacpa)
#### Post date: [October 18, 2022, 12:04am UTC](https://hub.mender.io/t/meta-mender-update-missing-etc-mender-artifact-info/5320/2 "2022-10-18T00:04:32Z")

</div>

Ran into the same issue today, on kirkstone. I can add a few more details as to what happens in runtime.

Starting from a previous working kirkstone installation, if I install a new rootfs mender artifact built today with bitbake, the file /etc/mender/artifact\_info is missing on the new rootfs. Then, if I try installing another rootfs mender artifact on top of that, the “mender install” command fails instantly with this error:

> ERRO[0000] Reading headers failed: open /etc/mender/artifact\_info: no such file or directory  
> ERRO[0000] open /etc/mender/artifact\_info: no such file or directory

The mender client version is 3.4.0 on both new and old rootfs.

---

<div class="post-metadata">

### Author: ![ruben](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ruben/32/565_2.png) [@ruben](https://hub.mender.io/u/ruben)
#### Post date: [October 18, 2022, 5:59am UTC](https://hub.mender.io/t/meta-mender-update-missing-etc-mender-artifact-info/5320/3 "2022-10-18T05:59:14Z")

</div>

Thanks for confirming the issue. Same behaviour on our side when trying to install ANY artifact.

---

<div class="post-metadata">

### Author: ![ruben](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ruben/32/565_2.png) [@ruben](https://hub.mender.io/u/ruben)
#### Post date: [October 18, 2022, 6:11am UTC](https://hub.mender.io/t/meta-mender-update-missing-etc-mender-artifact-info/5320/4 "2022-10-18T06:11:22Z")

</div>

Untested, perhaps only as an idea how to fix: [fix: missing dependency to mender-artifact-info for all mender-client… by rschwarz-sotec · Pull Request #1818 · mendersoftware/meta-mender · GitHub](https://github.com/mendersoftware/meta-mender/pull/1818)

---

<div class="post-metadata">

### Author: ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)
#### Post date: [October 18, 2022, 8:00am UTC](https://hub.mender.io/t/meta-mender-update-missing-etc-mender-artifact-info/5320/5 "2022-10-18T08:00:42Z")

</div>

Hi @ruben and thank you for your report.

This is indeed right.

We are working on a fix [here](https://github.com/mendersoftware/meta-mender/pull/1816).

Hopefully it should be merged very soon.

In the meantime, adding back the `mender-artifact-info` dependency locally, like you have done is the go-to workaround.

---

<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: [October 18, 2022, 8:21am UTC](https://hub.mender.io/t/meta-mender-update-missing-etc-mender-artifact-info/5320/6 "2022-10-18T08:21:26Z")

</div>

Yes, it’s a known issue, we are working on fixing it. Use the tags for now, either `dunfell-v2022.09` or `kirkstone-v2022.09`.

---

<div class="post-metadata">

### Author: ![ruben](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ruben/32/565_2.png) [@ruben](https://hub.mender.io/u/ruben)
#### Post date: [October 18, 2022, 8:32am UTC](https://hub.mender.io/t/meta-mender-update-missing-etc-mender-artifact-info/5320/7 "2022-10-18T08:32:07Z")

</div>

@kacf thanks for the hint with tags. I will use them from now on

---

<div class="post-metadata">

### Author: ![Mowlwurf](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@Mowlwurf](https://hub.mender.io/u/Mowlwurf)
#### Post date: [January 17, 2024, 10:23am UTC](https://hub.mender.io/t/meta-mender-update-missing-etc-mender-artifact-info/5320/8 "2024-01-17T10:23:09Z")

</div>

Hello,

with mender client version 3.5.0 and later the dependency for `mender-artifact-info` is missing again.

Best regards,  
Markus

---

<div class="post-metadata">

### Author: ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)
#### Post date: [January 18, 2024, 8:10am UTC](https://hub.mender.io/t/meta-mender-update-missing-etc-mender-artifact-info/5320/9 "2024-01-18T08:10:32Z")

</div>

Thanks for the notice @Mowlwurf .

We will have a look at it 😸

---

<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: [January 18, 2024, 8:30am UTC](https://hub.mender.io/t/meta-mender-update-missing-etc-mender-artifact-info/5320/10 "2024-01-18T08:30:25Z")

</div>

Hey @Mowlwurf, the artifact-info file was never officially supported, and moving away from it has been the official advice for a long time.

You can get the same information by querying `mender show-provides` [1] to get the current software information.

[1] `mender-update show-provides` from 4.0.0 and onwards

---

<div class="post-metadata">

### Author: ![Mowlwurf](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@Mowlwurf](https://hub.mender.io/u/Mowlwurf)
#### Post date: [January 18, 2024, 8:56am UTC](https://hub.mender.io/t/meta-mender-update-missing-etc-mender-artifact-info/5320/11 "2024-01-18T08:56:15Z")

</div>

Hello,

I’m using the mender client in standalone mode in a Yocto kirkstone environment. So my latest usable version is 3.5.2  
The commands `mender show-provides` and `mender show-artifact` both return `unknown` after fresh install as well as after an update.

So my last resort is the artifact-info file. I helped me with a `mender-client.bbappend` in my layer where I add the dependency for the file.

Best regards,  
Markus

---

<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: [January 18, 2024, 1:31pm UTC](https://hub.mender.io/t/meta-mender-update-missing-etc-mender-artifact-info/5320/12 "2024-01-18T13:31:35Z")

</div>

Something must be wrong in the image build. There is a supposed to be a `/data/mender/bootstrap.mender` file which initializes the database with correct content. This file gets consumed as soon as the first invocation of Mender happens though. Can you confirm that this file exists in your generated image, _before_ you boot it?

---

<div class="post-metadata">

### Author: ![Mowlwurf](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@Mowlwurf](https://hub.mender.io/u/Mowlwurf)
#### Post date: [January 18, 2024, 3:07pm UTC](https://hub.mender.io/t/meta-mender-update-missing-etc-mender-artifact-info/5320/13 "2024-01-18T15:07:51Z")

</div>

Yes, the file is present in my image.  
I’m using a Verdin iMX8MM board with BSPv6.2 and the image flashing tool from Toradex.

But I think the problem had solved itself.  
I just rebuilded and reflashed my image. After booting up, the file was still there, but the first time the mender client was called on the command line, it disappeared. Now the commands `mender show-artifact` and `mender show-provides` are returning the installed software information.  
Very weird …

But thank you for your time.

Best regards,  
Markus
