Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-4362

client: broken Artifacts created from snapshot

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Labels:
    • Days in progress:
      0

      Description

      Circumstances still under investigation.

      Some times the Artifact created via snapshot is unusable as it will result in a failed update.

      Relevant logs from the server side:

      2021-01-15 13:06:11 +0000 UTC info: State transition: update-after-store [Download_Leave] -> update-install [ArtifactInstall]
      2021-01-15 13:06:11 +0000 UTC info: Enabling partition with new image installed to be a boot candidate: 3
      2021-01-15 13:06:11 +0000 UTC info: State transition: update-install [ArtifactInstall] -> reboot [ArtifactReboot_Enter]
      2021-01-15 13:06:11 +0000 UTC info: Rebooting device(s)
      2021-01-15 13:06:11 +0000 UTC info: Mender rebooting from active partition: /dev/mmcblk0p2
      2021-01-15 13:06:11 +0000 UTC info: Daemon terminated with SIGTERM
      2021-01-15 13:06:27 +0000 UTC info: Running Mender client version: 2.5.0-build1
      2021-01-15 13:06:27 +0000 UTC info: State transition: init [none] -> after-reboot [ArtifactReboot_Leave]
      2021-01-15 13:06:27 +0000 UTC error: transient error: Reboot to the new update failed. Expected "upgrade_available" flag to be true but it was false. Either the switch to the new partition was unsuccessful, or the bootloader rolled back
      2021-01-15 13:06:27 +0000 UTC info: State transition: after-reboot [ArtifactReboot_Leave] -> rollback [ArtifactRollback]
      2021-01-15 13:06:27 +0000 UTC info: Performing rollback
      2021-01-15 13:06:27 +0000 UTC info: No update available, so no rollback needed.
      2021-01-15 13:06:27 +0000 UTC info: State transition: rollback [ArtifactRollback] -> rollback-reboot [ArtifactRollbackReboot_Enter]
      2021-01-15 13:06:27 +0000 UTC info: Rebooting
      

      From the serial console, it can be seen that the device reboots twice: once into the target partition and then rollback into the original partition.

      Creating a new Artifact with from the same snapshot command resulted in a successful deployment.

        Attachments

          Activity

            People

            • Assignee:
              lluis Lluís Campos
              Reporter:
              lluis Lluís Campos
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel