GRR, replaced SD card, worked for 2hrs, then RRR

Hello,

Yesterday I noticed that my Iotowatt was not online. Went out to the garage and power cycled it and was met with a GRR error code.

Did some internetting, saw there was an issue with the newest update and SD cards. I pulled the original SD card and copied the contents to another SD card. Everything copied except \iotawatt\histlog.log for some reason.

Popped the new SD card in, Iotawatt came back to life, checked the webUI and it was recording power data. Looking at the log file, it looks like I’m still on Firmware 02-07-05 so I figured it was just a failing SD card.

Today after work I tried checking the webUI and it was not online again. Went out to the garage and power cycled and was met with a RRR code. Uh oh.

Again I disconnected the Iotawatt and pulled the SD card. Contents of the SD card are readable.

Timeline of events for the log file to make sense:

  • 12/13/2022 @ 20:11 is when I reconnected the Iotawatt after changing out the SD card and it acted normally again.

  • 12/13/2022 @ 22:28 is the last time Home Assistant saw any data from Iotawatt

  • 12/14/2022 @ 18:00 is when I noticed that Iotawatt was offline again.

Here’s the relevant section of the log file:


SD initialized.
12/14/22 00:10:57z Real Time Clock is running. Unix time 1670976657
12/14/22 00:10:57z Reset Reason: Power-fail restart.
12/14/22 00:10:57z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/14/22 00:10:57z IoTaWatt 5.0, Firmware version 02_07_05
12/14/22 00:10:57z SPIFFS mounted.
12/13/22 20:10:57 Local time zone: -4:00, using DST/BST when in effect.
12/13/22 20:10:57 device name: IotaWatt
12/13/22 20:11:00 HTTP server started
12/13/22 20:11:00 WiFi connected. SSID=Phoebe, IP=192.168.1.6, channel=11, RSSI -55db
12/13/22 20:11:00 MDNS responder started for hostname IotaWatt
12/13/22 20:11:00 LLMNR responder started for hostname IotaWatt
12/13/22 20:11:00 timeSync: service started.
12/13/22 20:11:00 statService: started.
12/13/22 20:11:00 Updater: service started. Auto-update class is MAJOR
12/13/22 20:11:00 dataLog: service started.
12/13/22 20:11:01 dataLog: Last log entry 12/10/22 02:10:20
12/13/22 20:11:01 Updater: Auto-update is current for class MAJOR.
12/13/22 20:11:05 historyLog: service started.
12/13/22 20:11:05 historyLog: first entry 12/09/21 21:07:00

** Restart **

SD initialized.
12/14/22 00:35:32z Real Time Clock is running. Unix time 1670978132
12/14/22 00:35:32z Reset reason: Software/System restart
12/14/22 00:35:32z Trace: 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:1[2], 1:2[3], 9:0[3], 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[2], 1:6[2], 1:6[3], 1:5[19], 1:6[4]
12/14/22 00:35:32z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/14/22 00:35:32z IoTaWatt 5.0, Firmware version 02_07_05
12/14/22 00:35:32z SPIFFS mounted.
12/13/22 20:35:32 Local time zone: -4:00, using DST/BST when in effect.
12/13/22 20:35:32 device name: IotaWatt
12/13/22 20:35:32 HTTP server started
12/13/22 20:35:32 timeSync: service started.
12/13/22 20:35:32 statService: started.
12/13/22 20:35:32 dataLog: service started.
12/13/22 20:35:33 dataLog: Last log entry 12/13/22 20:21:10
12/13/22 20:35:37 historyLog: service started.
12/13/22 20:35:37 historyLog: Last log entry 12/22/21 11:05:00
12/13/22 20:35:37 WiFi connected. SSID=Phoebe, IP=192.168.1.6, channel=11, RSSI -55db
12/13/22 20:35:37 MDNS responder started for hostname IotaWatt
12/13/22 20:35:37 LLMNR responder started for hostname IotaWatt
12/13/22 20:35:37 Updater: service started. Auto-update class is MAJOR
12/13/22 20:35:38 Updater: Auto-update is current for class MAJOR.

** Restart **

SD initialized.
12/14/22 00:48:08z Real Time Clock is running. Unix time 1670978888
12/14/22 00:48:08z Reset reason: Software/System restart
12/14/22 00:48:08z Trace: 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:1[8], 1:2[9], 9:0[9], 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[2], 1:6[2], 1:6[3], 1:5[19], 1:6[4]
12/14/22 00:48:08z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/14/22 00:48:08z IoTaWatt 5.0, Firmware version 02_07_05
12/14/22 00:48:08z SPIFFS mounted.
12/13/22 20:48:08 Local time zone: -4:00, using DST/BST when in effect.
12/13/22 20:48:08 device name: IotaWatt
12/13/22 20:48:08 HTTP server started
12/13/22 20:48:08 timeSync: service started.
12/13/22 20:48:08 statService: started.
12/13/22 20:48:08 dataLog: service started.
12/13/22 20:48:09 dataLog: Last log entry 12/13/22 20:36:20
12/13/22 20:48:13 historyLog: service started.
12/13/22 20:48:13 historyLog: Last log entry 12/23/21 08:59:00
12/13/22 20:48:13 WiFi connected. SSID=Phoebe, IP=192.168.1.6, channel=11, RSSI -56db
12/13/22 20:48:13 MDNS responder started for hostname IotaWatt
12/13/22 20:48:13 LLMNR responder started for hostname IotaWatt
12/13/22 20:48:13 Updater: service started. Auto-update class is MAJOR
12/13/22 20:48:14 Updater: Auto-update is current for class MAJOR.

** Restart **

SD initialized.
12/14/22 01:00:43z Real Time Clock is running. Unix time 1670979643
12/14/22 01:00:43z Reset reason: Software/System restart
12/14/22 01:00:43z Trace: 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:1[7], 1:2[8], 9:0[8], 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[2], 1:6[2], 1:6[3], 1:5[19], 1:6[4]
12/14/22 01:00:43z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/14/22 01:00:43z IoTaWatt 5.0, Firmware version 02_07_05
12/14/22 01:00:43z SPIFFS mounted.
12/13/22 21:00:43 Local time zone: -4:00, using DST/BST when in effect.
12/13/22 21:00:43 device name: IotaWatt
12/13/22 21:00:43 HTTP server started
12/13/22 21:00:43 timeSync: service started.
12/13/22 21:00:43 statService: started.
12/13/22 21:00:43 dataLog: service started.
12/13/22 21:00:44 dataLog: Last log entry 12/13/22 20:49:10
12/13/22 21:00:48 historyLog: service started.
12/13/22 21:00:48 historyLog: Last log entry 12/24/21 15:10:00
12/13/22 21:00:48 WiFi connected. SSID=Phoebe, IP=192.168.1.6, channel=11, RSSI -58db

** Restart **

SD initialized.
12/14/22 01:05:57z Real Time Clock is running. Unix time 1670979957
12/14/22 01:05:57z Reset reason: Exception
12/14/22 01:05:57z Trace: 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:1[7], 1:2[8], 9:0[8], 9:0, 9:1, 8:4, 8:6, 8:8, 8:9, 9:3, 9:5, 9:9, 1:2
12/14/22 01:05:57z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/14/22 01:05:57z IoTaWatt 5.0, Firmware version 02_07_05
12/14/22 01:05:57z SPIFFS mounted.
12/13/22 21:05:57 Local time zone: -4:00, using DST/BST when in effect.
12/13/22 21:05:57 device name: IotaWatt
12/13/22 21:05:57 HTTP server started

** Restart **

SD initialized.
12/14/22 01:08:36z Real Time Clock is running. Unix time 1670980116
12/14/22 01:08:36z Reset Reason: Power-fail restart.
12/14/22 01:08:36z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/14/22 01:08:36z IoTaWatt 5.0, Firmware version 02_07_05
12/14/22 01:08:36z SPIFFS mounted.
12/13/22 21:08:36 Local time zone: -4:00, using DST/BST when in effect.
12/13/22 21:08:36 device name: IotaWatt
12/13/22 21:08:39 HTTP server started
12/13/22 21:08:39 WiFi connected. SSID=Phoebe, IP=192.168.1.6, channel=11, RSSI -53db
12/13/22 21:08:39 MDNS responder started for hostname IotaWatt
12/13/22 21:08:39 LLMNR responder started for hostname IotaWatt
12/13/22 21:08:39 timeSync: service started.
12/13/22 21:08:39 statService: started.
12/13/22 21:08:39 Updater: service started. Auto-update class is MAJOR
12/13/22 21:08:39 dataLog: service started.
12/13/22 21:08:40 dataLog: Last log entry 12/13/22 21:00:45
12/13/22 21:08:42 Updater: Auto-update is current for class MAJOR.
12/13/22 21:08:44 historyLog: service started.
12/13/22 21:08:44 historyLog: Last log entry 12/24/21 15:10:00

** Restart **

SD initialized.
12/14/22 01:35:23z Real Time Clock is running. Unix time 1670981723
12/14/22 01:35:23z Reset reason: Software/System restart
12/14/22 01:35:23z Trace: 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:1[5], 1:2[6], 9:0[6], 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[2], 1:6[2], 1:6[3], 1:5[19], 1:6[4]
12/14/22 01:35:23z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/14/22 01:35:23z IoTaWatt 5.0, Firmware version 02_07_05
12/14/22 01:35:23z SPIFFS mounted.
12/13/22 21:35:23 Local time zone: -4:00, using DST/BST when in effect.
12/13/22 21:35:23 device name: IotaWatt
12/13/22 21:35:23 HTTP server started
12/13/22 21:35:23 timeSync: service started.
12/13/22 21:35:23 statService: started.
12/13/22 21:35:23 dataLog: service started.


I currently have the Iotawatt unit on my desk plugged into a microUSB. It is currently flashing green and the webUI is reachable.

Any ideas?
Thank you!

This is not the recent problem described in the forum. It only affected a handful of users with units purchased in the past month or so and with auto-update MINOR.

Nevertheless, it is the same symptom - GRR. That you could not copy the history log suggests that your card did fail. When you restarted, the IoTaWatt created a new history log and began rebuilding it with data from the current log. It’s possible that process is not working properly, and you are getting damage to the new file. That would be consistent with the RRR led.

The only remedy I can think of is to delete both the history log and the current log.

The easiest way to do that is to remove the SDcard and delete the files:

/iotawatt/iotalog.log
/iotawatt/histlog.log
and if you have a directory /iotawatt/integrations delete that.

If the new card is good, the system should start and run. You must have the AC adapter connected whenever the IoTaWatt is running.

EDIT: I just noticed your comment after the message log listing that you have the unit running with the UI accessible. So, let’s hold off on deleting your logs for a minute.

Can you post a screenshot of the status display with all of the tabs expanded? Also, is the end date/time of the history log advancing?

If I didn’t have the 9V AC adapter connected, only the 5v microUSB, is that bad, or bad bad?

It’s not bad, bad. Because the IoTaWatt’s primary job is sampling power, it synchronizes its activity on the AC signal. When there is no signal, it has a hard time doing anything, but doesn’t ordinarily do any damage. There is a new release that resolves that issue, but it is delayed due to the problem that you first mentioned.

Plug it in before trying to get the status display.

I deleted the iotalog.log & histlog.log files just in case.

Here is the current status window after reconnecting the Iotawatt unit to everything in my garage:

As I watch the status window, the end date of the history log is indeed advancing.

If it matters, the sticker on the back of my PCB board reads:
2116 S03130
IOTAWATT-P3
R 5 0 L 107491

Thank you!

1 Like

Too bad you lost the current log data for the past year, but you should be OK now going forward.

The saga continues! :slight_smile:

I woke up this morning to my Iotawatt unreachable over wifi and the unit itself throwing a GRRG error code now.

Here was the last entry in iotamsgs.txt after I plugged it in last night and everything looked like it was working:


** Restart **

SD initialized.
12/15/22 03:57:16z Real Time Clock is running. Unix time 1671076636
12/15/22 03:57:16z Reset Reason: Power-fail restart.
12/15/22 03:57:16z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/15/22 03:57:16z IoTaWatt 5.0, Firmware version 02_07_05
12/15/22 03:57:16z SPIFFS mounted.
12/14/22 23:57:16 Local time zone: -4:00, using DST/BST when in effect.
12/14/22 23:57:16 device name: IotaWatt
12/14/22 23:57:19 HTTP server started
12/14/22 23:57:19 WiFi connected. SSID=Phoebe, IP=192.168.1.6, channel=11, RSSI -58db
12/14/22 23:57:19 MDNS responder started for hostname IotaWatt
12/14/22 23:57:19 LLMNR responder started for hostname IotaWatt
12/14/22 23:57:19 timeSync: service started.
12/14/22 23:57:19 statService: started.
12/14/22 23:57:19 Updater: service started. Auto-update class is MAJOR
12/14/22 23:57:19 dataLog: service started.
12/14/22 23:57:19 dataLog: New current log created.
12/14/22 23:57:20 Updater: Auto-update is current for class MAJOR.
12/14/22 23:58:24 historyLog: service started.
12/14/22 23:58:24 historyLog: first entry 12/14/22 23:58:00


And here are the new entries over night:


** Restart **

SD initialized.
12/15/22 06:19:47z Real Time Clock is running. Unix time 1671085187
12/15/22 06:19:47z Reset reason: Software/System restart
12/15/22 06:19:47z Trace: 9:1, 8:4, 8:6, 8:8, 8:9, 9:3, 9:5, 9:9, 1:2, 1:3, 1:3, 1:1[11], 1:2[12], 9:0[12], 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[2], 1:6[2], 1:6[3], 1:5[19], 1:6[4]
12/15/22 06:19:47z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/15/22 06:19:47z IoTaWatt 5.0, Firmware version 02_07_05
12/15/22 06:19:47z SPIFFS mounted.
12/15/22 02:19:47 Local time zone: -4:00, using DST/BST when in effect.
12/15/22 02:19:47 device name: IotaWatt
12/15/22 02:19:47 HTTP server started
12/15/22 02:19:47 timeSync: service started.
12/15/22 02:19:47 statService: started.
12/15/22 02:19:47 dataLog: service started.
12/15/22 02:19:47 dataLog: Last log entry 12/15/22 02:06:00
12/15/22 02:19:52 historyLog: service started.
12/15/22 02:19:52 historyLog: Last log entry 12/15/22 02:05:00

** Restart **

SD initialized.
12/15/22 06:29:57z Real Time Clock is running. Unix time 1671085797
12/15/22 06:29:57z Reset reason: Software/System restart
12/15/22 06:29:57z Trace: 25:44, 10:57, 10:58, 25:20, 25:40, 25:41, 25:44, 10:56, 25:1, 25:1[2], 25:1[3], 10:59, 1:3, 1:1[9], 1:2[10], 9:0[10], 9:0, 9:1, 8:4, 8:6, 8:8, 8:9, 9:2, 1:2, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[19], 1:6[4]
12/15/22 06:29:57z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/15/22 06:29:57z IoTaWatt 5.0, Firmware version 02_07_05
12/15/22 06:29:57z SPIFFS mounted.
12/15/22 02:29:57 Local time zone: -4:00, using DST/BST when in effect.
12/15/22 02:29:57 device name: IotaWatt
12/15/22 02:29:57 HTTP server started
12/15/22 02:29:57 timeSync: service started.
12/15/22 02:29:57 statService: started.
12/15/22 02:29:57 dataLog: service started.
12/15/22 02:29:57 dataLog: Last log entry 12/15/22 02:19:50
12/15/22 02:30:01 WiFi connected. SSID=Phoebe, IP=192.168.1.6, channel=11, RSSI -57db
12/15/22 02:30:01 MDNS responder started for hostname IotaWatt
12/15/22 02:30:01 LLMNR responder started for hostname IotaWatt
12/15/22 02:30:01 Updater: service started. Auto-update class is MAJOR
12/15/22 02:30:02 historyLog: service started.
12/15/22 02:30:02 historyLog: Last log entry 12/15/22 02:07:00
12/15/22 02:30:02 Updater: Auto-update is current for class MAJOR.

** Restart **

SD initialized.
12/15/22 07:44:46z Real Time Clock is running. Unix time 1671090286
12/15/22 07:44:46z Reset reason: Software/System restart
12/15/22 07:44:46z Trace: 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:1[13], 1:2[14], 9:0[14], 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[2], 1:6[2], 1:6[3], 1:5[19], 1:6[4]
12/15/22 07:44:46z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/15/22 07:44:46z IoTaWatt 5.0, Firmware version 02_07_05
12/15/22 07:44:46z SPIFFS mounted.
12/15/22 03:44:46 Local time zone: -4:00, using DST/BST when in effect.
12/15/22 03:44:46 device name: IotaWatt
12/15/22 03:44:46 HTTP server started
12/15/22 03:44:46 timeSync: service started.
12/15/22 03:44:46 statService: started.
12/15/22 03:44:46 dataLog: service started.
12/15/22 03:44:46 dataLog: Last log entry 12/15/22 03:39:45
12/15/22 03:44:50 WiFi connected. SSID=Phoebe, IP=192.168.1.6, channel=11, RSSI -55db
12/15/22 03:44:50 MDNS responder started for hostname IotaWatt
12/15/22 03:44:50 LLMNR responder started for hostname IotaWatt
12/15/22 03:44:50 Updater: service started. Auto-update class is MAJOR
12/15/22 03:44:51 historyLog: service started.
12/15/22 03:44:51 historyLog: Last log entry 12/15/22 03:39:00
12/15/22 03:44:51 Updater: Auto-update is current for class MAJOR.

** Restart **

SD initialized.
12/15/22 09:31:17z Real Time Clock is running. Unix time 1671096677
12/15/22 09:31:17z Reset reason: Software/System restart
12/15/22 09:31:17z Trace: 34:10[4], 34:0, 34:5, 34:5, 34:5, 34:6[1], 34:10[3], 34:0, 34:5, 34:5, 34:5, 34:6[1], 34:10[2], 34:0, 34:5, 34:5, 34:5, 34:6[1], 34:10[1], 25:18, 25:19, 25:20, 10:52, 10:54, 10:56, 25:20, 25:40, 25:41, 25:42, 25:41, 25:50, 25:51
12/15/22 09:31:17z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/15/22 09:31:17z IoTaWatt 5.0, Firmware version 02_07_05
12/15/22 09:31:17z SPIFFS mounted.

** Restart **

SD initialized.
12/15/22 09:31:25z Real Time Clock is running. Unix time 1671096685
12/15/22 09:31:25z Reset reason: Software Watchdog
12/15/22 09:31:25z Trace: 11:5, 11:5, 11:10, 11:15, 11:20, 11:20[1], 11:20[2], 11:20[3], 11:21, 11:22, 11:21, 11:22, 11:21, 11:22, 11:20[4], 11:20[5], 11:20[6], 11:20[7], 11:25, 11:30, 11:30[1], 11:30[2], 11:31, 11:31[1], 11:30[3], 11:35, 11:36, 11:35, 11:40, 11:45, 11:50, 11:55
12/15/22 09:31:25z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/15/22 09:31:25z IoTaWatt 5.0, Firmware version 02_07_05
12/15/22 09:31:25z SPIFFS mounted.
12/15/22 05:31:26 Local time zone: -4:00, using DST/BST when in effect.
12/15/22 05:31:26 device name: IotaWatt
12/15/22 05:31:26 HTTP server started
12/15/22 05:31:27 timeSync: service started.
12/15/22 05:31:27 statService: started.

** Restart **

SD initialized.
12/15/22 10:44:47z Real Time Clock is running. Unix time 1671101087
12/15/22 10:44:47z Reset reason: Software Watchdog
12/15/22 10:44:47z Trace: 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:1, 1:2[1], 9:0[1], 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[19], 1:6[4]
12/15/22 10:44:47z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/15/22 10:44:47z IoTaWatt 5.0, Firmware version 02_07_05
12/15/22 10:44:47z SPIFFS mounted.
12/15/22 06:44:48 Local time zone: -4:00, using DST/BST when in effect.
12/15/22 06:44:49 device name: IotaWatt
12/15/22 06:44:49 HTTP server started
12/15/22 06:44:49 timeSync: service started.
12/15/22 06:44:49 statService: started.
12/15/22 06:44:49 dataLog: service started.
12/15/22 06:44:50 dataLog: Last log entry 12/15/22 04:02:45
12/15/22 06:44:53 WiFi connected. SSID=Phoebe, IP=192.168.1.6, channel=11, RSSI -54db
12/15/22 06:44:53 MDNS responder started for hostname IotaWatt
12/15/22 06:44:53 LLMNR responder started for hostname IotaWatt
12/15/22 06:44:53 Updater: service started. Auto-update class is MAJOR
12/15/22 06:44:54 historyLog: service started.
12/15/22 06:44:54 historyLog: Last log entry 12/15/22 04:02:00
12/15/22 06:44:55 Updater: Auto-update is current for class MAJOR.

** Restart **

SD initialized.
12/15/22 10:56:16z Real Time Clock is running. Unix time 1671101776
12/15/22 10:56:16z Reset reason: Software/System restart
12/15/22 10:56:16z Trace: 34:10[4], 34:0, 34:5, 34:5, 34:5, 34:6[1], 34:10[3], 34:0, 34:5, 34:5, 34:5, 34:6[1], 34:10[2], 34:0, 34:5, 34:5, 34:5, 34:6[1], 34:10[1], 25:18, 25:19, 25:20, 10:52, 10:54, 10:56, 25:20, 25:40, 25:41, 25:42, 25:41, 25:50, 25:51
12/15/22 10:56:16z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/15/22 10:56:16z IoTaWatt 5.0, Firmware version 02_07_05
12/15/22 10:56:16z SPIFFS mounted.


Here is a image from my Home Assistant dashboard showing it reporting info for a little bit last night before stopping (I think the time in Iotawatt may be 1hr off due to DST or something)

Per the Iotawatt docs, it looks like GRRG is an issue with the config.txt file?

My SD card has a “config.txt” and a “config-1.txt”. I’ve copied & pasted both into online JSON validators and they say both are valid, though they were copied off the original SD card so there’s always a chance something is corrupted?

Here is my \config.txt:
config.txt (3.0 KB)

And here is my \config-1.txt:
config-1.txt (3.0 KB)

Here is a picture of the file structure in the editor:
iotawatt_editor

Thank you!

It looks to me like the SDcard is flakey. Given that the IoTaWatt has operated for more than a year, it is more likely that the replacement card is bad, but also possible that something has happened to the card holder with the recent replacement activity.

Was it a new card and what was the type and capacity?

Was it a new card and what was the type and capacity?

The replacement card is a 32GB Samsung Evo Select micro SD, formatted in FAT32. I pulled it from a Raspberry Pi Zero that was working fine last time I used it.

I have another card, 32GB Samsung “Normal” Evo I can try, also from a previously used RPi0

(I don’t think I manhandled the SD card holder when removing the SD card, it seems the same style as RPi0s and I’ve yet to break one of those.)

Edit: I’m going to try to start fresh with this new new SD card using the instructions found @ Building a new SDcard and see how it does tonight.

Edit #2: Following the instructions in my last edit, Iotawatt booted up and connected to my wifi, but was using the default config.txt. For good measure I deleted the stored config.txt under esp_spiffs and restarted. Unit again connected to my wifi.

Here is the status window:

Here is contents of \config.txt

Looking at the messages log, it looks like the unit is rebooting every 30 seconds or so…


** Restart **

SD initialized.
12/16/22 00:02:48z Real Time Clock is running. Unix time 1671148968
12/16/22 00:02:48z Reset reason: Exception
12/16/22 00:02:48z Trace: 10:50, 25:10, 25:10, 25:10, 25:10, 25:12, 25:13, 25:13, 25:13, 25:17, 25:13, 25:13, 25:18, 25:19, 25:20, 10:52, 10:54, 10:56, 25:20, 25:40, 25:41, 25:42, 25:41, 25:50, 25:51, 25:53, 25:54, 25:60, 25:61, 25:62, 25:61, 25:64
12/16/22 00:02:48z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/16/22 00:02:48z IoTaWatt 5.0, Firmware version 02_07_05
12/16/22 00:02:48z SPIFFS mounted.
12/16/22 00:02:48z Local time zone: +0:00
12/16/22 00:02:48z device name: IotaWatt
12/16/22 00:02:48z HTTP server started
12/16/22 00:02:48z timeSync: service started.
12/16/22 00:02:48z statService: started.
12/16/22 00:02:48z dataLog: service started.
12/16/22 00:02:48z dataLog: Last log entry 12/16/22 00:02:45
12/16/22 00:02:48z historyLog: service started.
12/16/22 00:02:48z historyLog: Last log entry 12/16/22 00:02:00
12/16/22 00:02:52z WiFi connected. SSID=Phoebe, IP=192.168.1.6, channel=11, RSSI -59db
12/16/22 00:02:52z MDNS responder started for hostname IotaWatt
12/16/22 00:02:52z LLMNR responder started for hostname IotaWatt
12/16/22 00:02:52z Updater: service started. Auto-update class is MINOR
12/16/22 00:02:53z Updater: Auto-update is current for class MINOR.

** Restart **

SD initialized.
12/16/22 00:03:23z Real Time Clock is running. Unix time 1671149003
12/16/22 00:03:23z Reset reason: Exception
12/16/22 00:03:23z Trace: 10:50, 25:10, 25:10, 25:10, 25:10, 25:12, 25:13, 25:13, 25:13, 25:17, 25:13, 25:13, 25:18, 25:19, 25:20, 10:52, 10:54, 10:56, 25:20, 25:40, 25:41, 25:42, 25:41, 25:50, 25:51, 25:53, 25:54, 25:60, 25:61, 25:62, 25:61, 25:64
12/16/22 00:03:23z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/16/22 00:03:23z IoTaWatt 5.0, Firmware version 02_07_05
12/16/22 00:03:23z SPIFFS mounted.
12/16/22 00:03:23z Local time zone: +0:00
12/16/22 00:03:23z device name: IotaWatt
12/16/22 00:03:23z HTTP server started
12/16/22 00:03:23z timeSync: service started.
12/16/22 00:03:23z statService: started.
12/16/22 00:03:23z dataLog: service started.
12/16/22 00:03:23z dataLog: Last log entry 12/16/22 00:03:20
12/16/22 00:03:23z historyLog: service started.
12/16/22 00:03:23z historyLog: Last log entry 12/16/22 00:03:00
12/16/22 00:03:27z WiFi connected. SSID=Phoebe, IP=192.168.1.6, channel=11, RSSI -60db
12/16/22 00:03:27z MDNS responder started for hostname IotaWatt
12/16/22 00:03:27z LLMNR responder started for hostname IotaWatt
12/16/22 00:03:27z Updater: service started. Auto-update class is MINOR
12/16/22 00:03:28z Updater: Auto-update is current for class MINOR.

** Restart **

SD initialized.
12/16/22 00:03:58z Real Time Clock is running. Unix time 1671149038
12/16/22 00:03:58z Reset reason: Exception
12/16/22 00:03:58z Trace: 10:50, 25:10, 25:10, 25:10, 25:10, 25:12, 25:13, 25:13, 25:13, 25:17, 25:13, 25:13, 25:18, 25:19, 25:20, 10:52, 10:54, 10:56, 25:20, 25:40, 25:41, 25:42, 25:41, 25:50, 25:51, 25:53, 25:54, 25:60, 25:61, 25:62, 25:61, 25:64
12/16/22 00:03:58z ESP8266 ID: 16295206, RTC PCF8523 (68)
12/16/22 00:03:58z IoTaWatt 5.0, Firmware version 02_07_05
12/16/22 00:03:58z SPIFFS mounted.
12/16/22 00:03:58z Local time zone: +0:00
12/16/22 00:03:58z device name: IotaWatt
12/16/22 00:03:58z HTTP server started
12/16/22 00:03:58z timeSync: service started.
12/16/22 00:03:58z statService: started.
12/16/22 00:03:58z dataLog: service started.
12/16/22 00:03:58z dataLog: Last log entry 12/16/22 00:03:55
12/16/22 00:03:58z historyLog: service started.
12/16/22 00:03:58z historyLog: Last log entry 12/16/22 00:03:00
12/16/22 00:04:02z WiFi connected. SSID=Phoebe, IP=192.168.1.6, channel=11, RSSI -59db
12/16/22 00:04:02z MDNS responder started for hostname IotaWatt
12/16/22 00:04:02z LLMNR responder started for hostname IotaWatt
12/16/22 00:04:02z Updater: service started. Auto-update class is MINOR
12/16/22 00:04:03z Updater: Auto-update is current for class MINOR.


Well, that’s no beauno!

Edit #3: I swapped out the 5v microUSB power adapter with another one to see if maybe a failing power supply could be the culprit, but it’s still resetting every 30 seconds.

Edit #4: I found an old 8gb black SanDisk microSD card, I think it came with either a Dashcam or something, anyways I copied my original SD card’s contents to it and swapped it into the Iotawatt, and good news, it is no longer resetting every 30 seconds. Still using the swapped out 5v power adapter. I’ll update when/if anything happens.

Assuming you reformatted it as I don’t believe Rpi uses FAT. How did you reformat? The windows and other OS formatters may not format correctly. I recommend the SD Association Formatter.

The exceptions are happening every 30 seconds while responding to one of the HA queries. It’s possible you found a bug where HA is asking for data that the IoTaWatt doesn’t have yet. Try turning HA off for awhile and I think it will run OK. If it is still getting exceptions after a day, let me know.

Assuming you reformatted it as I don’t believe Rpi uses FAT. How did you reformat? The windows and other OS formatters may not format correctly. I recommend the SD Association Formatter.

I do use the SD Card Formatter program to remove the FAT32 boot & ext4 partitions from RPi SD cards and create a single FAT32 partition on the card.

Win powershell get-volume looks correct for a 32GB card:

Good news though! My Iotawatt made it through the night just fine and is still working, message log only has a single message from initial boot, and the HA integration is working.

The only things I have changed were swapping to use an older 8GB microSD card and swapping the 5v microUSB power adapter.

I wonder if a failing power adapter could account for the times right after my initial SD card swap when Iotawatt worked fine for a couple hours, then stopped, then worked again for a couple hours, then stopped?

Or maybe Iotawatt is particular about SD card brand or size? Or I’m just dumb and can’t format an SD card correctly? Maybe all 3?

Anyways, it’s looking good now, thank you for all your help!

It wouldn’t be the first time. I have no trouble with the power supplies that are shipped with the US 120V kit, however international customers frequently skip getting the CUI Euro Plug version that costs $13 and weighs nothing. There have been numerous incidences of SD and other weird, intermittent issues, when using phone chargers, USB power strip, etc.