Hello,
I’m testing deployments using Mender in a Jetson TX2 device previously following the tutorial available in Nvidia Jetson L4T Integration. I have already created a working artifact and I was able to deploy it correctly on another device. Nevertheless, when testing different deployment scenarios, an unexpected behavior has been seen when the deployment is aborted from the Mender website during the artifact installation.
As far as I understand, when the deployment is aborted in the middle of the update process, it should finish normally, but the rollback should be performed. In the performed test, the rollback is started, but it fails, which means that the artifact is finally installed in the device and the mender website marks the current software used as inconsistent.
feb 23 12:53:30 localhost mender[3650]: time="2022-02-23T12:53:30Z" level=info msg="State transition: init [none] -> verify-rollback-reboot [ArtifactRollbackReboot_Leave]"
feb 23 12:53:30 localhost mender[3650]: time="2022-02-23T12:53:30Z" level=info msg="Output (stderr) from command \"/usr/share/mender/modules/v3/rootfs-image-jetson\": ArtifactVerifyRollbackReboot: The active partition is 1 while the last passive was 1"
feb 23 12:53:30 localhost mender[3650]: time="2022-02-23T12:53:30Z" level=error msg="Update module terminated abnormally: exit status 1"
feb 23 12:53:30 localhost mender[3650]: time="2022-02-23T12:53:30Z" level=error msg="Update module terminated abnormally: exit status 1"
feb 23 12:53:30 localhost mender[3650]: time="2022-02-23T12:53:30Z" level=error msg="Rollback reboot failed, will retry. Cause: transient error: Update module terminated abnormally: exit status 1"
feb 23 12:53:30 localhost mender[3650]: time="2022-02-23T12:53:30Z" level=error msg="Rollback reboot failed, will retry. Cause: transient error: Update module terminated abnormally: exit status 1"
feb 23 12:53:30 localhost mender[3650]: time="2022-02-23T12:53:30Z" level=info msg="State transition: verify-rollback-reboot [ArtifactRollbackReboot_Leave] -> rollback-reboot [ArtifactRollbackReboot_Enter]"
feb 23 12:53:30 localhost mender[3650]: time="2022-02-23T12:53:30Z" level=info msg="Rebooting device(s) after rollback"
Do you have any suggestion to avoid this behavior?