Error after using mender-convert

Hi all, I got some problems while using mender-converd to convert my own image. I am using raspberry pi4 and my OS is raspbian.

Here are some error logs:
– Logs begin at Tue 2020-11-03 10:18:39 HKT, end at Tue 2020-11-03 10:19:03 HKT. –
Nov 03 10:18:43 raspberrypi systemd[1]: Started Mender OTA update service.
Nov 03 10:18:48 raspberrypi mender[443]: time=“2020-11-03T10:18:48+08:00” level=info msg=“Loaded configuration file: /var/lib/mender/mender.conf”
Nov 03 10:18:48 raspberrypi mender[443]: time=“2020-11-03T10:18:48+08:00” level=info msg=“Loaded configuration file: /etc/mender/mender.conf”
Nov 03 10:18:48 raspberrypi mender[443]: time=“2020-11-03T10:18:48+08:00” level=info msg=“Mender running on partition: /dev/mmcblk0p2”
Nov 03 10:18:49 raspberrypi mender[443]: time=“2020-11-03T10:18:49+08:00” level=error msg="Failed to Load the Server certificate. Err SSL errors: "
Nov 03 10:18:49 raspberrypi mender[443]: time=“2020-11-03T10:18:49+08:00” level=warning msg="Failed to load the server TLS certificate settings: SSL errors: "
Nov 03 10:18:49 raspberrypi mender[443]: time=“2020-11-03T10:18:49+08:00” level=error msg="Failed to Load the Server certificate. Err SSL errors: "
Nov 03 10:18:49 raspberrypi mender[443]: time=“2020-11-03T10:18:49+08:00” level=warning msg="Failed to load the server TLS certificate settings: SSL errors: "
Nov 03 10:18:49 raspberrypi mender[443]: time=“2020-11-03T10:18:49+08:00” level=info msg=“State transition: init [none] -> init [none]”
Nov 03 10:18:49 raspberrypi mender[443]: time=“2020-11-03T10:18:49+08:00” level=info msg=“State transition: init [none] -> idle [Idle]”
Nov 03 10:18:49 raspberrypi mender[443]: time=“2020-11-03T10:18:49+08:00” level=info msg=“State transition: idle [Idle] -> authorize-wait [Idle]”
Nov 03 10:18:49 raspberrypi mender[443]: time=“2020-11-03T10:18:49+08:00” level=info msg=“State transition: authorize-wait [Idle] -> authorize [Sync]”
Nov 03 10:18:49 raspberrypi mender[443]: time=“2020-11-03T10:18:49+08:00” level=error msg="Failure occurred while executing authorization request: &url.Error{Op:“Post”, URL:"https://hosted.mender.io
Nov 03 10:18:49 raspberrypi mender[443]: time=“2020-11-03T10:18:49+08:00” level=error msg="Authorization request error: dial tcp: lookup hosted.mender.io on 192.165.1.1:53: dial udp 192.165.1.1:53: con
Nov 03 10:18:49 raspberrypi mender[443]: time=“2020-11-03T10:18:49+08:00” level=error msg="Failure occurred while executing authorization request: &url.Error{Op:“Post”, URL:"https://hosted.mender.io
Nov 03 10:18:49 raspberrypi mender[443]: time=“2020-11-03T10:18:49+08:00” level=error msg="Authorization request error: dial tcp: lookup hosted.mender.io on 192.165.1.1:53: dial udp 192.165.1.1:53: con
Nov 03 10:18:49 raspberrypi mender[443]: time=“2020-11-03T10:18:49+08:00” level=error msg="Authorize failed: transient error: authorization request failed: generic error occurred while executing author
Nov 03 10:18:49 raspberrypi mender[443]: time=“2020-11-03T10:18:49+08:00” level=error msg="Authorize failed: transient error: authorization request failed: generic error occurred while executing author
Nov 03 10:18:49 raspberrypi mender[443]: time=“2020-11-03T10:18:49+08:00” level=info msg=“State transition: authorize [Sync] -> authorize-wait [Idle]”

thanks for help

Here is the other error log when enabled SSH and reboot

– Logs begin at Thu 2019-02-14 18:11:59 HKT, end at Tue 2020-11-03 11:20:29 HKT. –
Nov 03 11:20:03 raspberrypi systemd[1]: Started Mender OTA update service.
Nov 03 11:20:08 raspberrypi mender[427]: time=“2020-11-03T11:20:08+08:00” level=info msg=“Loaded configuration file: /var/lib/mender/mender.conf”
Nov 03 11:20:08 raspberrypi mender[427]: time=“2020-11-03T11:20:08+08:00” level=info msg=“Loaded configuration file: /etc/mender/mender.conf”
Nov 03 11:20:08 raspberrypi mender[427]: time=“2020-11-03T11:20:08+08:00” level=info msg=“Mender running on partition: /dev/mmcblk0p2”
Nov 03 11:20:08 raspberrypi mender[427]: time=“2020-11-03T11:20:08+08:00” level=error msg="Failed to Load the Server certificate. Err SSL errors: "
Nov 03 11:20:08 raspberrypi mender[427]: time=“2020-11-03T11:20:08+08:00” level=warning msg="Failed to load the server TLS certificate settings: SSL errors: "
Nov 03 11:20:08 raspberrypi mender[427]: time=“2020-11-03T11:20:08+08:00” level=error msg="Failed to Load the Server certificate. Err SSL errors: "
Nov 03 11:20:08 raspberrypi mender[427]: time=“2020-11-03T11:20:08+08:00” level=warning msg="Failed to load the server TLS certificate settings: SSL errors: "
Nov 03 11:20:08 raspberrypi mender[427]: time=“2020-11-03T11:20:08+08:00” level=info msg=“State transition: init [none] -> init [none]”
Nov 03 11:20:08 raspberrypi mender[427]: time=“2020-11-03T11:20:08+08:00” level=info msg=“State transition: init [none] -> idle [Idle]”
Nov 03 11:20:08 raspberrypi mender[427]: time=“2020-11-03T11:20:08+08:00” level=info msg=“authorization data present and valid”
Nov 03 11:20:08 raspberrypi mender[427]: time=“2020-11-03T11:20:08+08:00” level=info msg=“State transition: idle [Idle] -> check-wait [Idle]”
Nov 03 11:20:08 raspberrypi mender[427]: time=“2020-11-03T11:20:08+08:00” level=info msg=“State transition: check-wait [Idle] -> inventory-update [Sync]”
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=warning msg=“Inventory tool /usr/share/mender/inventory/mender-inventory-geo wait failed: exit status 2”
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=warning msg=“Inventory tool /usr/share/mender/inventory/mender-inventory-geo wait failed: exit status 2”
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=error msg="Failed to submit inventory data: Patch https://hosted.mender.io/api/devices/v1/inventory/device/attributes: di
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=warning msg="Failed to refresh inventory: failed to submit inventory data: inventory submit failed: Patch https://hosted.
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=error msg="Failed to submit inventory data: Patch https://hosted.mender.io/api/devices/v1/inventory/device/attributes: di
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=warning msg="Failed to refresh inventory: failed to submit inventory data: inventory submit failed: Patch https://hosted.
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=info msg=“State transition: inventory-update [Sync] -> check-wait [Idle]”
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=info msg=“State transition: check-wait [Idle] -> update-check [Sync]”
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=error msg="Error receiving scheduled update data: POST update check request failed: Post https://hosted.mender.io/api/dev
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=error msg="Error receiving scheduled update data: POST update check request failed: Post https://hosted.mender.io/api/dev
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=error msg="Update check failed: transient error: POST update check request failed: Post https://hosted.mender.io/api/devi
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=error msg="Update check failed: transient error: POST update check request failed: Post https://hosted.mender.io/api/devi
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=info msg=“State transition: update-check [Sync] -> error [Error]”
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=info msg="Handling error state, current error: transient error: POST update check request failed: Post https://hosted.men
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=info msg=“State transition: error [Error] -> idle [Idle]”
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=info msg=“authorization data present and valid”
Nov 03 11:20:09 raspberrypi mender[427]: time=“2020-11-03T11:20:09+08:00” level=info msg=“State transition: idle [Idle] -> check-wait [Idle]”
Nov 03 11:20:13 raspberrypi mender[427]: time=“2020-11-03T11:20:13+08:00” level=info msg=“State transition: check-wait [Idle] -> inventory-update [Sync]”
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=warning msg=“Inventory tool /usr/share/mender/inventory/mender-inventory-geo wait failed: exit status 2”
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=warning msg=“Inventory tool /usr/share/mender/inventory/mender-inventory-geo wait failed: exit status 2”
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=error msg="Failed to submit inventory data: Patch https://hosted.mender.io/api/devices/v1/inventory/device/attributes: di
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=error msg="Failed to submit inventory data: Patch https://hosted.mender.io/api/devices/v1/inventory/device/attributes: di
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=warning msg="Failed to refresh inventory: failed to submit inventory data: inventory submit failed: Patch https://hosted.
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=warning msg="Failed to refresh inventory: failed to submit inventory data: inventory submit failed: Patch https://hosted.
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=info msg=“State transition: inventory-update [Sync] -> check-wait [Idle]”
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=info msg=“State transition: check-wait [Idle] -> update-check [Sync]”
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=error msg="Error receiving scheduled update data: POST update check request failed: Post https://hosted.mender.io/api/dev
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=error msg="Update check failed: transient error: POST update check request failed: Post https://hosted.mender.io/api/devi
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=error msg="Error receiving scheduled update data: POST update check request failed: Post https://hosted.mender.io/api/dev
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=error msg="Update check failed: transient error: POST update check request failed: Post https://hosted.mender.io/api/devi
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=info msg=“State transition: update-check [Sync] -> error [Error]”
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=info msg="Handling error state, current error: transient error: POST update check request failed: Post https://hosted.men
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=info msg=“State transition: error [Error] -> idle [Idle]”
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=info msg=“authorization data present and valid”
Nov 03 11:20:14 raspberrypi mender[427]: time=“2020-11-03T11:20:14+08:00” level=info msg=“State transition: idle [Idle] -> check-wait [Idle]”
Nov 03 11:20:18 raspberrypi mender[427]: time=“2020-11-03T11:20:18+08:00” level=info msg=“State transition: check-wait [Idle] -> inventory-update [Sync]”
Nov 03 11:20:20 raspberrypi mender[427]: time=“2020-11-03T11:20:20+08:00” level=warning msg=“Inventory tool /usr/share/mender/inventory/mender-inventory-geo wait failed: exit status 3”
Nov 03 11:20:20 raspberrypi mender[427]: time=“2020-11-03T11:20:20+08:00” level=warning msg=“Inventory tool /usr/share/mender/inventory/mender-inventory-geo wait failed: exit status 3”
Nov 03 11:20:21 raspberrypi mender[427]: time=“2020-11-03T11:20:21+08:00” level=info msg=“State transition: inventory-update [Sync] -> check-wait [Idle]”
Nov 03 11:20:21 raspberrypi mender[427]: time=“2020-11-03T11:20:21+08:00” level=info msg=“State transition: check-wait [Idle] -> update-check [Sync]”
Nov 03 11:20:22 raspberrypi mender[427]: time=“2020-11-03T11:20:22+08:00” level=info msg=“State transition: update-check [Sync] -> check-wait [Idle]”
Nov 03 11:20:23 raspberrypi mender[427]: time=“2020-11-03T11:20:23+08:00” level=info msg=“State transition: check-wait [Idle] -> inventory-update [Sync]”
Nov 03 11:20:25 raspberrypi mender[427]: time=“2020-11-03T11:20:25+08:00” level=warning msg=“Inventory tool /usr/share/mender/inventory/mender-inventory-geo wait failed: exit status 3”

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

The error still exist after I make a symlink

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?

Time synchronization can be an issue but that would leave a different set of log messages.

All I can tell from this log message is that your client cannot connect to your server:

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

Are you certain that 192.168.1.1 is the right IP address and that the server is actively listening on port 443 there?

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.

You don’t need server.crt if you are using one of our hosted plans as we use a CA-signed certificate.

To switch from the demo server to hosted, you need to change the server URL and add the tenant token into your mender.conf file.

Drew

what do I need to change on the server URL in order to use the hosted server

Here is an other problem, when I update my raspbian. The image cannot boot anymore.

I type sudo apt-get update
and sudo apt-get upgrade

To use hosted Mender, set the serverURL to https://hosted.mender.io.

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.

Drew

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.

I tried to update the golden image before I run through mender-convert, the problem still exists.

I just tried to replicate this behavior but it worked ok for me. My process was as follows:

From my desktop:

sudo dd if=input/2020-05-27-raspios-buster-lite-armhf.zip of=/dev/sda`

Move SDCard into RpI and boot. Login and run:

sudo apt update
sudo apt dist-upgrade
sudo apt autoremove
sudo reboot

Wait for the reboot, login and run

sudo shutdown -h now

Move SDCard back to PS and run:

sudo dd if=/dev/sda of=input/2020-05-27-raspios-buster-lite-armhf-updated.img bs=8M status=progress conv=fdatasync
MENDER_ARTIFACT_NAME=release-1 ./docker-mender-convert --disk-image input/2020-05-27-raspios-buster-lite-armhf-updated.img --config configs/raspberrypi3_config --overlay rootfs_overlay_demo/
dd if=deploy/2020-05-27-raspios-buster-lite-armhf-updated-raspberrypi3-mender.img of=/dev/sda

If you can provide more specifics about the exact set of steps you followed, versions of components, etc, hopefully we can spot something.

Drew

The problem still exist, here is my process.

From my desktop:

I download the latest rasbian image from website and store it into sd card

Move sd card into rpi and boot. login and run
sudo apt-get update
sudo apt-get upgrade
sudo reboot

then back to desktop and use the sd card to create a image.
and run

sudo MENDER_ARTIFACT_NAME=update ./docker-mender-convert --disk-image input/update.img --config configs/raspberrypi4_config --overlay rootfs_overlay_demo/

What do you do after running mender-convert?

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.