Installer: failed to read and install update: reader: unsupported version: 3

when i am trying to update raspberryp3 i am getting this error

2020-04-13 13:20:48 +0000 UTC debug: handle update fetch state
2020-04-13 13:20:49 +0000 UTC debug: status reported, response 204 No Content
2020-04-13 13:20:50 +0000 UTC debug: Received fetch update response &{200 OK 200 HTTP/1.1 1 1 map[Accept-Ranges:[bytes] Etag:[“478e517c4a8bbec7647c81cda7a6b086”] Strict-Transport-Security:[max-age=0; includeSubdomains; preload] X-Amz-Request-Id:[160563AFAF68B66E] X-Content-Type-Options:[nosniff] Content-Type:[application/vnd.mender-artifact] Connection:[keep-alive] Content-Security-Policy:[block-all-mixed-content] Server:[openresty/1.13.6.2] Content-Length:[5120] X-Xss-Protection:[1; mode=block] X-Frame-Options:[DENY] Date:[Mon, 13 Apr 2020 13:20:49 GMT] Last-Modified:[Mon, 13 Apr 2020 13:20:23 GMT] Vary:[Origin]] 0x1279b330 5120 [] false false map[] 0x126e6980 0x12581980}+
2020-04-13 13:20:50 +0000 UTC info: State transition: update-fetch [Download] -> update-store [Download]
2020-04-13 13:20:50 +0000 UTC debug: handle update install state
2020-04-13 13:20:50 +0000 UTC debug: status reported, response 204 No Content
2020-04-13 13:20:50 +0000 UTC debug: Read data from device manifest file: device_type=raspberrypi3
2020-04-13 13:20:50 +0000 UTC debug: Found needed line: device_type=raspberrypi3
2020-04-13 13:20:50 +0000 UTC debug: Current manifest data: raspberrypi3
2020-04-13 13:20:50 +0000 UTC info: no public key was provided for authenticating the artifact
2020-04-13 13:20:50 +0000 UTC error: update install failed: installer: failed to read and install update: reader: unsupported version: 3
2020-04-13 13:20:50 +0000 UTC info: State transition: update-store [Download] -> fetch-install-retry-wait [Download]
2020-04-13 13:20:50 +0000 UTC debug: handle fetch install retry state
2020-04-13 13:20:50 +0000 UTC info: State transition: fetch-install-retry-wait [Download] -> update-status-report [none]
2020-04-13 13:20:50 +0000 UTC debug: handle update status report state
2020-04-13 13:20:51 +0000 UTC debug: status reported, response 204 No Content
2020-04-13 13:20:51 +0000 UTC debug: attempting to upload deployment logs for failed update

i am using sding in raspberrypi3 please provide any solution for this

Hi @avi992

From your log, the following line looks suspicious to me:

2020-04-13 13:20:50 +0000 UTC error: update install failed: installer: failed to read and install update: reader: unsupported version: 3

That means that your Mender client does not support Artifact version 3. You should be using Mender client 2.x, you can check the Mender client version with the command:

mender -version

ubantu@ubantu:~ mender -version da6e27a runtime: go1.11.5 ubantu@ubantu:~
i got this

Hi @avi992,

The version you are getting is actually latest master, so that part should be okey.

Can you elaborate how have you integrated Mender on your RPi3? Are you using the pre-converted image or converting it yourself? Please post also the commands you are using to create the Artifact.

Hi @lluiscampos
i have created .sdimg in ubuntu 18.04 that sdimg flash is running in my raspberry pi3 not raspbian. and i have follow your link to create artifact of docker image.the thing is when i have created sdimg i don’t know which client version is running.

i have follow this link to create .sdimg

and also i an testing all this thing in demo server.

Hi @avi992 to clarify, you built a Yocto image for this system? What branch of Yocto did you use?

Hi @drewmoseley
i have used sumo 2.5.3 as branch

Hi @avi992,

With sumo branch, by default, you will be using Mender 1.7.1, which is quite old and does not support Update Modules (Docker updates, for example). You can switch to yocto branch warrior (recommended) or stay in sumo and add the following lines to your local conf:

PREFERRED_VERSION_pn-mender = "2.1.2"
PREFERRED_VERSION_pn-mender-artifact = "3.2.1"
PREFERRED_VERSION_pn-mender-artifact-native = "3.2.1"