Constant rebooting - resolved

Hi,

I have recently had issues with my IotaWatt constantly rebooting every 15 second or so.

It seems to be related to the history log service - I am also unable to graph historical data.

It started around the time I enabled an emoncms upload but I have since delete the upload configuration and am still having the same issue.

An extract of the Message log is provided below.

I would appreciate any assistance or suggestions - I tried searching previous discussions and couldn’t find a fix for the issue.

** Restart **

SD initialized.
9/10/23 08:07:07z Real Time Clock is running. Unix time 1694333227
9/10/23 08:07:07z Reset reason: Software Watchdog
9/10/23 08:07:07z Trace: 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:4, 18:5, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[3], 1:5[14], 1:6[4], 14:0, 14:4, 14:5
9/10/23 08:07:08z ESP8266 ID: 14613378, RTC PCF8523 (68)
9/10/23 08:07:08z IoTaWatt 5.0, Firmware version 02_08_02
9/10/23 08:07:08z SPIFFS mounted.
9/10/23 16:37:09 Local time zone: +8:30
9/10/23 16:37:09 device name: IotaWatt
9/10/23 16:37:09 HTTP server started
9/10/23 16:37:09 timeSync: service started.
9/10/23 16:37:10 statService: started.
9/10/23 16:37:10 dataLog: service started.
9/10/23 16:37:18 dataLog: Last log entry 09/10/23 16:37:00
9/10/23 16:37:18 Updater: service started. Auto-update class is MINOR
9/10/23 16:37:19 WiFi connected. SSID=m4, IP=192.168.3.213, channel=1, RSSI -55db
9/10/23 16:37:19 historyLog: service started.
9/10/23 16:37:19 historyLog: Last log entry 02/07/23 09:57:00

** Restart **

SD initialized.
9/10/23 08:07:23z Real Time Clock is running. Unix time 1694333243
9/10/23 08:07:23z Reset reason: Software Watchdog
9/10/23 08:07:23z Trace: 1:6[3], 1:5[5], 1:6[4], 5:0, 5:2, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:1, 21:10, 21:20, 21:21, 21:30, 21:99, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[3], 1:5[14], 1:6[4], 14:0, 14:4, 14:5
9/10/23 08:07:24z ESP8266 ID: 14613378, RTC PCF8523 (68)
9/10/23 08:07:24z IoTaWatt 5.0, Firmware version 02_08_02
9/10/23 08:07:24z SPIFFS mounted.
9/10/23 16:37:25 Local time zone: +8:30
9/10/23 16:37:25 device name: IotaWatt
9/10/23 16:37:25 HTTP server started
9/10/23 16:37:26 timeSync: service started.
9/10/23 16:37:26 statService: started.
9/10/23 16:37:26 dataLog: service started.
9/10/23 16:37:34 dataLog: Last log entry 09/10/23 16:37:20
9/10/23 16:37:34 Updater: service started. Auto-update class is MINOR
9/10/23 16:37:35 WiFi connected. SSID=m4, IP=192.168.3.213, channel=1, RSSI -52db
9/10/23 16:37:35 historyLog: service started.
9/10/23 16:37:36 historyLog: Last log entry 02/07/23 09:57:00

** Restart **

SD initialized.
9/10/23 08:07:39z Real Time Clock is running. Unix time 1694333259
9/10/23 08:07:39z Reset reason: Software Watchdog
9/10/23 08:07:39z Trace: 1:6[3], 1:5[5], 1:6[4], 5:0, 5:2, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:1, 21:10, 21:20, 21:21, 21:30, 21:99, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[3], 1:5[14], 1:6[4], 14:0, 14:4, 14:5
9/10/23 08:07:40z ESP8266 ID: 14613378, RTC PCF8523 (68)
9/10/23 08:07:40z IoTaWatt 5.0, Firmware version 02_08_02
9/10/23 08:07:40z SPIFFS mounted.
9/10/23 16:37:41 Local time zone: +8:30
9/10/23 16:37:41 device name: IotaWatt
9/10/23 16:37:41 HTTP server started
9/10/23 16:37:41 timeSync: service started.
9/10/23 16:37:42 statService: started.
9/10/23 16:37:42 dataLog: service started.
9/10/23 16:37:50 dataLog: Last log entry 09/10/23 16:37:35
9/10/23 16:37:50 Updater: service started. Auto-update class is MINOR
9/10/23 16:37:51 WiFi connected. SSID=m4, IP=192.168.3.213, channel=1, RSSI -52db
9/10/23 16:37:51 historyLog: service started.
9/10/23 16:37:52 historyLog: Last log entry 02/07/23 09:57:00

Yes, it does look like there is a problem with the history log. Issues with that log are very rare, so I have to suspect a problem with the SDcard. If the card is very old, or if the card has these markings, it should be replaced.


When doing so, do not copy the /iotawatt/histlog.log file. You might also delete the iotamsg.txt file as it is probably filled with these restart messages.

Thanks. The unit and card are both about 6 months old. If I replace the card do I need to prepare the new one in any special at before inserting into the unit?

See this post

Thanks. I will try a new SD Card prepared using this approach.

Thanks for the tips. I was successfully able to resolve the issue with a new SD card and by copying over config.txt the configuration remained. However I have lost all of my historic data - I expect that this is unavoidable given that it appears the issue was history log.

1 Like

This article also fixed my issue, The original 8Gb SD card lasted 2 years, so no to bad really, now have a new 32Gb card, good times ahead :slight_smile: