Hi @Hari Prashanth Sharing pointers from the thread Device update failing to help other community members with similar issue.
Here are some points that you might seem helpful.
- Your update script is wrong. IoT hub expects the script in a specific manner(Some functions and flags should be there by default you can add yours on top of it). Refer to example script to generate your script.
- To understand the execution of the script on the device side please refer to the readme.MD . Not very descriptive but still give you basic idea of how the script is executed on the device side.
- Now coming on to the actual issue that you are facing, that error code 810549765 which means ADUC_ERC_SCRIPT_HANDLER_INSTALL_FAILURE_PARSE_RESULT_FILE. You can find the extended results codes here .
- The script gets called at different stages with different flags. The following are the flags that get called, in chronological order
-
--action-is-installed
-
--action-download
-
--action-install
-
--action-apply
-
--action-cancel, if needed
- All of these flags are not passed at the same time. The script run again and again with different flags. At each stage a result file is generated, which decides the execution of the next step.
- In your scenario, it is not able to find the download result file, action--action-download_aduc_result.json. Hence the error.
- My advice is just fix your update script as per the example script and this particular error should be gone.
- Last but not the least, try referring to the repo than the official documentation. It is easier to understand what is happening when you're looking at the actual code.
-
Please let us know if you need any additional assistance on this issue.