when I try to update through hosted.mender.io, here is another error log.
2020-11-03 08:33:30 +0000 UTC info: Running Mender client version: 2.4.0
2020-11-03 08:33:31 +0000 UTC info: State transition: update-fetch [Download_Enter] -> update-store [Download_Enter]
2020-11-03 08:33:31 +0000 UTC info: No public key was provided for authenticating the artifact
2020-11-03 08:33:31 +0000 UTC info: Opening device “/dev/mmcblk0p3” for writing
2020-11-03 08:33:31 +0000 UTC info: Native sector size of block device /dev/mmcblk0p3 is 512 bytes. Mender will write in chunks of 1048576 bytes
2020-11-03 09:05:29 +0000 UTC info: All bytes were successfully written to the new partition
2020-11-03 09:05:29 +0000 UTC info: The optimized block-device writer wrote a total of 5265 frames, where 3519 frames did need to be rewritten (i.e., skipped)
2020-11-03 09:05:29 +0000 UTC info: Wrote 5520678912/5520678912 bytes to the inactive partition
2020-11-03 09:05:30 +0000 UTC info: State transition: update-store [Download_Enter] -> update-after-store [Download_Leave]
2020-11-03 09:05:30 +0000 UTC info: State transition: update-after-store [Download_Leave] -> update-install [ArtifactInstall]
2020-11-03 09:05:30 +0000 UTC info: Enabling partition with new image installed to be a boot candidate: 3
2020-11-03 09:05:30 +0000 UTC info: State transition: update-install [ArtifactInstall] -> reboot [ArtifactReboot_Enter]
2020-11-03 09:05:31 +0000 UTC info: Rebooting device(s)
2020-11-03 09:05:31 +0000 UTC info: Mender rebooting from active partition: /dev/mmcblk0p2
2020-11-03 07:54:33 +0000 UTC info: Running Mender client version: 2.4.0
2020-11-03 07:54:33 +0000 UTC info: State transition: init [none] -> after-reboot [ArtifactReboot_Leave]
2020-11-03 07:54:33 +0000 UTC info: State transition: after-reboot [ArtifactReboot_Leave] -> after-reboot [ArtifactReboot_Leave]
2020-11-03 07:54:33 +0000 UTC info: State transition: after-reboot [ArtifactReboot_Leave] -> update-commit [ArtifactCommit_Enter]
2020-11-03 09:06:41 +0000 UTC error: Failed to report status: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/aca4eac4-b6ff-4f24-8db3-5245f5206eb9/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-03 09:06:41 +0000 UTC error: error reporting update status: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/aca4eac4-b6ff-4f24-8db3-5245f5206eb9/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-03 09:06:41 +0000 UTC error: Failed to send status report to server: transient error: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/aca4eac4-b6ff-4f24-8db3-5245f5206eb9/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-03 09:06:41 +0000 UTC info: State transition: update-commit [ArtifactCommit_Enter] -> update-pre-commit-status-report-retry [ArtifactCommit_Enter]
2020-11-03 09:07:11 +0000 UTC info: State transition: update-pre-commit-status-report-retry [ArtifactCommit_Enter] -> update-commit [ArtifactCommit_Enter]
2020-11-03 09:07:44 +0000 UTC error: Failed to report status: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/aca4eac4-b6ff-4f24-8db3-5245f5206eb9/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-03 09:07:44 +0000 UTC error: error reporting update status: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/aca4eac4-b6ff-4f24-8db3-5245f5206eb9/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-03 09:07:44 +0000 UTC error: Failed to send status report to server: transient error: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/aca4eac4-b6ff-4f24-8db3-5245f5206eb9/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-03 09:07:44 +0000 UTC info: State transition: update-commit [ArtifactCommit_Enter] -> update-pre-commit-status-report-retry [ArtifactCommit_Enter]
2020-11-03 09:08:14 +0000 UTC info: State transition: update-pre-commit-status-report-retry [ArtifactCommit_Enter] -> update-commit [ArtifactCommit_Enter]
2020-11-03 09:08:46 +0000 UTC error: Failed to report status: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/aca4eac4-b6ff-4f24-8db3-5245f5206eb9/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-03 09:08:46 +0000 UTC error: error reporting update status: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/aca4eac4-b6ff-4f24-8db3-5245f5206eb9/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-03 09:08:46 +0000 UTC error: Failed to send status report to server: transient error: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/aca4eac4-b6ff-4f24-8db3-5245f5206eb9/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-03 09:08:46 +0000 UTC info: State transition: update-commit [ArtifactCommit_Enter] -> update-pre-commit-status-report-retry [ArtifactCommit_Enter]
2020-11-03 09:09:16 +0000 UTC info: State transition: update-pre-commit-status-report-retry [ArtifactCommit_Enter] -> update-commit [ArtifactCommit_Enter]
2020-11-03 09:09:48 +0000 UTC error: Failed to report status: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/aca4eac4-b6ff-4f24-8db3-5245f5206eb9/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-03 09:09:48 +0000 UTC error: error reporting update status: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/aca4eac4-b6ff-4f24-8db3-5245f5206eb9/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-03 09:09:48 +0000 UTC error: Failed to send status report to server: transient error: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/aca4eac4-b6ff-4f24-8db3-5245f5206eb9/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-03 09:09:48 +0000 UTC info: State transition: update-commit [ArtifactCommit_Enter] -> update-pre-commit-status-report-retry [ArtifactCommit_Enter]
2020-11-03 09:09:48 +0000 UTC error: transient error: Tried sending status report maximum number of times.
2020-11-03 09:09:48 +0000 UTC info: State transition: update-pre-commit-status-report-retry [ArtifactCommit_Enter] -> rollback [ArtifactRollback]
2020-11-03 09:09:48 +0000 UTC info: Performing rollback
2020-11-03 09:09:48 +0000 UTC info: Setting partition for rollback: 2
2020-11-03 09:09:48 +0000 UTC info: State transition: rollback [ArtifactRollback] -> rollback-reboot [ArtifactRollbackReboot_Enter]
2020-11-03 09:09:48 +0000 UTC info: Rebooting device(s) after rollback
2020-11-03 09:09:48 +0000 UTC info: Mender rebooting from inactive partition: /dev/mmcblk0p3
2020-11-03 09:05:50 +0000 UTC info: Running Mender client version: 2.4.0
2020-11-03 09:05:50 +0000 UTC info: Mender shut down in state: rollback-reboot
2020-11-03 09:05:50 +0000 UTC info: State transition: init [none] -> verify-rollback-reboot [ArtifactRollbackReboot_Leave]
2020-11-03 09:05:50 +0000 UTC info: State transition: verify-rollback-reboot [ArtifactRollbackReboot_Leave] -> after-rollback-reboot [ArtifactRollbackReboot_Leave]
2020-11-03 09:05:50 +0000 UTC info: State transition: after-rollback-reboot [ArtifactRollbackReboot_Leave] -> update-error [ArtifactFailure]
2020-11-03 09:05:50 +0000 UTC info: State transition: update-error [ArtifactFailure] -> cleanup [Error]
2020-11-03 09:05:50 +0000 UTC info: State transition: cleanup [Error] -> update-status-report [none]
These all appear to be network connectivity issues. If you are connecting your device using Wifi you will need to arrange for the credentials to be stored in /data so that they are not overwritten when you install a new image. I think just moving /etc/NetworkManager/system-connections/ to somewhere in /data/ and then replacing it with a symlink should work.
Drew
2020-11-04 02:44:50 +0000 UTC info: Running Mender client version: 2.4.0
2020-11-04 02:44:51 +0000 UTC info: State transition: update-fetch [Download_Enter] -> update-store [Download_Enter]
2020-11-04 02:44:51 +0000 UTC info: No public key was provided for authenticating the artifact
2020-11-04 02:44:51 +0000 UTC info: Opening device “/dev/mmcblk0p3” for writing
2020-11-04 02:44:51 +0000 UTC info: Native sector size of block device /dev/mmcblk0p3 is 512 bytes. Mender will write in chunks of 1048576 bytes
2020-11-04 03:12:07 +0000 UTC info: All bytes were successfully written to the new partition
2020-11-04 03:12:07 +0000 UTC info: The optimized block-device writer wrote a total of 5345 frames, where 3703 frames did need to be rewritten (i.e., skipped)
2020-11-04 03:12:07 +0000 UTC info: Wrote 5604231168/5604231168 bytes to the inactive partition
2020-11-04 03:12:08 +0000 UTC info: State transition: update-store [Download_Enter] -> update-after-store [Download_Leave]
2020-11-04 03:12:08 +0000 UTC info: State transition: update-after-store [Download_Leave] -> update-install [ArtifactInstall]
2020-11-04 03:12:08 +0000 UTC info: Enabling partition with new image installed to be a boot candidate: 3
2020-11-04 03:12:08 +0000 UTC info: State transition: update-install [ArtifactInstall] -> reboot [ArtifactReboot_Enter]
2020-11-04 03:12:09 +0000 UTC info: Rebooting device(s)
2020-11-04 03:12:09 +0000 UTC info: Mender rebooting from active partition: /dev/mmcblk0p2
2020-11-04 02:13:44 +0000 UTC info: Running Mender client version: 2.4.0
2020-11-04 02:13:44 +0000 UTC info: State transition: init [none] -> after-reboot [ArtifactReboot_Leave]
2020-11-04 02:13:44 +0000 UTC info: State transition: after-reboot [ArtifactReboot_Leave] -> after-reboot [ArtifactReboot_Leave]
2020-11-04 02:13:44 +0000 UTC info: State transition: after-reboot [ArtifactReboot_Leave] -> update-commit [ArtifactCommit_Enter]
2020-11-04 03:13:37 +0000 UTC error: Failed to report status: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/d23e9284-6eae-4877-836a-370a5574c350/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-04 03:13:37 +0000 UTC error: error reporting update status: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/d23e9284-6eae-4877-836a-370a5574c350/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-04 03:13:37 +0000 UTC error: Failed to send status report to server: transient error: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/d23e9284-6eae-4877-836a-370a5574c350/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-04 03:13:37 +0000 UTC info: State transition: update-commit [ArtifactCommit_Enter] -> update-pre-commit-status-report-retry [ArtifactCommit_Enter]
2020-11-04 03:14:07 +0000 UTC info: State transition: update-pre-commit-status-report-retry [ArtifactCommit_Enter] -> update-commit [ArtifactCommit_Enter]
2020-11-04 03:14:39 +0000 UTC error: Failed to report status: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/d23e9284-6eae-4877-836a-370a5574c350/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-04 03:14:39 +0000 UTC error: error reporting update status: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/d23e9284-6eae-4877-836a-370a5574c350/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-04 03:14:39 +0000 UTC error: Failed to send status report to server: transient error: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/d23e9284-6eae-4877-836a-370a5574c350/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-04 03:14:39 +0000 UTC info: State transition: update-commit [ArtifactCommit_Enter] -> update-pre-commit-status-report-retry [ArtifactCommit_Enter]
2020-11-04 03:15:09 +0000 UTC info: State transition: update-pre-commit-status-report-retry [ArtifactCommit_Enter] -> update-commit [ArtifactCommit_Enter]
2020-11-04 03:15:41 +0000 UTC error: Failed to report status: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/d23e9284-6eae-4877-836a-370a5574c350/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-04 03:15:41 +0000 UTC error: error reporting update status: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/d23e9284-6eae-4877-836a-370a5574c350/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-04 03:15:41 +0000 UTC error: Failed to send status report to server: transient error: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/d23e9284-6eae-4877-836a-370a5574c350/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-04 03:15:41 +0000 UTC info: State transition: update-commit [ArtifactCommit_Enter] -> update-pre-commit-status-report-retry [ArtifactCommit_Enter]
2020-11-04 03:16:11 +0000 UTC info: State transition: update-pre-commit-status-report-retry [ArtifactCommit_Enter] -> update-commit [ArtifactCommit_Enter]
2020-11-04 03:16:43 +0000 UTC error: Failed to report status: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/d23e9284-6eae-4877-836a-370a5574c350/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-04 03:16:43 +0000 UTC error: error reporting update status: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/d23e9284-6eae-4877-836a-370a5574c350/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-04 03:16:43 +0000 UTC error: Failed to send status report to server: transient error: reporting status failed: Put https://docker.mender.io/api/devices/v1/deployments/device/deployments/d23e9284-6eae-4877-836a-370a5574c350/status: dial tcp 192.168.1.1:443: connect: connection timed out
2020-11-04 03:16:43 +0000 UTC info: State transition: update-commit [ArtifactCommit_Enter] -> update-pre-commit-status-report-retry [ArtifactCommit_Enter]
2020-11-04 03:16:43 +0000 UTC error: transient error: Tried sending status report maximum number of times.
2020-11-04 03:16:43 +0000 UTC info: State transition: update-pre-commit-status-report-retry [ArtifactCommit_Enter] -> rollback [ArtifactRollback]
2020-11-04 03:16:43 +0000 UTC info: Performing rollback
2020-11-04 03:16:43 +0000 UTC info: Setting partition for rollback: 2
2020-11-04 03:16:43 +0000 UTC info: State transition: rollback [ArtifactRollback] -> rollback-reboot [ArtifactRollbackReboot_Enter]
2020-11-04 03:16:43 +0000 UTC info: Rebooting device(s) after rollback
2020-11-04 03:16:43 +0000 UTC info: Mender rebooting from inactive partition: /dev/mmcblk0p3
2020-11-04 03:17:40 +0000 UTC info: Running Mender client version: 2.4.0
2020-11-04 03:17:40 +0000 UTC info: Mender shut down in state: rollback-reboot
2020-11-04 03:17:40 +0000 UTC info: State transition: init [none] -> verify-rollback-reboot [ArtifactRollbackReboot_Leave]
2020-11-04 03:17:40 +0000 UTC info: State transition: verify-rollback-reboot [ArtifactRollbackReboot_Leave] -> after-rollback-reboot [ArtifactRollbackReboot_Leave]
2020-11-04 03:17:40 +0000 UTC info: State transition: after-rollback-reboot [ArtifactRollbackReboot_Leave] -> update-error [ArtifactFailure]
2020-11-04 03:17:40 +0000 UTC info: State transition: update-error [ArtifactFailure] -> cleanup [Error]
2020-11-04 03:17:40 +0000 UTC info: State transition: cleanup [Error] -> update-status-report [none]
However, I notice that the time change after update the system.Will it be the reason that I failed my update?
I am going to use hosted mender server and I am just change the server certificate to /etc/mender/server.crt. Do I need to change other things? At this this I don’t want to set up a server by myself, I want to use the default hosted mender server.
Using apt on a Mender-enabled system can mess up things depending on how it handles kernels, dtbs, and the like. Our recommended workflow is that you do those steps on your golden master image, that does not have Mender integrated, and then reinvoke mender-convert to make sure that the partitions, bootloader variables and the like are set to the values needed for Mender.
I tried update and upgrade on the golden image before I convert the image. The problem still exist. When boot the image, it enter the black screen and stuck. I am using the latest release raspbian
When I used previous version of raspbian, it can create a bootable image. After I sudo apt-get update and sudo apt-get upgrade. It shows error meesage : cannot load the kernel.
Right. The apt upgrade is likely installing a newer kernel and the way Raspbian installs it won’t work for Mender. You need to run the upgrade on a fresh image that has not already been run through mender-convert first. Then use mender-convert to get the kernel moved to where it is needed for Mender.
Then I found the .img file that create by mender convert in the deploy file and store into sd card.Then try to boot the raspberry pi 4 with that sd card.