Hello Mender Community:
I successfully created mender artifact for raspberry PI 4B bullseye Lite based image.
On hosted mender, while trying to update with the mender-ized version of the
same image, I get the following error, here is the Deployment log for device:
"
2022-09-12 10:59:17 +0000 UTC info: Running Mender client version: 3.3.0 2022-09-12 10:59:18 +0000 UTC info: State transition: update-fetch [Download_Enter] → update-store [Download_Enter] 2022-09-12 10:59:19 +0000 UTC info: No public key was provided for authenticating the artifact 2022-09-12 10:59:19 +0000 UTC error: Fetching Artifact headers failed: installer: failed to read Artifact: readHeaderV3: handleHeaderReads: Artifact Payload type ‘rootfs-image’ is not supported by this Mender Client. Ensure that the Mender Client is fully integrated and that the RootfsPartA/B configuration variables are set correctly in ‘mender.conf’ 2022-09-12 10:59:19 +0000 UTC info: State transition: update-store [Download_Enter] → update-status-report [none]"
Also, I noticed that with my previous mender-convert, on my hosted.mender.io account, the UI used to give option to set retry instead of hard coded 1 try only. Is this a NTC time sync issue? How do I fix it?
There should be a file at /data/mender/mender.conf containing the RootfsPartA and RootfsPartB definitions. Is this partition mounted correctly and present? And does /var/lib/mender point to /data/mender?
Did you use the Raspberry Pi image from Mender? It looks like you may have used the one straight from the Raspberry Pi OS website, which will not work for full rootfs image updates. Make sure you use the download links from Mender’s documentation.
Thanks Kristian for your reply:
I followed your instruction, downloaded the pre-mendered Rasberrypi OS Lite bullseye image from link you provided, flashed it and booted up the RPI4B device with the menderized image.
Now, trying to OTA update it with my menderized system image which is also Raspberrypi OS Lite bullseye.
pi@raspberrypi:~ $ ls -ltra /var/lib/mender
lrwxrwxrwx 1 root root 12 Jun 14 07:40 /var/lib/mender → /data/mender
pi@raspberrypi:~ $
Here is the Deployment log for device:
2022-09-12 10:59:17 +0000 UTC info: Running Mender client version: 3.3.0
2022-09-12 10:59:18 +0000 UTC info: State transition: update-fetch [Download_Enter] → update-store [Download_Enter]
2022-09-12 10:59:19 +0000 UTC info: No public key was provided for authenticating the artifact
2022-09-12 10:59:19 +0000 UTC error: Fetching Artifact headers failed: installer: failed to read Artifact: readHeaderV3: handleHeaderReads: Artifact Payload type ‘rootfs-image’ is not supported by this Mender Client. Ensure that the Mender Client is fully integrated and that the RootfsPartA/B configuration variables are set correctly in ‘mender.conf’
2022-09-12 10:59:19 +0000 UTC info: State transition: update-store [Download_Enter] → update-status-report [none]
Hmm, I’m not really sure what the error is then. Can you edit /lib/systemd/system/mender-client.service and add the -l debug argument right after the /usr/bin/mender binary? Then run:
Thanks Kristian.
I brought in the --overlay input/config/bootstrap-rootfs-overlay-hosted-server folder from my older (RP33B+ related) mender-convert setup to the latest setup and replaced rootfs_overlay_democ with it.
mender-convert worked and update worked as well.