Hi, I am trying to perform aws ota on mm6108-ekh05 kit, which uses freertos aws and mqtt libraries. The kit uses WiFi ha-Low interface. When I create an ota job on aws, the file starts downloading but the binary doesn’t get updated. I have captured the detailed logs but I am not able to figure out the exact problem. Below is the snapshot of the log. Any guidance will be helpful.
Thanks
[2025-05-07 23:27:49.693] Info: Published to MQTT topic to request the next block: topic=$aws/things/mm-test-sac/streams/AFR_OTA-aadfb6cf-6df1-434c-8279-b58dd7c0d49a/get/cbor*
*[2025-05-07 23:27:49.710] Debug: Executing handler for state transition: *
*[2025-05-07 23:27:49.713] Info: Current State=[WaitingForFileBlock], Event=[RequestFileBlock], New state=[WaitingForFileBlock]*
*[2025-05-07 23:27:50.441] Debug: Received OTA image block, size 325.*
*[2025-05-07 23:27:50.448] *
*[2025-05-07 23:27:50.448] *
*[2025-05-07 23:27:50.448] Debug: Added event message to OTA event queue.*
*[2025-05-07 23:27:50.451] Debug: Found valid event handler for state transition: State=[WaitingForFileBlock], Event=[ReceivedFileBlock]*
*[2025-05-07 23:27:50.474] Info: Received valid file block: Block index=26, Size=300*
*[2025-05-07 23:27:50.474] Info: Writing 300 bytes at 26624 to firmware.mbin...*
*[2025-05-07 23:27:50.474] Info: Received final block of the update.*
*[2025-05-07 23:27:50.474] Info: Closing, status -301989888*
*[2025-05-07 23:27:50.477] Error: Failed to close the OTA file: Error=(OtaPalFileClose:0xee000000)*
*[2025-05-07 23:27:50.482] Error: Failed to ingest data block, rejecting image: ingestDataBlock returned error: OtaErr_t=-3*
*[2025-05-07 23:27:50.492] Info: OTA State is now 3*
*[2025-05-07 23:27:50.497] Debug: Attempting to publish MQTT status message: message={"status":"FAILED","statusDetails":{"reason":"0x000000ee: 0x00000000"}}*
*[2025-05-07 23:27:51.457] Info: Publishing message to $aws/things/mm-test-sac/jobs/AFR_OTA-ota_test-26/update.*
*[2025-05-07 23:27:51.466] *
*[2025-05-07 23:27:52.228] Info: Sent PUBLISH packet to broker $aws/things/mm-test-sac/jobs/AFR_OTA-ota_test-26/update to broker.*
*[2025-05-07 23:27:52.242] *
*[2025-05-07 23:27:52.242] *
*[2025-05-07 23:27:52.242] Debug: Published to MQTT topic: topic=$aws/things/mm-test-sac/jobs/AFR_OTA-ota_test-26/update*
*[2025-05-07 23:27:52.248] Debug: Published update to the job status.*
*[2025-05-07 23:27:52.251] Debug: Added event message to OTA event queue.*
*[2025-05-07 23:27:52.264] Info: Received an OtaJobEventFail notification from OTA Agent.*
*[2025-05-07 23:27:52.274] Debug: OTA Event processing completed. Freeing the event buffer to pool.*
*[2025-05-07 23:27:52.274] Debug: Executing handler for state transition: *
*[2025-05-07 23:27:52.283] Info: Current State=[WaitingForFileBlock], Event=[ReceivedFileBlock], New state=[WaitingForFileBlock]*
*[2025-05-07 23:27:52.289] Debug: Found valid event handler for state transition: State=[WaitingForFileBlock], Event=[CloseFile]*
*[2025-05-07 23:27:52.299] Info: Closing file: file index=0*
*[2025-05-07 23:27:52.299] Debug: Attempting to close OTA file context: file context address=0x0x20000084*
*[2025-05-07 23:27:52.309] WRN:Incoming publish does not match any callback functions.*
*[2025-05-07 23:27:52.316] Topic name:$aws/things/mm-test-sac/jobs/AFR_OTA-ota_test-26/update/accepted{"timestamp":1746640671}accrdyaf*
*[2025-05-07 23:27:52.640] Info: Received OTA job message, size: 24.*
*[2025-05-07 23:27:52.646] *
*[2025-05-07 23:27:52.652] *
*[2025-05-07 23:27:52.652] Debug: Added event message to OTA event queue.*
*[2025-05-07 23:27:52.652] Info: Received OTA job message, size: 24.*
*[2025-05-07 23:27:52.661] *
*[2025-05-07 23:27:52.661] *
*[2025-05-07 23:27:52.661] Error: Error: No OTA data buffers available.*
*[2025-05-07 23:27:52.667] *
*[2025-05-07 23:27:56.985] Info: UNSUBSCRIBED from topic $aws/things/mm-test-sac/streams/AFR_OTA-aadfb6cf-6df1-434c-8279-b58dd7c0d49a/data/cbor.*
*[2025-05-07 23:27:56.999] *
*[2025-05-07 23:27:56.999] *
*[2025-05-07 23:27:56.999] Info: Unsubscribed to MQTT topic: $aws/things/mm-test-sac/streams/AFR_OTA-aadfb6cf-6df1-434c-8279-b58dd7c0d49a/data/cbor*
*[2025-05-07 23:27:57.010] Info: Aborting...*
*[2025-05-07 23:27:57.016] Debug: Executing handler for state transition: *
*[2025-05-07 23:27:57.016] Info: Current State=[WaitingForJob], Event=[CloseFile], New state=[WaitingForJob]*
*[2025-05-07 23:27:57.022] Debug: Found valid event handler for state transition: State=[WaitingForJob], Event=[ReceivedJobDocument]*
*[2025-05-07 23:27:57.031] Debug: JSON received: {"timestamp":1746640672}*
*[2025-05-07 23:27:57.035] Debug: Failed job document content check: Required job document parameter was not extracted: parameter=execution*
*[2025-05-07 23:27:57.042] Debug: Failed job document content check: Required job document parameter was not extracted: parameter=execution.jobId*
*[2025-05-07 23:27:57.056] Debug: Failed job document content check: Required job document parameter was not extracted: parameter=execution.jobDocument*
*[2025-05-07 23:27:57.066] Debug: Failed job document content check: Required job document parameter was not extracted: parameter=execution.jobDocument.afr_ota*
*[2025-05-07 23:27:57.075] Debug: Failed job document content check: Required job document parameter was not extracted: parameter=execution.jobDocument.afr_ota.protocols*
*[2025-05-07 23:27:57.089] Debug: Failed job document content check: Required job document parameter was not extracted: parameter=execution.jobDocument.afr_ota.files*
*[2025-05-07 23:27:57.100] Debug: Failed job document content check: Required job document parameter was not extracted: parameter=filesize*
*[2025-05-07 23:27:57.110] Debug: Failed job document content check: Required job document parameter was not extracted: parameter=fileid*
*[2025-05-07 23:27:57.120] Debug: Failed to parse JSON document as AFR_OTA job: DocParseErr_t=7*
*[2025-05-07 23:27:57.128] Info: No active job available in received job document: OtaJobParseErr_t=OtaJobParseErrNoActiveJobs*
*[2025-05-07 23:27:57.133] Warn: Received an unhandled callback event from OTA Agent, event = 8*
*[2025-05-07 23:27:57.139] Debug: OTA Event processing completed. Freeing the event buffer to pool.*
*[2025-05-07 23:27:57.147] Debug: Failed to execute state transition handler: Handler returned error: OtaErr_t=OtaErrJobParserError*
*[2025-05-07 23:27:57.154] Info: Current State=[WaitingForJob], Event=[ReceivedJobDocument], New state=[CreatingFile]