Hello,
I am trying a mender update on an x86 device. The Mender server version is 3.1.1 and client 3.4.0.
The client downloads the image and then reboot to the new partition. However, it then immediately reboots to the previous partition.
Jan 10 15:55:01 cm50 mender[3436]: time="2023-01-10T15:55:01+01:00" level=info msg="Mender rebooting from active partition: /dev/mmcblk1p2" func="github.com/mendersoftware/mender/installer.(*dualRootfsDeviceImpl).Reboot"
Jan 10 15:55:01 cm50 mender[3436]: time="2023-01-10T15:55:01+01:00" level=error msg="error forwarding from client to backend: websocket: close 1006 (abnormal closure): unexpected EOF" func="github.com/mendersoftware/mender/app/proxy.(*proxyControllerInner).DoWsUpgrade"
Jan 10 15:55:01 cm50 systemd[1]: Stopping Mender OTA update service...
Jan 10 15:55:01 cm50 mender[3436]: time="2023-01-10T15:55:01+01:00" level=info msg="Daemon terminated with SIGTERM" func=main.doMain
Jan 10 15:55:01 cm50 systemd[1]: Stopped Mender OTA update service.
-- Reboot --
Jan 10 15:55:08 cm50 mender[638]: time="2023-01-10T15:55:08+01:00" level=debug msg="Reading Mender configuration from file /var/lib/mender/mender.conf" func=github.com/mendersoftware/mender/conf.readConfigFile
Jan 10 15:55:08 cm50 mender[638]: time="2023-01-10T15:55:08+01:00" level=info msg="Loaded configuration file: /var/lib/mender/mender.conf" func=github.com/mendersoftware/mender/conf.loadConfigFile
Jan 10 15:55:08 cm50 mender[638]: time="2023-01-10T15:55:08+01:00" level=debug msg="Verified configuration = &conf.MenderConfig{MenderConfigFromFile:conf.MenderConfigFromFile{ArtifactVerifyKey:\"/etc/mender/artifact-verify-key.pem\", HttpsClient:client.HttpsClient{Certificate:\"\", Key:\"\", SSLEngine:\"\"}, Security:client.Security{AuthPrivateKey:\"\", SSLEngine:\"\"}, Connectivity:client.Connectivity{DisableKeepAlive:false, IdleConnTimeoutSeconds:0}, RootfsPartA:\"/dev/mmcblk1p2\", RootfsPartB:\"/dev/mmcblk1p3\", BootUtilitiesSetActivePart:\"\", BootUtilitiesGetNextActivePart:\"\", DeviceTypeFile:\"/data/mender/device_type\", DBus:conf.DBusConfig{Enabled:true}, UpdateControlMapExpirationTimeSeconds:0, UpdateControlMapBootExpirationTimeSeconds:0, UpdatePollIntervalSeconds:300, InventoryPollIntervalSeconds:600, SkipVerify:false, RetryPollIntervalSeconds:300, RetryPollCount:0, StateScriptTimeoutSeconds:0, StateScriptRetryTimeoutSeconds:0, StateScriptRetryIntervalSeconds:0, ModuleTimeoutSeconds:0, ServerCertificate:\"\", ServerURL:\"\", UpdateLogPath:\"\", TenantToken:\"\", Servers:[]client.MenderServer{client.MenderServer{ServerURL:\"https://****************\"}}}, ModulesPath:\"/usr/share/mender/modules/v3\", ModulesWorkPath:\"/var/lib/mender/modules/v3\", ArtifactInfoFile:\"/etc/mender/artifact_info\", ArtifactScriptsPath:\"/var/lib/mender/scripts\", RootfsScriptsPath:\"/etc/mender/scripts\"}" func="github.com/mendersoftware/mender/conf.(*MenderConfig).Validate"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=debug msg="Setting active partition from mount candidate: /dev/mmcblk1p2" func="github.com/mendersoftware/mender/installer.(*partitions).getAndCacheActivePartition"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=info msg="Mender running on partition: /dev/mmcblk1p2" func=github.com/mendersoftware/mender/cli.initDualRootfsDevice
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=debug msg="Loading update control maps from the store" func="github.com/mendersoftware/mender/app.(*ControlMapPool).loadFromStore"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=info msg="Handling loaded state: reboot" func="github.com/mendersoftware/mender/app.(*initState).Handle"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=info msg="Running Mender client version: 3.3.0" func="github.com/mendersoftware/mender/app.(*DeploymentLogManager).Enable"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=info msg="State transition: init [none] -> after-reboot [ArtifactReboot_Leave]" func=github.com/mendersoftware/mender/app.transitionState
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=debug msg="Have U-Boot variable: mender_check_saveenv_canary=" func="github.com/mendersoftware/mender/installer.(*UBootEnv).getEnvironmentVariable"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=debug msg="List of U-Boot variables:map[mender_check_saveenv_canary:]" func="github.com/mendersoftware/mender/installer.(*UBootEnv).getEnvironmentVariable"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=debug msg="Have U-Boot variable: upgrade_available=0" func="github.com/mendersoftware/mender/installer.(*UBootEnv).getEnvironmentVariable"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=debug msg="List of U-Boot variables:map[upgrade_available:0]" func="github.com/mendersoftware/mender/installer.(*UBootEnv).getEnvironmentVariable"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=error msg="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" func="github.com/mendersoftware/mender/app.(*updateState).HandleError"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=info msg="State transition: after-reboot [ArtifactReboot_Leave] -> rollback [ArtifactRollback]" func=github.com/mendersoftware/mender/app.transitionState
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=debug msg="Transitioning to error state" func=github.com/mendersoftware/mender/app.transitionState
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=info msg="Performing rollback" func="github.com/mendersoftware/mender/app.(*updateRollbackState).Handle"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=debug msg="Have U-Boot variable: mender_check_saveenv_canary=" func="github.com/mendersoftware/mender/installer.(*UBootEnv).getEnvironmentVariable"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=debug msg="List of U-Boot variables:map[mender_check_saveenv_canary:]" func="github.com/mendersoftware/mender/installer.(*UBootEnv).getEnvironmentVariable"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=debug msg="Have U-Boot variable: upgrade_available=0" func="github.com/mendersoftware/mender/installer.(*UBootEnv).getEnvironmentVariable"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=debug msg="List of U-Boot variables:map[upgrade_available:0]" func="github.com/mendersoftware/mender/installer.(*UBootEnv).getEnvironmentVariable"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=info msg="No update available, so no rollback needed." func="github.com/mendersoftware/mender/installer.(*dualRootfsDeviceImpl).Rollback"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=info msg="No update available, so no rollback needed." func="github.com/mendersoftware/mender/installer.(*dualRootfsDeviceImpl).Rollback"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=debug msg="Will try to rollback reboot the device" func="github.com/mendersoftware/mender/app.(*updateRollbackState).Handle"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=info msg="State transition: rollback [ArtifactRollback] -> rollback-reboot [ArtifactRollbackReboot_Enter]" func=github.com/mendersoftware/mender/app.transitionState
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=debug msg="statescript: The timeout for executing scripts is not defined; using default of 1h0m0s seconds" func=github.com/mendersoftware/mender/statescript.Launcher.getTimeout
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=info msg="Rebooting device(s) after rollback" func="github.com/mendersoftware/mender/app.(*updateRollbackRebootState).Handle"
Jan 10 15:55:09 cm50 mender[638]: time="2023-01-10T15:55:09+01:00" level=info msg="Mender rebooting from inactive partition: /dev/mmcblk1p2" func="github.com/mendersoftware/mender/installer.(*dualRootfsDeviceImpl).RollbackReboot"
Jan 10 15:55:10 cm50 systemd[1]: Stopping Mender OTA update service...
Jan 10 15:55:10 cm50 mender[638]: time="2023-01-10T15:55:10+01:00" level=info msg="Daemon terminated with SIGTERM" func=main.doMain
Jan 10 15:55:10 cm50 systemd[1]: mender-client.service: Succeeded.
Jan 10 15:55:10 cm50 systemd[1]: Stopped Mender OTA update service.
-- Reboot --
Jan 10 16:00:24 cm50 mender[647]: time="2023-01-10T16:00:24+01:00" level=debug msg="Reading Mender configuration from file /var/lib/mender/mender.conf" func=github.com/mendersoftware/mender/conf.readConfigFile
Any help would be deeply appreciated.