If you are asking a question, please follow this template:
- My goal is to remotely update my devices.
- My actions are: I have deployed the firmware on multiple devices and am trying to update them via the OTA mechanism.
- The result I see is:
[Sep 1 22:33:42.980] mgos_aws_shadow.c:250 Update: {“state”: {“reported”: {“ota”:{“message”: “Waiting for data”, “status”: 1, “is_committed”: true, “commit_timeout”: 0, “partition”: 0, “progress_percent”: 98}}}, “clientToken”: “da4fa0f3”}
[Sep 1 22:33:44.985] mg_rpc.c:293 OTA.Write via WSS_out 148.251.54.236:443
[Sep 1 22:33:47.041] mg_rpc.c:293 OTA.Write via WSS_out 148.251.54.236:443
[Sep 1 22:33:49.041] mg_rpc.c:293 OTA.Write via WSS_out 148.251.54.236:443
[Sep 1 22:33:49.249] mgos_ota_core.c:506 98.81% total, fs.img 252416 of 262144
[Sep 1 22:33:49.444] UPDATE {}
[Sep 1 22:33:49.580] mgos_aws_shadow.c:250 Update: {“state”: {“reported”: {“ota”:{“message”: “Waiting for data”, “status”: 1, “is_committed”: true, “commit_timeout”: 0, “partition”: 0, “progress_percent”: 98}}}, “clientToken”: “########”}
[Sep 1 22:33:50.731] mg_ssl_if_mbedtls.c:35 0x3fff762c mbedtls_ssl_flush_output() returned -78 (-0x004e)
[Sep 1 22:33:51.005] mg_ssl_if_mbedtls.c:35 0x3fff762c mbedtls_ssl_write_record() returned -78 (-0x004e)
[Sep 1 22:33:51.019] mg_ssl_if_mbedtls.c:35 0x3fff762c mbedtls_ssl_send_alert_message() returned -78 (-0x004e)
[Sep 1 22:33:51.213] mgos_mqtt.c:167 MQTT Disconnect
[Sep 1 22:33:51.396] mgos_mqtt.c:511 MQTT connecting after 2019 ms
[Sep 1 22:33:53.625] mgos_mqtt.c:435 MQTT connecting to ghtrhrbasab-ats.iot.eu-west-2.amazonaws.com:8883
[Sep 1 22:33:54.321] mg_rpc.c:293 OTA.Write via WSS_out 148.251.54.236:443
[Sep 1 22:33:54.611] mgos_ota_core.c:506 98.93% total, fs.img 254464 of 262144
[Sep 1 22:33:54.819] UPDATE {}
[Sep 1 22:33:56.678] mg_ssl_if_mbedtls.c:35 0x3fff76e4 ciphersuite: TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256
[Sep 1 22:33:57.423] E:M 516
[Sep 1 22:33:57.516] E:M 1516
[Sep 1 22:33:57.539] Guru Meditation Error: Core 0 panic’ed (Unhandled debug exception)
[Sep 1 22:33:57.539] Debug exception reason: Stack canary watchpoint triggered (tiT)
[Sep 1 22:33:57.539] Core 0 register dump:
[Sep 1 22:33:57.539] PC : 0x40096559 PS : 0x00060836 A0 : 0x800965e1 A1 : 0x3ffbcc20
[Sep 1 22:33:57.539] A2 : 0x3ffae270 A3 : 0x3ffbcc50 A4 : 0x00060820 A5 : 0x3ffbce30
[Sep 1 22:33:57.561] A6 : 0x00000009 A7 : 0x00000001 A8 : 0x00000001 A9 : 0x3ffc95e0
[Sep 1 22:33:57.561] A10 : 0x3ff00040 A11 : 0x00000028 A12 : 0x00000001 A13 : 0x3ffbcd90
[Sep 1 22:33:57.583] A14 : 0x00000001 A15 : 0x00000000 SAR : 0x00000008 EXCCAUSE: 0x00000001
[Sep 1 22:33:57.583] EXCVADDR: 0x00000000 LBEG : 0x4000c349 LEND : 0x4000c36b LCOUNT : 0xffffffff
[Sep 1 22:33:57.583]
[Sep 1 22:33:57.583] Backtrace: 0x40096559 0x400965de 0x40096c35 0x4008284c 0x400e9947 0x400e935c 0x400edbd5 0x401df535 0x400f03d9 0x400f0ba1 0x400ed4cd 0x400e8cd9 0x400e1365 0x4000bd9f 0x40001162 0x400592fe 0x4005937a 0x40058bbf 0x4019def9 0x4019df45 0x400f7c11 0x400e27ad 0x400e1838 0x400e3de1 0x400e131d 0x4000bd83 0x4000117d 0x400592fe 0x4005937a 0x40058bbf 0x400d6345 0x400dbb2e 0x400d25cd 0x400819ae 0x400819f0 0x40081e41 0x4000beaf 0x40182629 0x401826d3 0x40182784 0x40184e8d 0x4018dc61 0x4018e0bc 0x4018e0ed 0x40189b89 0x40189bc1 0x40189be9 0x40186af9 0x40186e93 0x40183832 0x40183dbb
[Sep 1 22:33:57.628] Guru Meditation Error: Core 0 panic’ed (Cache disabled but cached memory region accessed)
[Sep 1 22:33:57.650] Core 0 register dump:
[Sep 1 22:33:57.650] PC : 0x400813f0 PS : 0x00040034 A0 : 0x00040023 A1 : 0x3ffbc9c0
[Sep 1 22:33:57.650] A2 : 0x3ffbca30 A3 : 0x00000000 A4 : 0x00000000 A5 : 0x3ffbcb00
[Sep 1 22:33:57.672] A6 : 0x3ffc121c A7 : 0x3ffc1225 A8 : 0x8008f7d0 A9 : 0x400813d9
[Sep 1 22:33:57.672] A10 : 0x383fc000 A11 : 0x383fc000 A12 : 0x00005440 A13 : 0x00000000
[Sep 1 22:33:57.672] A14 : 0x001d0000 A15 : 0x00003300 SAR : 0x00000013 EXCCAUSE: 0x00000007
[Sep 1 22:33:57.694] EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000
[Sep 1 22:33:57.694]
[Sep 1 22:33:57.694] Backtrace: 0x400813f0 0x00040020 0x400d0f0f 0x4008f5d0 0x40081359
[Sep 1 22:33:57.694] Re-entered core dump! Exception happened during core dump!
[Sep 1 22:33:57.696] Rebooting…
[Sep 1 22:33:57.719] ets Jun 8 2016 00:22:57
[Sep 1 22:33:57.719]
- My expectation & question is: OTA updates have worked flawlessly before so I don’t understand why they are failing now. Any direction would be greatly appreciated!