Page 1 of 1

Email Notification Causes Reboot if Internet is Offline

Posted: 24 Mar 2025, 17:29
by ThomasB
Yesterday my ISP went offline for several hours. During the outage I discovered that ESPEasy consistently reboots when it attempts to send an email notification. In my case, it created a boot loop because the device sends an email when WiFi connects.

Here's the serial log (Serial Log Level: None):

Code: Select all

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:184
load:0x40078000,len:12732
ho 0 tail 12 room 4
load:0x40080400,len:2908
entry 0x400805c4
▒U00.172 : (284580) Info   :

INIT : Booting version: ESP_Easy_mega_20241221_collection_B_ESP32_4M316k, (GitHub Actions) mega_3c5d794 (ESP32 SDK 41a885b-dirty)
00.173 : (284436) Info   : INIT : Free RAM:284436
00.185 : (284244) Info   : INIT : Soft Reboot #3 Last Action before Reboot: SystemEventQueue: Notification,1,6 Last systime: 13 - Restart Reason: CPU0: Software reset CPU CPU1: Software reset CPU
00.186 : (284244) Info   : FS   : Mounting...
00.223 : (279844) Info   : FS   : SPIFFS mount successful, used 160389 bytes of 290156

THIS IS AS FAR AS IT GOES, THEN REBOOTS AGAIN
Is this a known problem? Is there a stable test build I can use that has fixed this?

- Thomas

Re: Email Notification Causes Reboot if Internet is Offline

Posted: 24 Mar 2025, 20:24
by TD-er
Nope not a known problem, but I can imagine where it might fail.
Likely it is running out of memory as those libraries for SSL are really a mess regarding memory management.

Re: Email Notification Causes Reboot if Internet is Offline

Posted: 24 Mar 2025, 22:01
by ThomasB
I could ping 8.8.8.8 to test for web connectivity. Then I could apply a conditional to the notify rules. But the ping plugin is not in the collection_B_ESP32 builds. And I want to avoid custom builds.

Are there any other tricks I could use to accomplish the same thing? Or even better, is this issue something that will probably be fixed in the next couple months?

- Thomas

Re: Email Notification Causes Reboot if Internet is Offline

Posted: 24 Mar 2025, 22:32
by TD-er
It will likely be fixed in the next couple weeks/months.
I'm currently a bit unsure about the amount of available time, as there is just so much to do right now (not only ESPEasy), which makes planning extremely hard.

Re: Email Notification Causes Reboot if Internet is Offline

Posted: 24 Mar 2025, 22:46
by ThomasB
I fully understand about the time constraints.

In the meantime, if anyone has a clever workaround (similar to the ping idea) then please share.

- Thomas