Hi Guys,
Using Jetson Nano device, yocto dunfell base branch, I am trying to setup the server side for mender.
Have been able to make it work, server version 2.7.0, device is shown on the server and inventory looks good.
However, when putting a release and deploying to device, it is pending forever, waiting for device.
From the device side I see the following in the logs:
Jun 3 08:22:42 jetson-nano-emmc-cot user.info mender[729693]: time=“2021-06-03T08:22:42+03:00” level=info msg=“State transition: check-wait [Idle] → update-check [Sync]” func=github.com/mendersoftware/mender/app.transitionState file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/bu
Jun 3 08:22:42 jetson-nano-emmc-cot user.warn mender[729693]: time=“2021-06-03T08:22:42+03:00” level=warning msg=“Client received invalid response status code: 503” func=github.com/mendersoftware/mender/client.processUpdateResponse file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t
Jun 3 08:22:42 jetson-nano-emmc-cot user.err mender[729693]: time=“2021-06-03T08:22:42+03:00” level=error msg=“Error receiving scheduled update data: (request_id: ): Invalid response received from server server error message: failed to parse server response: json: cannot unmarsha
Jun 3 08:22:42 jetson-nano-emmc-cot user.err mender[729693]: time=“2021-06-03T08:22:42+03:00” level=error msg=“Update check failed: transient error: (request_id: ): Invalid response received from server server error message: failed to parse server response: json: cannot unmarshal
Jun 3 08:22:42 jetson-nano-emmc-cot user.info mender[729693]: time=“2021-06-03T08:22:42+03:00” level=info msg=“State transition: update-check [Sync] → error [Error]” func=github.com/mendersoftware/mender/app.transitionState file=”/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/build-
Jun 3 08:22:42 jetson-nano-emmc-cot user.info mender[729693]: time=“2021-06-03T08:22:42+03:00” level=info msg=“Handling error state, current error: transient error: (request_id: ): Invalid response received from server server error message: failed to parse server response: json: c
Jun 3 08:22:42 jetson-nano-emmc-cot user.info mender[729693]: time=“2021-06-03T08:22:42+03:00” level=info msg=“State transition: error [Error] → idle [Idle]” func=github.com/mendersoftware/mender/app.transitionState file=”/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/build-nano-emm
Jun 3 08:22:42 jetson-nano-emmc-cot user.info mender[729693]: time=“2021-06-03T08:22:42+03:00” level=info msg=“State transition: idle [Idle] → check-wait [Idle]” func=github.com/mendersoftware/mender/app.transitionState file=”/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/build-nano
On the device side, mender client version is 2.6.0 (couldnt find a client version 2.7.0 and dont know the client to server compatibility matrix).
In the meantime, I looked at the server logs and saw this (mender deploy docker log):
time=“2021-06-03T11:05:10Z” level=error msg="error reaching artifact storage service: SerializationError: failed to decode REST XML response\n\tstatus code: 200, request id: \ncaused by: XML syntax error on line 8: element closed by " file=response_helpers.go func=rest_utils.restErrWithLogMsg line=110 request_id=03887c01-8b74-46fd-a0f2-4d28c5d9d1ab
Hi @oleorhagen
Here is the full log, I had to cut the log to match the size limitation:
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" 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 file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/statescript/executor.go:82"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="Handle update check state" func="github.com/mendersoftware/mender/app.(*updateCheckState).Handle" file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/app/state.go:641"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="Returning artifact name from /etc/mender/artifact_info file." func="github.com/mendersoftware/mender/device.(*DeviceManager).GetCurrentArtifactName" file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/device/device.go:134"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="Reading data from the device manifest file: /etc/mender/artifact_info" func=github.com/mendersoftware/mender/device.GetManifestData file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/device/device.go:80"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="artifact_name=juganu-image-prod_3.1-d63ee59-tirank" func=github.com/mendersoftware/mender/device.GetManifestData file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/device/device.go:91"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="Current manifest data: juganu-image-prod_3.1-d63ee59-tirank" func=github.com/mendersoftware/mender/device.GetManifestData file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/device/device.go:98"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="Reading data from the device manifest file: /var/lib/mender/device_type" func=github.com/mendersoftware/mender/device.GetManifestData file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/device/device.go:80"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="device_type=jetson-nano-emmcsd-juganu-cot" func=github.com/mendersoftware/mender/device.GetManifestData file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/device/device.go:91"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="Current manifest data: jetson-nano-emmcsd-juganu-cot" func=github.com/mendersoftware/mender/device.GetManifestData file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/device/device.go:98"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="received the GET_AUTH_TOKEN action" func="github.com/mendersoftware/mender/app.(*menderAuthManagerService).run" file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/app/auth.go:352"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="Connecting to server ota.nvidia.local.juganu.com" func="github.com/mendersoftware/mender/client.(*ApiRequest).Do" file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/client/client.go:219"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="device provides not accepted by the server. Response code: 503" func="github.com/mendersoftware/mender/client.(*UpdateClient).getUpdateInfo" file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/client/client_update.go:103"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="Connecting to server ota.nvidia.local.juganu.com" func="github.com/mendersoftware/mender/client.(*ApiRequest).Do" file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/client/client.go:219"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="Received response:503 Service Unavailable" func=github.com/mendersoftware/mender/client.processUpdateResponse file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/client/client_update.go:184"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=warning msg="Client received invalid response status code: 503" func=github.com/mendersoftware/mender/client.processUpdateResponse file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/client/client_update.go:215"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=error msg="Error receiving scheduled update data: (request_id: ): Invalid response received from server server error message: failed to parse server response: json: cannot unmarshal object into Go struct field .error of type string" func="github.com/mendersoftware/mender/app.(*Mender).CheckUpdate" file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/app/mender.go:309"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=error msg="Update check failed: transient error: (request_id: ): Invalid response received from server server error message: failed to parse server response: json: cannot unmarshal object into Go struct field .error of type string" func="github.com/mendersoftware/mender/app.(*updateCheckState).Handle" file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/app/state.go:652"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=info msg="State transition: update-check [Sync] -> error [Error]" func=github.com/mendersoftware/mender/app.transitionState file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/app/mender.go:461"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="Transitioning to error state" func=github.com/mendersoftware/mender/app.transitionState file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/app/mender.go:477"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" 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 file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/statescript/executor.go:82"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" 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 file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/statescript/executor.go:82"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=info msg="Handling error state, current error: transient error: (request_id: ): Invalid response received from server server error message: failed to parse server response: json: cannot unmarshal object into Go struct field .error of type string" func="github.com/mendersoftware/mender/app.(*errorState).Handle" file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/app/state.go:1208"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=info msg="State transition: error [Error] -> idle [Idle]" func=github.com/mendersoftware/mender/app.transitionState file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/app/mender.go:461"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" 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 file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/statescript/executor.go:82"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" 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 file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/statescript/executor.go:82"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="received the GET_AUTH_TOKEN action" func="github.com/mendersoftware/mender/app.(*menderAuthManagerService).run" file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/app/auth.go:352"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=info msg="State transition: idle [Idle] -> check-wait [Idle]" func=github.com/mendersoftware/mender/app.transitionState file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/app/mender.go:461"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="Handle check wait state" func="github.com/mendersoftware/mender/app.(*checkWaitState).Handle" file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/app/state.go:1102"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="Check wait state; next checks: (update: 2021-06-06 21:00:31.353348861 +0000 UTC m=+601.464107374) (inventory: 2021-06-06 21:00:30.294817806 +0000 UTC m=+600.405576111)" func="github.com/mendersoftware/mender/app.(*checkWaitState).Handle" file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/app/state.go:1113"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="Next check: 2021-06-06 21:00:30.294817806 +0000 UTC m=+600.405576111:inventory-update, (2021-06-06 21:00:01.484466822 +0000 UTC m=+571.595225179)" func="github.com/mendersoftware/mender/app.(*checkWaitState).Handle" file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/app/state.go:1131"
Jun 06 21:00:01 jetson-nano-emmcsd-juganu-cot mender[104661]: time="2021-06-06T21:00:01Z" level=debug msg="Waiting 28.810350932s for the next state" func="github.com/mendersoftware/mender/app.(*checkWaitState).Handle" file="/home/tirank/GIT/nvidia_1.0.5_new/tegra-l4t/nano-emmcsd-prod/tmp/work/jetson_nano_emmcsd_juganu_cot-juganu-linux/mender-client/2.6.0-r0/build/src/github.com/mendersoftware/mender/app/state.go:1159"
I am guessing this is not an issue on the client side, but rather with how the server is set up, considering the error code it receives when fetching the update.
@merlin perhaps you could help debugging the 503 from the server while fetching the update? And then I’ll be perusing from the sideline.