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 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
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?
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.
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.
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?
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 …