IoTaWatt constantly resetting - solved

Hi,

I have 3 IoTaWatt running for several years now. Lately I have a problem with two of them. Both are constantly resetting after about 10s of runtime.

The Message Log looks like this:

** Restart **

SD initialized.
1/15/22 17:24:12z Real Time Clock is running. Unix time 1642267452 
1/15/22 17:24:12z Reset reason: Software Watchdog
1/15/22 17:24:12z Trace:  3:60, 3:62, 3:62, 3:64, 3:65, 31:1, 1:6[6], 1:1[1], 1:2[2], 9:0[2], 9:0, 9:1, 8:4, 8:6, 8:8, 8:9, 9:3, 9:5, 9:9, 1:2, 1:3, 1:3, 1:6[1], 1:6[3], 1:5[31], 1:6[4], 31:0, 31:1, 31:2[3], 3:60, 3:60, 3:60
1/15/22 17:24:12z ESP8266 ID: 188414, RTC PCF8523 (68)
1/15/22 17:24:12z IoTaWatt 4.x, Firmware version 02_07_05
1/15/22 17:24:12z SPIFFS mounted.
1/15/22 19:24:12 Local time zone: +2:00
1/15/22 19:24:13 device name: IotaL3
1/15/22 19:24:13 HTTP server started
1/15/22 19:24:13 emoncms: Starting, interval:10, url:http://10.1.1.96:9999
1/15/22 19:24:13 influxDB_v2: Starting, interval:5, url:http://influxdb.s1.betagate.de:8086
1/15/22 19:24:13 timeSync: service started.
1/15/22 19:24:13 statService: started.
1/15/22 19:24:13 dataLog: service started.
1/15/22 19:24:14 dataLog: Last log entry 01/15/22 19:24:05
1/15/22 19:24:17 WiFi connected. SSID=Betagate-Rack, IP=10.1.1.40, channel=11, RSSI -24db
1/15/22 19:24:17 MDNS responder started for hostname IotaL3
1/15/22 19:24:17 LLMNR responder started for hostname IotaL3
1/15/22 19:24:17 Updater: service started. Auto-update class is MINOR
1/15/22 19:24:17 emoncms: Start posting at 01/07/22 15:03:50
1/15/22 19:24:18 historyLog: service started.
1/15/22 19:24:18 historyLog: Last log entry 01/15/22 19:24:00
1/15/22 19:24:19 influxDB_v2: Resume posting 01/15/22 19:23:40

** Restart **

SD initialized.
1/15/22 17:24:23z Real Time Clock is running. Unix time 1642267463 
1/15/22 17:24:23z Reset reason: Software Watchdog
1/15/22 17:24:23z Trace:  9:9, 1:2, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[3], 1:5[31], 1:6[4], 31:0, 31:1, 31:2[6], 31:90, 21:110, 21:110, 31:91, 31:9, 31:1, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[3], 1:5[31], 1:6[4], 31:0, 31:1, 31:2[3], 3:60, 3:60, 3:60
1/15/22 17:24:23z ESP8266 ID: 188414, RTC PCF8523 (68)
1/15/22 17:24:23z IoTaWatt 4.x, Firmware version 02_07_05
1/15/22 17:24:23z SPIFFS mounted.
1/15/22 19:24:23 Local time zone: +2:00
1/15/22 19:24:24 device name: IotaL3
1/15/22 19:24:24 HTTP server started
1/15/22 19:24:24 emoncms: Starting, interval:10, url:http://10.1.1.96:9999
1/15/22 19:24:24 influxDB_v2: Starting, interval:5, url:http://influxdb.s1.betagate.de:8086
1/15/22 19:24:24 timeSync: service started.
1/15/22 19:24:24 statService: started.
1/15/22 19:24:24 dataLog: service started.
1/15/22 19:24:25 dataLog: Last log entry 01/15/22 19:24:15
1/15/22 19:24:28 WiFi connected. SSID=Betagate-Rack, IP=10.1.1.40, channel=11, RSSI -23db
1/15/22 19:24:28 MDNS responder started for hostname IotaL3
1/15/22 19:24:28 LLMNR responder started for hostname IotaL3
1/15/22 19:24:28 Updater: service started. Auto-update class is MINOR
1/15/22 19:24:28 emoncms: Start posting at 01/07/22 15:03:50
1/15/22 19:24:29 historyLog: service started.
1/15/22 19:24:29 historyLog: Last log entry 01/15/22 19:24:00
1/15/22 19:24:30 influxDB_v2: Resume posting 01/15/22 19:24:05
1/15/22 19:24:30 Updater: Auto-update is current for class MINOR.

** Restart **

SD initialized.
1/15/22 17:24:35z Real Time Clock is running. Unix time 1642267475 
1/15/22 17:24:35z Reset reason: Software Watchdog
1/15/22 17:24:35z Trace:  3:65, 31:1, 1:6[6], 1:1[14], 1:2, 9:0, 9:0, 8:4, 8:6, 8:8, 8:9, 1:2, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[2], 1:6[3], 1:5[31], 1:6[4], 31:0, 31:1, 31:2[3], 3:60, 3:60, 3:60, 3:62, 3:62, 3:64, 3:65, 3:60
1/15/22 17:24:35z ESP8266 ID: 188414, RTC PCF8523 (68)
1/15/22 17:24:35z IoTaWatt 4.x, Firmware version 02_07_05
1/15/22 17:24:35z SPIFFS mounted.
1/15/22 19:24:35 Local time zone: +2:00
1/15/22 19:24:35 device name: IotaL3
1/15/22 19:24:36 HTTP server started
1/15/22 19:24:36 emoncms: Starting, interval:10, url:http://10.1.1.96:9999
1/15/22 19:24:36 influxDB_v2: Starting, interval:5, url:http://influxdb.s1.betagate.de:8086
1/15/22 19:24:36 timeSync: service started.
1/15/22 19:24:36 statService: started.
1/15/22 19:24:36 dataLog: service started.
1/15/22 19:24:36 dataLog: Last log entry 01/15/22 19:24:30
1/15/22 19:24:40 WiFi connected. SSID=Betagate-Rack, IP=10.1.1.40, channel=11, RSSI -23db
1/15/22 19:24:40 MDNS responder started for hostname IotaL3
1/15/22 19:24:40 LLMNR responder started for hostname IotaL3
1/15/22 19:24:40 Updater: service started. Auto-update class is MINOR
1/15/22 19:24:40 emoncms: Start posting at 01/07/22 15:03:50
1/15/22 19:24:41 historyLog: service started.
1/15/22 19:24:41 historyLog: Last log entry 01/15/22 19:24:00

I found this other post that looks pretty similar. It mentions that this might be duo to a corrupted log file, sadly no details are mentioned.

Any idea on what could cause these resets?

Seems to be failing during Emoncms upload. Watchdog timer is expiring and causing the restart. Could be SD card corruption. Can you try disabling the Emoncms uploader?

1 Like

Wow that was quick. Thank you @nhasan! I just realized that my emoncms is currently broken (I am now primarily using influx). The reason the one Iotawatt was working, was that the service was stopped there… Problem solved :slight_smile:

1 Like