You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Andy,
I am not sure this issue is due to lws-esp32-factory or if it is an esp-idf problem (or a combination...). However, I only see this in the lws-esp32-factory app, not in the lws-esp32-test-demos. Nor did I see this back in end of April with the versions of lws or esp-idf that I was using then.
After flashing the factory app, everything works as expected. I connect to the esp32 wifi AP and surf to 192.168.4.1 from a web browser. Still working. Then I configure the 1st wifi slot with my wifi router credentials and save. Still no issue. But immediately when I connect to the esp32 via the router I start to get (an esp-idf error?)
"tcp_connect: can only connect from state CLOSED".
After a short period the web page in the browser goes "dimmed" with the spinning Icon on top. Refreshing the webpage gets it back for a while, then it gets dimmed again, etc. Short after (1-3 seconds) after each tcp_connect error I also get a notice:
?[35;1m[2018/08/19 18:15:47:8582] NOTICE: Client connection error server's cert didn't look good, X509_V_ERR = 24: CA is not trusted
While the factory app is not totally broken (I need to keep doing refresh every now and then) it still feels like something should be fixed. I am happy trying to help, but I do not know where I should look next. Any ideas?
Andy,
I am not sure this issue is due to lws-esp32-factory or if it is an esp-idf problem (or a combination...). However, I only see this in the lws-esp32-factory app, not in the lws-esp32-test-demos. Nor did I see this back in end of April with the versions of lws or esp-idf that I was using then.
After flashing the factory app, everything works as expected. I connect to the esp32 wifi AP and surf to 192.168.4.1 from a web browser. Still working. Then I configure the 1st wifi slot with my wifi router credentials and save. Still no issue. But immediately when I connect to the esp32 via the router I start to get (an esp-idf error?)
"tcp_connect: can only connect from state CLOSED".
After a short period the web page in the browser goes "dimmed" with the spinning Icon on top. Refreshing the webpage gets it back for a while, then it gets dimmed again, etc. Short after (1-3 seconds) after each tcp_connect error I also get a notice:
?[35;1m[2018/08/19 18:15:47:8582] NOTICE: Client connection error server's cert didn't look good, X509_V_ERR = 24: CA is not trusted
While the factory app is not totally broken (I need to keep doing refresh every now and then) it still feels like something should be fixed. I am happy trying to help, but I do not know where I should look next. Any ideas?
Log below:
?[35;1m[1970/01/01 00:12:00:4249] NOTICE: SYSTEM_EVENT_SCAN_DONE
?[35;1m[1970/01/01 00:12:00:4262] NOTICE: gapss from LWS_GAPSS_SCAN to LWS_GAPSS_STAT
?[35;1m[1970/01/01 00:12:00:4310] NOTICE: scan_finished: count 7
?[35;1m[1970/01/01 00:12:00:4372] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[1970/01/01 00:12:00:4432] NOTICE: lws_esp32_get_image_info: bad image header magic
?[35;1m[1970/01/01 00:12:00:4548] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[1970/01/01 00:12:00:4583] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[1970/01/01 00:12:00:4681] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[1970/01/01 00:12:00:4721] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[1970/01/01 00:12:01:5209] NOTICE: heap :153516 (-9044)
?[35;1m[1970/01/01 00:12:02:0029] NOTICE: heap :152996 (-520)
?[35;1m[1970/01/01 00:12:02:2910] NOTICE: SYSTEM_EVENT_STA_GOT_IP
?[35;1m[1970/01/01 00:12:02:2942] NOTICE: gapss from LWS_GAPSS_STAT to LWS_GAPSS_STAT_HAPPY
?[35;1m[1970/01/01 00:12:02:2951] NOTICE: --- Got IP 192.168.0.53
?[35;1m[1970/01/01 00:12:03:0030] NOTICE: heap :162220 (+9224)
?[35;1m[2018/08/19 18:15:28:0928] NOTICE: time discontiguity: at old time 723s, new time 1534702528s: +1534701805s
?[35;1m[2018/08/19 18:15:28:0938] NOTICE: vhost ap: cert expiry: 11456d
?[35;1m[2018/08/19 18:15:28:1001] NOTICE: heap :162392 (+172)
?[35;1m[2018/08/19 18:15:29:0031] NOTICE: heap :162396 (+4)
?[35;1m[2018/08/19 18:15:30:0029] NOTICE: heap :162496 (+100)
?[35;1m[2018/08/19 18:15:32:0035] NOTICE: heap :162268 (-228)
?[35;1m[2018/08/19 18:15:33:0035] NOTICE: heap :161792 (-476)
?[35;1m[2018/08/19 18:15:33:4353] NOTICE: SYSTEM_EVENT_SCAN_DONE
?[35;1m[2018/08/19 18:15:33:4364] NOTICE: scan_finished: count 7
?[35;1m[2018/08/19 18:15:33:4373] NOTICE: Fetching /esp32-ota/lws/manifest.json
?[35;1m[2018/08/19 18:15:33:4444] NOTICE: _realloc: size 616: client wsi (free heap 161608)
?[35;1m[2018/08/19 18:15:33:4528] NOTICE: _realloc: size 32: client stash (free heap 161572)
?[35;1m[2018/08/19 18:15:33:4616] NOTICE: _realloc: size 18: strdup (free heap 161678)
?[35;1m[2018/08/19 18:15:33:4691] NOTICE: _realloc: size 29: strdup (free heap 161643)
?[35;1m[2018/08/19 18:15:33:4770] NOTICE: _realloc: size 18: strdup (free heap 161618)
?[35;1m[2018/08/19 18:15:33:4849] NOTICE: _realloc: size 18: strdup (free heap 161594)
?[35;1m[2018/08/19 18:15:33:4929] NOTICE: _realloc: size 12: strdup (free heap 161576)
?[35;1m[2018/08/19 18:15:33:5008] NOTICE: _realloc: size 4: strdup (free heap 161572)
?[35;1m[2018/08/19 18:15:33:5090] NOTICE: _realloc: size 4696: user space (free heap 156884)
?[35;1m[2018/08/19 18:15:33:5177] NOTICE: _realloc: size 744: ah struct (free heap 156136)
?[35;1m[2018/08/19 18:15:33:5255] NOTICE: _realloc: size 512: ah data (free heap 155620)
?[35;1m[2018/08/19 18:15:33:5365] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:15:33:5420] NOTICE: lws_esp32_get_image_info: bad image header magic
?[35;1m[2018/08/19 18:15:33:5531] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:15:33:5574] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:15:33:5665] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:15:33:5710] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:15:34:0030] NOTICE: heap :154556 (-7236)
tcp_connect: can only connect from state CLOSED
?[35;1m[2018/08/19 18:15:35:9070] NOTICE: heap :123292 (-31264)
?[35;1m[2018/08/19 18:15:35:9656] NOTICE: _realloc: size 196: h2n (free heap 131996)
?[35;1m[2018/08/19 18:15:35:9664] NOTICE: _realloc: size 780: dynamic table entries (free heap 131216)
?[35;1m[2018/08/19 18:15:35:9728] NOTICE: Client connection error server's cert didn't look good, X509_V_ERR = 24: CA is not trusted
?[35;1m[2018/08/19 18:15:36:0032] NOTICE: heap :160000 (+36708)
?[35;1m[2018/08/19 18:15:37:0029] NOTICE: heap :161692 (+1692)
?[35;1m[2018/08/19 18:15:42:0030] NOTICE: heap :161496 (-196)
?[35;1m[2018/08/19 18:15:43:0029] NOTICE: heap :161112 (-384)
?[35;1m[2018/08/19 18:15:43:4355] NOTICE: SYSTEM_EVENT_SCAN_DONE
?[35;1m[2018/08/19 18:15:43:4374] NOTICE: scan_finished: count 6
?[35;1m[2018/08/19 18:15:43:4380] NOTICE: Fetching /esp32-ota/lws/manifest.json
?[35;1m[2018/08/19 18:15:43:4452] NOTICE: _realloc: size 616: client wsi (free heap 161076)
?[35;1m[2018/08/19 18:15:43:4536] NOTICE: _realloc: size 32: client stash (free heap 161044)
?[35;1m[2018/08/19 18:15:43:4619] NOTICE: _realloc: size 18: strdup (free heap 161026)
?[35;1m[2018/08/19 18:15:43:4698] NOTICE: _realloc: size 29: strdup (free heap 160991)
?[35;1m[2018/08/19 18:15:43:4777] NOTICE: _realloc: size 18: strdup (free heap 160970)
?[35;1m[2018/08/19 18:15:43:4857] NOTICE: _realloc: size 18: strdup (free heap 160946)
?[35;1m[2018/08/19 18:15:43:4938] NOTICE: _realloc: size 12: strdup (free heap 160928)
?[35;1m[2018/08/19 18:15:43:5016] NOTICE: _realloc: size 4: strdup (free heap 160924)
?[35;1m[2018/08/19 18:15:43:5094] NOTICE: _realloc: size 4696: user space (free heap 156228)
?[35;1m[2018/08/19 18:15:43:5179] NOTICE: _realloc: size 744: ah struct (free heap 155480)
?[35;1m[2018/08/19 18:15:43:5262] NOTICE: _realloc: size 512: ah data (free heap 154964)
?[35;1m[2018/08/19 18:15:43:5404] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:15:43:5433] NOTICE: lws_esp32_get_image_info: bad image header magic
?[35;1m[2018/08/19 18:15:43:5563] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:15:43:5600] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:15:43:5661] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:15:43:5719] NOTICE: LWS_CALLBACK_Server_writable
tcp_connect: can only connect from state CLOSED
?[35;1m[2018/08/19 18:15:44:0031] NOTICE: heap :145960 (-15152)
?[35;1m[2018/08/19 18:15:45:1272] NOTICE: heap :131108 (-14852)
?[35;1m[2018/08/19 18:15:46:0425] NOTICE: heap :123232 (-7876)
?[35;1m[2018/08/19 18:15:47:0030] NOTICE: heap :123236 (+4)
?[35;1m[2018/08/19 18:15:47:8513] NOTICE: _realloc: size 196: h2n (free heap 131704)
?[35;1m[2018/08/19 18:15:47:8521] NOTICE: _realloc: size 780: dynamic table entries (free heap 130920)
?[35;1m[2018/08/19 18:15:47:8582] NOTICE: Client connection error server's cert didn't look good, X509_V_ERR = 24: CA is not trusted
?[35;1m[2018/08/19 18:15:48:0031] NOTICE: heap :161400 (+38164)
?[35;1m[2018/08/19 18:15:49:0029] NOTICE: heap :161404 (+4)
?[35;1m[2018/08/19 18:15:52:0030] NOTICE: heap :161016 (-388)
?[35;1m[2018/08/19 18:15:53:0029] NOTICE: heap :160632 (-384)
?[35;1m[2018/08/19 18:15:53:4360] NOTICE: SYSTEM_EVENT_SCAN_DONE
?[35;1m[2018/08/19 18:15:53:4372] NOTICE: scan_finished: count 8
?[35;1m[2018/08/19 18:15:53:4381] NOTICE: Fetching /esp32-ota/lws/manifest.json
?[35;1m[2018/08/19 18:15:53:4454] NOTICE: _realloc: size 616: client wsi (free heap 160788)
?[35;1m[2018/08/19 18:15:53:4536] NOTICE: _realloc: size 32: client stash (free heap 160756)
?[35;1m[2018/08/19 18:15:53:4620] NOTICE: _realloc: size 18: strdup (free heap 160738)
?[35;1m[2018/08/19 18:15:53:4701] NOTICE: _realloc: size 29: strdup (free heap 160703)
?[35;1m[2018/08/19 18:15:53:4778] NOTICE: _realloc: size 18: strdup (free heap 160682)
?[35;1m[2018/08/19 18:15:53:4857] NOTICE: _realloc: size 18: strdup (free heap 160658)
?[35;1m[2018/08/19 18:15:53:4939] NOTICE: _realloc: size 12: strdup (free heap 160520)
?[35;1m[2018/08/19 18:15:53:5016] NOTICE: _realloc: size 4: strdup (free heap 160516)
?[35;1m[2018/08/19 18:15:53:5095] NOTICE: _realloc: size 4696: user space (free heap 155940)
?[35;1m[2018/08/19 18:15:53:5180] NOTICE: _realloc: size 744: ah struct (free heap 155192)
?[35;1m[2018/08/19 18:15:53:5262] NOTICE: _realloc: size 512: ah data (free heap 154676)
?[35;1m[2018/08/19 18:15:53:5412] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:15:53:5450] NOTICE: lws_esp32_get_image_info: bad image header magic
?[35;1m[2018/08/19 18:15:53:5534] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:15:53:5605] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:15:53:5663] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:15:53:5720] NOTICE: LWS_CALLBACK_Server_writable
tcp_connect: can only connect from state CLOSED
?[35;1m[2018/08/19 18:15:54:0032] NOTICE: heap :145656 (-14976)
?[35;1m[2018/08/19 18:15:56:4894] NOTICE: heap :122700 (-22956)
?[35;1m[2018/08/19 18:15:57:0030] NOTICE: heap :122932 (+232)
?[35;1m[2018/08/19 18:15:58:5282] NOTICE: _realloc: size 196: h2n (free heap 131220)
?[35;1m[2018/08/19 18:15:58:5291] NOTICE: _realloc: size 780: dynamic table entries (free heap 130440)
?[35;1m[2018/08/19 18:15:58:5353] NOTICE: Client connection error server's cert didn't look good, X509_V_ERR = 24: CA is not trusted
?[35;1m[2018/08/19 18:15:59:0033] NOTICE: heap :161112 (+38180)
?[35;1m[2018/08/19 18:16:02:0032] NOTICE: heap :160916 (-196)
?[35;1m[2018/08/19 18:16:03:0031] NOTICE: heap :160532 (-384)
?[35;1m[2018/08/19 18:16:03:4353] NOTICE: SYSTEM_EVENT_SCAN_DONE
?[35;1m[2018/08/19 18:16:03:4364] NOTICE: scan_finished: count 6
?[35;1m[2018/08/19 18:16:03:4380] NOTICE: Fetching /esp32-ota/lws/manifest.json
?[35;1m[2018/08/19 18:16:03:4445] NOTICE: _realloc: size 616: client wsi (free heap 160376)
?[35;1m[2018/08/19 18:16:03:4528] NOTICE: _realloc: size 32: client stash (free heap 160344)
?[35;1m[2018/08/19 18:16:03:4612] NOTICE: _realloc: size 18: strdup (free heap 160446)
?[35;1m[2018/08/19 18:16:03:4692] NOTICE: _realloc: size 29: strdup (free heap 160411)
?[35;1m[2018/08/19 18:16:03:4770] NOTICE: _realloc: size 18: strdup (free heap 160390)
?[35;1m[2018/08/19 18:16:03:4850] NOTICE: _realloc: size 18: strdup (free heap 160366)
?[35;1m[2018/08/19 18:16:03:4929] NOTICE: _realloc: size 12: strdup (free heap 160348)
?[35;1m[2018/08/19 18:16:03:5008] NOTICE: _realloc: size 4: strdup (free heap 160344)
?[35;1m[2018/08/19 18:16:03:5090] NOTICE: _realloc: size 4696: user space (free heap 155528)
?[35;1m[2018/08/19 18:16:03:5173] NOTICE: _realloc: size 744: ah struct (free heap 154900)
?[35;1m[2018/08/19 18:16:03:5255] NOTICE: _realloc: size 512: ah data (free heap 154384)
?[35;1m[2018/08/19 18:16:03:5398] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:16:03:5436] NOTICE: lws_esp32_get_image_info: bad image header magic
?[35;1m[2018/08/19 18:16:03:5531] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:16:03:5574] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:16:03:5653] NOTICE: LWS_CALLBACK_Server_writable
?[35;1m[2018/08/19 18:16:03:5713] NOTICE: LWS_CALLBACK_Server_writable
tcp_connect: can only connect from state CLOSED
?[35;1m[2018/08/19 18:16:05:5611] NOTICE: heap :122412 (-38120)
?[35;1m[2018/08/19 18:16:06:0030] NOTICE: heap :122644 (+232)
The text was updated successfully, but these errors were encountered: