Failed deploys and boot loop

Hi everyone,

I’m really confused about artifact creation. First let me tell you what i have done so far.

  1. Downloaded images from Downloads | Mender documentation (debian)
  2. Installed our app in image and make it run after boot
  3. Connected my dev device (rpi3) with steps mentioned in hosted.mender.io (from link top right section) copied all commands and run them successfuly.
  4. Make an iso from sd-card and give it to client.
  5. After updating app, created a full system artifact with “mender-artifact write rootfs-image”

My problem is when i create a new artifact and make a release from it deploy fails with “No compatible artifect found”.

Some command results from device:

sudo mender show-artifact
unknown

sudo mender show-provides
“returns nothing”

as far as i understand, i can’t deploy a release because target device’s version is unknown. Am i right ?

What can i do ? Can i force software version and set it from command line in target device?
Is it mean i can’t deploy software to devices?

By the way actually i have tried it few months ago and it was successfuly updating my dev devices.

I’m really confused at this point.

Thanks in advance.
Caner

I have tried a different thing,

  1. Download a rpi3 image from downloads section of documents.
  2. Burn it to sd-card
  3. Connect device with mender setup, it showed up in pending devices. Accepted device.

At this point i have a clean device. Then I have created a new deploy process with my previous artifacts and device starts to download.

But after device updated and restarted it’s still shows like booting in deploy monitor. Then device enters a boot loop and returns to previous state.

Here is the top portion of my failed log, you will see lots of authorization request failed lines. But actually it updated my device and then return it to previous state.

At some point i have changed my hosted.mender.io password. It can’t cause an authorization error right ? If so whats gonna happen if i changed my login password. All devices won’t access ?


2022-04-10 15:11:11 +0000 UTC info: Running Mender client version: 3.2.1

2022-04-10 15:11:12 +0000 UTC info: State transition: update-fetch [Download_Enter] → update-store [Download_Enter]

2022-04-10 15:11:13 +0000 UTC info: No public key was provided for authenticating the artifact

2022-04-10 15:11:13 +0000 UTC info: Opening device “/dev/mmcblk0p3” for writing

2022-04-10 15:11:13 +0000 UTC info: Native sector size of block device /dev/mmcblk0p3 is 512 bytes. Mender will write in chunks of 1048576 bytes

2022-04-10 15:21:30 +0000 UTC info: All bytes were successfully written to the new partition

2022-04-10 15:21:30 +0000 UTC info: The optimized block-device writer wrote a total of 3565 frames, where 2199 frames did need to be rewritten (i.e., skipped)

2022-04-10 15:21:31 +0000 UTC info: Wrote 3737124864/3737124864 bytes to the inactive partition

2022-04-10 15:21:32 +0000 UTC info: State transition: update-store [Download_Enter] → update-after-store [Download_Leave]

2022-04-10 15:21:32 +0000 UTC info: State transition: update-after-store [Download_Leave] → mender-update-control-refresh-maps [none]

2022-04-10 15:21:32 +0000 UTC info: Validating the Update Info: https://s3.amazonaws.com/hosted-mender-artifacts/61fa6b5c19dc3d571d2dd365/2ace19b0-2384-4807-a246-1c85bcffb47d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAQWI25QR6NDALMYE2%2F20220410%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220410T152132Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&response-content-type=application%2Fvnd.mender-artifact&X-Amz-Signature=973e45b5726f7c25c507c1a963dd3158fd16a317101db79fbaf00ae6909fcd34 [name: rasp3_0_5_19; devices: [raspberrypi3]]

2022-04-10 15:21:32 +0000 UTC info: State transition: mender-update-control-refresh-maps [none] → mender-update-control [none]

2022-04-10 15:21:32 +0000 UTC info: State transition: mender-update-control [none] → update-install [ArtifactInstall]

2022-04-10 15:21:32 +0000 UTC info: Enabling partition with new image installed to be a boot candidate: 3

2022-04-10 15:21:32 +0000 UTC info: State transition: update-install [ArtifactInstall] → mender-update-control-refresh-maps [none]

2022-04-10 15:21:33 +0000 UTC error: Error receiving scheduled update data: failed to check update info on the server. Response: &{429 Too Many Requests 429 HTTP/1.1 1 1 map[Connection:[keep-alive] Content-Length:[0] Content-Type:[application/json; charset=utf-8] Date:[Sun, 10 Apr 2022 15:21:32 GMT] X-Men-Requestid:[8a9f3d1e-adce-4d05-816f-9a3fdbeb5be2]] 0x19709c0 0 [] false false map[] 0x150a800 }

2022-04-10 15:21:33 +0000 UTC error: Update control map check failed: transient error: failed to check update info on the server. Response: &{429 Too Many Requests 429 HTTP/1.1 1 1 map[Connection:[keep-alive] Content-Length:[0] Content-Type:[application/json; charset=utf-8] Date:[Sun, 10 Apr 2022 15:21:32 GMT] X-Men-Requestid:[8a9f3d1e-adce-4d05-816f-9a3fdbeb5be2]] 0x19709c0 0 [] false false map[] 0x150a800 }, retrying…

2022-04-10 15:21:33 +0000 UTC info: State transition: mender-update-control-refresh-maps [none] → mender-update-control-retry-refresh-maps [none]

2022-04-10 15:21:33 +0000 UTC info: Wait 1m0s before next update control map fetch/update attempt

2022-04-10 15:22:33 +0000 UTC info: State transition: mender-update-control-retry-refresh-maps [none] → mender-update-control-refresh-maps [none]

2022-04-10 15:22:33 +0000 UTC info: Validating the Update Info: https://s3.amazonaws.com/hosted-mender-artifacts/61fa6b5c19dc3d571d2dd365/2ace19b0-2384-4807-a246-1c85bcffb47d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAQWI25QR6NDALMYE2%2F20220410%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220410T152233Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&response-content-type=application%2Fvnd.mender-artifact&X-Amz-Signature=5ab2827b5398e21d06bc87f5e927865a8c5107413cdf1500569806077775d784 [name: rasp3_0_5_19; devices: [raspberrypi3]]

2022-04-10 15:22:33 +0000 UTC info: State transition: mender-update-control-refresh-maps [none] → mender-update-control [none]

2022-04-10 15:22:33 +0000 UTC info: State transition: mender-update-control [none] → reboot [ArtifactReboot_Enter]

2022-04-10 15:22:33 +0000 UTC info: Rebooting device(s)

2022-04-10 15:22:33 +0000 UTC info: Mender rebooting from active partition: /dev/mmcblk0p2

2022-04-10 15:22:34 +0000 UTC error: error forwarding from client to backend: websocket: close 1006 (abnormal closure): unexpected EOF

2022-04-10 15:22:34 +0000 UTC warning: error while sending close message: write tcp [::1]:34035->[::1]:57184: use of closed network connection

2022-04-10 15:22:34 +0000 UTC info: Daemon terminated with SIGTERM

2022-04-10 15:23:11 +0000 UTC info: Running Mender client version: 3.2.1

2022-04-10 15:23:11 +0000 UTC info: State transition: init [none] → after-reboot [ArtifactReboot_Leave]

2022-04-10 15:23:11 +0000 UTC info: State transition: after-reboot [ArtifactReboot_Leave] → after-reboot [ArtifactReboot_Leave]

2022-04-10 15:23:11 +0000 UTC info: State transition: after-reboot [ArtifactReboot_Leave] → mender-update-control-refresh-maps [none]

2022-04-10 15:23:11 +0000 UTC info: Device unauthorized; attempting reauthorization

2022-04-10 15:23:11 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: using interface /sys/class/net/eth0

2022-04-10 15:23:11 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: cat: /data/octopus/tag: No such file or directory

2022-04-10 15:23:12 +0000 UTC error: Failed to authorize with “https://hosted.mender.io”: (request_id: ): authentication request rejected server error message: dev auth: unauthorized

2022-04-10 15:23:12 +0000 UTC warning: Reauthorization failed with error: transient error: authorization request failed

2022-04-10 15:23:12 +0000 UTC error: Error receiving scheduled update data: update check request failed: transient error: authorization request failed

2022-04-10 15:23:12 +0000 UTC error: Update control map check failed: transient error: update check request failed: transient error: authorization request failed, retrying…

2022-04-10 15:23:12 +0000 UTC info: State transition: mender-update-control-refresh-maps [none] → mender-update-control-retry-refresh-maps [none]

2022-04-10 15:23:12 +0000 UTC info: Wait 1m0s before next update control map fetch/update attempt

2022-04-10 15:24:12 +0000 UTC info: State transition: mender-update-control-retry-refresh-maps [none] → mender-update-control-refresh-maps [none]

2022-04-10 15:24:12 +0000 UTC info: Device unauthorized; attempting reauthorization

2022-04-10 15:24:12 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: using interface /sys/class/net/eth0

2022-04-10 15:24:12 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: cat: /data/octopus/tag: No such file or directory

2022-04-10 15:24:12 +0000 UTC error: Failed to authorize with “https://hosted.mender.io”: (request_id: ): authentication request rejected server error message: dev auth: unauthorized

2022-04-10 15:24:12 +0000 UTC warning: Reauthorization failed with error: transient error: authorization request failed

2022-04-10 15:24:12 +0000 UTC error: Error receiving scheduled update data: update check request failed: transient error: authorization request failed

2022-04-10 15:24:12 +0000 UTC error: Update control map check failed: transient error: update check request failed: transient error: authorization request failed, retrying…

2022-04-10 15:24:13 +0000 UTC info: State transition: mender-update-control-refresh-maps [none] → mender-update-control-retry-refresh-maps [none]

2022-04-10 15:24:13 +0000 UTC info: Wait 1m0s before next update control map fetch/update attempt

2022-04-10 15:25:13 +0000 UTC info: State transition: mender-update-control-retry-refresh-maps [none] → mender-update-control-refresh-maps [none]

2022-04-10 15:25:13 +0000 UTC info: Device unauthorized; attempting reauthorization

2022-04-10 15:25:13 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: using interface /sys/class/net/eth0

2022-04-10 15:25:13 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: cat: /data/octopus/tag: No such file or directory

2022-04-10 15:25:13 +0000 UTC error: Failed to authorize with “https://hosted.mender.io”: (request_id: ): authentication request rejected server error message: dev auth: unauthorized

2022-04-10 15:25:13 +0000 UTC warning: Reauthorization failed with error: transient error: authorization request failed

2022-04-10 15:25:13 +0000 UTC error: Error receiving scheduled update data: update check request failed: transient error: authorization request failed

2022-04-10 15:25:13 +0000 UTC error: Update control map check failed: transient error: update check request failed: transient error: authorization request failed, retrying…

2022-04-10 15:25:13 +0000 UTC info: State transition: mender-update-control-refresh-maps [none] → mender-update-control-retry-refresh-maps [none]

2022-04-10 15:25:13 +0000 UTC info: Wait 1m0s before next update control map fetch/update attempt

2022-04-10 15:26:13 +0000 UTC info: State transition: mender-update-control-retry-refresh-maps [none] → mender-update-control-refresh-maps [none]

2022-04-10 15:26:13 +0000 UTC info: Device unauthorized; attempting reauthorization

2022-04-10 15:26:13 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: using interface /sys/class/net/eth0

2022-04-10 15:26:13 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: cat: /data/octopus/tag: No such file or directory

2022-04-10 15:26:14 +0000 UTC error: Failed to authorize with “https://hosted.mender.io”: (request_id: ): authentication request rejected server error message: dev auth: unauthorized

2022-04-10 15:26:14 +0000 UTC warning: Reauthorization failed with error: transient error: authorization request failed

2022-04-10 15:26:14 +0000 UTC error: Error receiving scheduled update data: update check request failed: transient error: authorization request failed

2022-04-10 15:26:14 +0000 UTC error: Update control map check failed: transient error: update check request failed: transient error: authorization request failed, retrying…

2022-04-10 15:26:14 +0000 UTC info: State transition: mender-update-control-refresh-maps [none] → mender-update-control-retry-refresh-maps [none]

2022-04-10 15:26:14 +0000 UTC info: Wait 2m0s before next update control map fetch/update attempt

2022-04-10 15:28:14 +0000 UTC info: State transition: mender-update-control-retry-refresh-maps [none] → mender-update-control-refresh-maps [none]

2022-04-10 15:28:14 +0000 UTC info: Device unauthorized; attempting reauthorization

2022-04-10 15:28:14 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: using interface /sys/class/net/eth0

2022-04-10 15:28:14 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: cat: /data/octopus/tag: No such file or directory

2022-04-10 15:28:14 +0000 UTC error: Failed to authorize with “https://hosted.mender.io”: (request_id: ): authentication request rejected server error message: dev auth: unauthorized

2022-04-10 15:28:14 +0000 UTC warning: Reauthorization failed with error: transient error: authorization request failed

2022-04-10 15:28:14 +0000 UTC error: Error receiving scheduled update data: update check request failed: transient error: authorization request failed

2022-04-10 15:28:14 +0000 UTC error: Update control map check failed: transient error: update check request failed: transient error: authorization request failed, retrying…

2022-04-10 15:28:14 +0000 UTC info: State transition: mender-update-control-refresh-maps [none] → mender-update-control-retry-refresh-maps [none]

2022-04-10 15:28:14 +0000 UTC info: Wait 2m0s before next update control map fetch/update attempt

2022-04-10 15:30:14 +0000 UTC info: State transition: mender-update-control-retry-refresh-maps [none] → mender-update-control-refresh-maps [none]

2022-04-10 15:30:14 +0000 UTC info: Device unauthorized; attempting reauthorization

2022-04-10 15:30:14 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: using interface /sys/class/net/eth0

2022-04-10 15:30:14 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: cat: /data/octopus/tag: No such file or directory

2022-04-10 15:30:15 +0000 UTC error: Failed to authorize with “https://hosted.mender.io”: (request_id: ): authentication request rejected server error message: dev auth: unauthorized

2022-04-10 15:30:15 +0000 UTC warning: Reauthorization failed with error: transient error: authorization request failed

2022-04-10 15:30:15 +0000 UTC error: Error receiving scheduled update data: update check request failed: transient error: authorization request failed

2022-04-10 15:30:15 +0000 UTC error: Update control map check failed: transient error: update check request failed: transient error: authorization request failed, retrying…

2022-04-10 15:30:15 +0000 UTC info: State transition: mender-update-control-refresh-maps [none] → mender-update-control-retry-refresh-maps [none]

2022-04-10 15:30:15 +0000 UTC info: Wait 2m0s before next update control map fetch/update attempt

2022-04-10 15:32:15 +0000 UTC info: State transition: mender-update-control-retry-refresh-maps [none] → mender-update-control-refresh-maps [none]

2022-04-10 15:32:15 +0000 UTC info: Device unauthorized; attempting reauthorization

2022-04-10 15:32:15 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: using interface /sys/class/net/eth0

2022-04-10 15:32:15 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: cat: /data/octopus/tag: No such file or directory

2022-04-10 15:32:15 +0000 UTC error: Failed to authorize with “https://hosted.mender.io”: (request_id: ): authentication request rejected server error message: dev auth: unauthorized

2022-04-10 15:32:15 +0000 UTC warning: Reauthorization failed with error: transient error: authorization request failed

2022-04-10 15:32:15 +0000 UTC error: Error receiving scheduled update data: update check request failed: transient error: authorization request failed

2022-04-10 15:32:15 +0000 UTC error: Update control map check failed: transient error: update check request failed: transient error: authorization request failed, retrying…

2022-04-10 15:32:15 +0000 UTC info: State transition: mender-update-control-refresh-maps [none] → mender-update-control-retry-refresh-maps [none]

2022-04-10 15:32:15 +0000 UTC info: Wait 4m0s before next update control map fetch/update attempt

2022-04-10 15:36:15 +0000 UTC info: State transition: mender-update-control-retry-refresh-maps [none] → mender-update-control-refresh-maps [none]

2022-04-10 15:36:15 +0000 UTC info: Device unauthorized; attempting reauthorization

2022-04-10 15:36:15 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: using interface /sys/class/net/eth0

2022-04-10 15:36:15 +0000 UTC info: Output (stderr) from command “/usr/share/mender/identity/mender-device-identity”: cat: /data/octopus/tag: No such file or directory

2022-04-10 15:36:15 +0000 UTC error: Failed to authorize with “https://hosted.mender.io”: (request_id: ): authentication request rejected server error message: dev auth: unauthorized

2022-04-10 15:36:15 +0000 UTC warning: Reauthorization failed with error: transient error: authorization request failed

2022-04-10 15:36:15 +0000 UTC error: Error receiving scheduled update data: update check request failed: transient error: authorization request failed

2022-04-10 15:36:15 +0000 UTC error: Update control map check failed: transient error: update check request failed: transient error: authorization request failed, retrying…

2022-04-10 15:36:15 +0000 UTC info: State transition: mender-update-control-refresh-maps [none] → mender-update-control-retry-refresh-maps [none]

2022-04-10 15:36:15 +0000 UTC info: Wait 4m0s before next update control map fetch/update attempt

2022-04-10 15:37:38 +0000 UTC info: Daemon terminated with SIGTERM