[02_05_05] Reboot loop

For some reason, my iotawatt started rebooting every minute or so. When i open the web interface and press the status button it says no configuration found.

My message logs looks like this:

** Restart **

SD initialized.
3/24/20 17:40:33z Real Time Clock is running. Unix time 1585071633
3/24/20 17:40:33z Reset reason: Exception
3/24/20 17:40:33z Trace: 18:3, 18:4, 18:5, 1:6, 1:3, 1:4, 1:5[5], 5:0, 5:1, 1:6, 1:1[9], 1:2[10], 9:0[10], 9:0, 9:1, 8:4, 8:6, 8:8, 8:9, 9:3, 9:5, 9:9, 1:2, 1:3, 1:4, 1:5[3], 3:0, 3:3, 21:100[3], 21:101, 3:3, 3:3
3/24/20 17:40:33z ESP8266 ChipID: 6144648
3/24/20 17:40:33z IoTaWatt 5.0, Firmware version 02_05_05
3/24/20 17:40:33z SPIFFS mounted.
3/24/20 18:40:33 Local time zone: +1:00
3/24/20 18:40:33 device name: IotaWatt
3/24/20 18:40:33 HTTP server started
3/24/20 18:40:33 timeSync: service started.
3/24/20 18:40:33 statService: started.
3/24/20 18:40:33 dataLog: service started.
3/24/20 18:40:34 dataLog: Last log entry 03/24/20 18:40:30
3/24/20 18:40:34 historyLog: service started.
3/24/20 18:40:34 historyLog: Last log entry 03/24/20 18:40:00
3/24/20 18:40:38 EmonService: started. url=https://emoncms.org, node=IotaWatt, interval=5, encrypted
3/24/20 18:40:38 WiFi connected. SSID=XXX, IP=192.168.2.7, channel=11, RSSI -56db
3/24/20 18:40:38 Updater: service started. Auto-update class is MINOR

** Restart **

I did find a few old topics, but did not find any solution. I did restart my ISP’s router and the powered the iotawatt off/on. Can anybody help me out?

can you get more of the message log?

I need to determine the cause of the restart. The trace in this one restart event in not conclusive.

3/25/20 06:43:30z ESP8266 ChipID: 6144648
3/25/20 06:43:30z IoTaWatt 5.0, Firmware version 02_05_05
3/25/20 06:43:30z SPIFFS mounted.
3/25/20 07:43:30 Local time zone: +1:00
3/25/20 07:43:30 device name: IotaWatt
3/25/20 07:43:30 HTTP server started
3/25/20 07:43:30 timeSync: service started.
3/25/20 07:43:30 statService: started.
3/25/20 07:43:30 dataLog: service started.
3/25/20 07:43:31 dataLog: Last log entry 03/25/20 07:43:25
3/25/20 07:43:31 historyLog: service started.
3/25/20 07:43:31 historyLog: Last log entry 03/25/20 07:43:00
3/25/20 07:43:35 EmonService: started. url=https://emoncms.org, node=IotaWatt, interval=5, encrypted
3/25/20 07:43:35 WiFi connected. SSID=Xxx, IP=192.168.2.7, channel=11, RSSI -57db
3/25/20 07:43:35 Updater: service started. Auto-update class is MINOR

** Restart **

SD initialized.
3/25/20 06:43:36z Real Time Clock is running. Unix time 1585118616
3/25/20 06:43:36z Reset reason: Exception
3/25/20 06:43:36z Trace: 18:3, 18:4, 18:5, 1:6, 1:3, 1:4, 1:5[5], 5:0, 5:1, 1:6, 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:4, 1:5[3], 3:0, 3:3, 21:100[3], 21:101, 3:3, 3:3
3/25/20 06:43:36z ESP8266 ChipID: 6144648
3/25/20 06:43:36z IoTaWatt 5.0, Firmware version 02_05_05
3/25/20 06:43:36z SPIFFS mounted.
3/25/20 07:43:36 Local time zone: +1:00
3/25/20 07:43:36 device name: IotaWatt
3/25/20 07:43:36 HTTP server started
3/25/20 07:43:36 timeSync: service started.
3/25/20 07:43:36 statService: started.
3/25/20 07:43:36 dataLog: service started.
3/25/20 07:43:37 dataLog: Last log entry 03/25/20 07:43:35
3/25/20 07:43:37 historyLog: service started.
3/25/20 07:43:37 historyLog: Last log entry 03/25/20 07:43:00
3/25/20 07:43:41 EmonService: started. url=https://emoncms.org, node=IotaWatt, interval=5, encrypted
3/25/20 07:43:41 WiFi connected. SSID=Xxx, IP=192.168.2.7, channel=11, RSSI -56db
3/25/20 07:43:41 Updater: service started. Auto-update class is MINOR

** Restart **

SD initialized.
3/25/20 06:43:41z Real Time Clock is running. Unix time 1585118621
3/25/20 06:43:41z Reset reason: Exception
3/25/20 06:43:41z Trace: 9:3, 9:5, 9:9, 1:2, 1:3, 1:4, 1:5[5], 5:0, 5:1, 1:6, 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:4, 1:5[3], 3:0, 3:3, 21:100[3], 21:101, 3:3, 3:3
3/25/20 06:43:41z ESP8266 ChipID: 6144648
3/25/20 06:43:41z IoTaWatt 5.0, Firmware version 02_05_05
3/25/20 06:43:41z SPIFFS mounted.
3/25/20 07:43:41 Local time zone: +1:00
3/25/20 07:43:41 device name: IotaWatt
3/25/20 07:43:41 HTTP server started
3/25/20 07:43:41 timeSync: service started.
3/25/20 07:43:41 statService: started.
3/25/20 07:43:41 dataLog: service started.
3/25/20 07:43:42 dataLog: Last log entry 03/25/20 07:43:40
3/25/20 07:43:42 historyLog: service started.
3/25/20 07:43:42 historyLog: Last log entry 03/25/20 07:43:00
3/25/20 07:43:46 EmonService: started. url=https://emoncms.org, node=IotaWatt, interval=5, encrypted
3/25/20 07:43:46 WiFi connected. SSID=Xxx, IP=192.168.2.7, channel=11, RSSI -56db
3/25/20 07:43:46 Updater: service started. Auto-update class is MINOR

** Restart **

SD initialized.
3/25/20 06:43:47z Real Time Clock is running. Unix time 1585118627
3/25/20 06:43:47z Reset reason: Exception
3/25/20 06:43:47z Trace: 9:3, 9:5, 9:9, 1:2, 1:3, 1:4, 1:5[5], 5:0, 5:1, 1:6, 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:4, 1:5[3], 3:0, 3:3, 21:100[3], 21:101, 3:3, 3:3
3/25/20 06:43:47z ESP8266 ChipID: 6144648
3/25/20 06:43:47z IoTaWatt 5.0, Firmware version 02_05_05
3/25/20 06:43:47z SPIFFS mounted.
3/25/20 07:43:47 Local time zone: +1:00
3/25/20 07:43:47 device name: IotaWatt
3/25/20 07:43:47 HTTP server started
3/25/20 07:43:47 timeSync: service started.
3/25/20 07:43:47 statService: started.
3/25/20 07:43:47 dataLog: service started.
3/25/20 07:43:48 dataLog: Last log entry 03/25/20 07:43:45
3/25/20 07:43:48 historyLog: service started.
3/25/20 07:43:48 historyLog: Last log entry 03/25/20 07:43:00
3/25/20 07:43:52 EmonService: started. url=https://emoncms.org, node=IotaWatt, interval=5, encrypted
3/25/20 07:43:52 WiFi connected. SSID=Xxx, IP=192.168.2.7, channel=11, RSSI -55db
3/25/20 07:43:52 Updater: service started. Auto-update class is MINOR

** Restart **

SD initialized.
3/25/20 06:43:53z Real Time Clock is running. Unix time 1585118633
3/25/20 06:43:53z Reset reason: Exception
3/25/20 06:43:53z Trace: 9:3, 9:5, 9:9, 1:2, 1:3, 1:4, 1:5[5], 5:0, 5:1, 1:6, 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:4, 1:5[3], 3:0, 3:3, 21:100[3], 21:101, 3:3, 3:3
3/25/20 06:43:53z ESP8266 ChipID: 6144648
3/25/20 06:43:53z IoTaWatt 5.0, Firmware version 02_05_05
3/25/20 06:43:53z SPIFFS mounted.
3/25/20 07:43:53 Local time zone: +1:00
3/25/20 07:43:53 device name: IotaWatt
3/25/20 07:43:53 HTTP server started
3/25/20 07:43:53 timeSync: service started.
3/25/20 07:43:53 statService: started.
3/25/20 07:43:53 dataLog: service started.
3/25/20 07:43:54 dataLog: Last log entry 03/25/20 07:43:50
3/25/20 07:43:54 historyLog: service started.
3/25/20 07:43:54 historyLog: Last log entry 03/25/20 07:43:00
3/25/20 07:43:58 EmonService: started. url=https://emoncms.org, node=IotaWatt, interval=5, encrypted
3/25/20 07:43:58 WiFi connected. SSID=Xxx, IP=192.168.2.7, channel=11, RSSI -56db
3/25/20 07:43:58 Updater: service started. Auto-update class is MINOR

** Restart **

SD initialized.
3/25/20 06:43:59z Real Time Clock is running. Unix time 1585118639
3/25/20 06:43:59z Reset reason: Exception
3/25/20 06:43:59z Trace: 18:3, 18:4, 18:5, 1:6, 1:3, 1:4, 1:5[5], 5:0, 5:1, 1: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:4, 1:5[3], 3:0, 3:3, 21:100[3], 21:101, 3:3, 3:3
3/25/20 06:43:59z ESP8266 ChipID: 6144648
3/25/20 06:43:59z IoTaWatt 5.0, Firmware version 02_05_05
3/25/20 06:43:59z SPIFFS mounted.
3/25/20 07:43:59 Local time zone: +1:00
3/25/20 07:43:59 device name: IotaWatt
3/25/20 07:43:59 HTTP server started
3/25/20 07:43:59 timeSync: service started.
3/25/20 07:43:59 statService: started.
3/25/20 07:43:59 dataLog: service started.
3/25/20 07:44:00 dataLog: Last log entry 03/25/20 07:43:55
3/25/20 07:44:00 historyLog: service started.
3/25/20 07:44:00 historyLog: Last log entry 03/25/20 07:43:00
3/25/20 07:44:04 EmonService: started. url=https://emoncms.org, node=IotaWatt, interval=5, encrypted
3/25/20 07:44:04 WiFi connected. SSID=Xxx, IP=192.168.2.7, channel=11, RSSI -56db
3/25/20 07:44:04 Updater: service started. Auto-update class is MINOR

** Restart **

SD initialized.
3/25/20 06:44:05z Real Time Clock is running. Unix time 1585118645
3/25/20 06:44:05z Reset reason: Exception
3/25/20 06:44:05z Trace: 18:3, 18:4, 18:5, 1:6, 1:3, 1:4, 1:5[5], 5:0, 5:1, 1: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:4, 1:5[3], 3:0, 3:3, 21:100[3], 21:101, 3:3, 3:3
3/25/20 06:44:05z ESP8266 ChipID: 6144648
3/25/20 06:44:05z IoTaWatt 5.0, Firmware version 02_05_05
3/25/20 06:44:05z SPIFFS mounted.
3/25/20 07:44:05 Local time zone: +1:00
3/25/20 07:44:05 device name: IotaWatt
3/25/20 07:44:05 HTTP server started
3/25/20 07:44:05 timeSync: service started.
3/25/20 07:44:05 statService: started.
3/25/20 07:44:05 dataLog: service started.
3/25/20 07:44:06 dataLog: Last log entry 03/25/20 07:44:00
3/25/20 07:44:06 historyLog: service started.
3/25/20 07:44:06 historyLog: Last log entry 03/25/20 07:44:00
3/25/20 07:44:10 EmonService: started. url=https://emoncms.org, node=IotaWatt, interval=5, encrypted
3/25/20 07:44:11 WiFi connected. SSID=Xxx, IP=192.168.2.7, channel=11, RSSI -57db
3/25/20 07:44:11 Updater: service started. Auto-update class is MINOR

** Restart **

SD initialized.
3/25/20 06:44:12z Real Time Clock is running. Unix time 1585118652
3/25/20 06:44:12z Reset reason: Exception
3/25/20 06:44:12z Trace: 9:3, 9:5, 9:9, 1:2, 1:3, 1:4, 1:5[5], 5:0, 5:1, 1:6, 1:1[3], 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:4, 1:5[3], 3:0, 3:3, 21:100[3], 21:101, 3:3, 3:3
3/25/20 06:44:12z ESP8266 ChipID: 6144648
3/25/20 06:44:12z IoTaWatt 5.0, Firmware version 02_05_05
3/25/20 06:44:12z SPIFFS mounted.
3/25/20 07:44:12 Local time zone: +1:00
3/25/20 07:44:12 device name: IotaWatt
3/25/20 07:44:12 HTTP server started
3/25/20 07:44:12 timeSync: service started.
3/25/20 07:44:12 statService: started.
3/25/20 07:44:12 dataLog: service started.
3/25/20 07:44:13 dataLog: Last log entry 03/25/20 07:44:10
3/25/20 07:44:13 historyLog: service started.
3/25/20 07:44:13 historyLog: Last log entry 03/25/20 07:44:00
3/25/20 07:44:17 EmonService: started. url=https://emoncms.org, node=IotaWatt, interval=5, encrypted
3/25/20 07:44:17 WiFi connected. SSID=xxx, IP=192.168.2.7, channel=11, RSSI -57db
3/25/20 07:44:17 Updater: service started. Auto-update class is MINOR

** Restart **

SD initialized.
3/25/20 06:44:17z Real Time Clock is running. Unix time 1585118657
3/25/20 06:44:17z Reset reason: Exception
3/25/20 06:44:17z Trace: 18:3, 18:4, 18:5, 1:6, 1:3, 1:4, 1:5[5], 5:0, 5:1, 1: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:4, 1:5[3], 3:0, 3:3, 21:100[3], 21:101, 3:3, 3:3
3/25/20 06:44:17z ESP8266 ChipID: 6144648
3/25/20 06:44:17z IoTaWatt 5.0, Firmware version 02_05_05
3/25/20 06:44:17z SPIFFS mounted.
3/25/20 07:44:17 Local time zone: +1:00
3/25/20 07:44:17 device name: IotaWatt
3/25/20 07:44:17 HTTP server started
3/25/20 07:44:17 timeSync: service started.
3/25/20 07:44:17 statService: started.
3/25/20 07:44:17 dataLog: service started.
3/25/20 07:44:18 dataLog: Last log entry 03/25/20 07:44:15
3/25/20 07:44:18 historyLog: service started.
3/25/20 07:44:18 historyLog: Last log entry 03/25/20 07:44:00

This is the entire message log. There is nothing there.

The problem appears to be associated with starting up the Emoncms service. By all indications it fails while connecting or sending the request used to determine the last time a measurement was posted.

I think the best way to move forward is to stop the Emoncms service from starting at reboot. That’s easier said than done.

The most effective way would be to edit a stop into the config file. If you are comfortable with that, the procedure would be:

  • Power down the unit
  • Open it up and carefully remove the SD card pulling straight out.
  • Mount in another computer.
  • Upload the file config.txt to me in a private message (click my avatar and then click the envelope icon).
  • I will add the stop json command to the file and post back.
  • Update the file on the SDcard.
  • Replace SDcard, reassemble and restart.

It should start without posting to Emoncms.
If we can get that far, data will be logging and I can try to figure out how to get the Emoncms service started or regress you to 02_05_02.

If you are uncomfortable with this procedure, you can send the whole unit to me.

Thank you for your extensive message. i’ve sent you a message with the contents of config.txt.

So handled in our private conversation, you’ve sent me a altered config.txt so emoncms doesnt start at boot which seems to work. On request the message log:

SD initialized.
3/26/20 18:09:29z Real Time Clock is running. Unix time 1585246169
3/26/20 18:09:29z Power failure detected.
3/26/20 18:09:29z Reset reason: External System
3/26/20 18:09:29z ESP8266 ChipID: 6144648
3/26/20 18:09:29z IoTaWatt 5.0, Firmware version 02_05_05
3/26/20 18:09:29z SPIFFS mounted.
3/26/20 19:09:29 Local time zone: +1:00
3/26/20 19:09:29 device name: IotaWatt
3/26/20 19:09:32 Connecting with WiFiManager.
3/26/20 19:09:35 MDNS responder started for hostname IotaWatt
3/26/20 19:09:35 LLMNR responder started for hostname IotaWatt
3/26/20 19:09:35 HTTP server started
3/26/20 19:09:35 WiFi connected. SSID=VRV951770205E, IP=192.168.2.7, channel=11, RSSI -47db
3/26/20 19:09:35 timeSync: service started.
3/26/20 19:09:35 statService: started.
3/26/20 19:09:35 Updater: service started. Auto-update class is MINOR
3/26/20 19:09:36 dataLog: service started.
3/26/20 19:09:36 dataLog: Last log entry 03/25/20 10:50:15
3/26/20 19:09:36 historyLog: service started.
3/26/20 19:09:36 historyLog: Last log entry 03/25/20 10:50:00
3/26/20 19:09:38 Updater: Auto-update is current for class MINOR.
3/27/20 02:10:20 Updater: Update from 02_05_05 to 02_05_02
3/27/20 02:10:20 Updater: download 02_05_02
3/27/20 02:10:24 Updater: Release downloaded 4296ms, size 762848
3/27/20 02:10:32 Updater: signature verified
3/27/20 02:10:40 Updater: firmware upgraded to version 02_05_02
3/27/20 02:10:40 Updater: Firmware updated, restarting.

** Restart **

SD initialized.
3/27/20 01:10:48z Real Time Clock is running. Unix time 1585271448
3/27/20 01:10:48z Reset reason: Software/System restart
3/27/20 01:10:48z Trace: 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:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:4, 18:5, 1:6, 1:3, 1:4, 1:5[5], 5:0, 5:7
3/27/20 01:10:48z ESP8266 ChipID: 6144648
3/27/20 01:10:48z IoTaWatt 5.0, Firmware version 02_05_02
3/27/20 01:10:48z Updater: Installing update files for version 02_05_02
3/27/20 01:10:48z Updater: Installing GRAPH.JS
3/27/20 01:10:48z Updater: Installing GRAPH2.HTM
3/27/20 01:10:48z Updater: Installing GRAPH2.JS
3/27/20 01:10:49z Updater: Installing INDEX.HTM
3/27/20 01:10:49z Updater: Installing TABLES.TXT
3/27/20 01:10:50z Updater: Installing CNFSTYLE.CSS
3/27/20 01:10:50z Updater: Installing EDIT.HTM
3/27/20 01:10:50z Updater: Installing GRAPH.HTM
3/27/20 01:10:50z Updater: Installation complete.
3/27/20 01:10:50z SPIFFS mounted.
3/27/20 02:10:51 Local time zone: +1:00
3/27/20 02:10:52 device name: IotaWatt
3/27/20 02:10:52 MDNS responder started for hostname IotaWatt
3/27/20 02:10:52 LLMNR responder started for hostname IotaWatt
3/27/20 02:10:52 HTTP server started
3/27/20 02:10:52 WiFi connected. SSID=VRV951770205E, IP=192.168.2.7, channel=11, RSSI -47db
3/27/20 02:10:52 timeSync: service started.
3/27/20 02:10:52 statService: started.
3/27/20 02:10:52 Updater: service started. Auto-update class is MINOR
3/27/20 02:10:52 dataLog: service started.
3/27/20 02:10:52 dataLog: Last log entry 03/27/20 02:10:20
3/27/20 02:10:54 Updater: Auto-update is current for class MINOR.
3/27/20 02:11:52 historyLog: service started.
3/27/20 02:11:52 historyLog: Last log entry 03/27/20 02:10:00
3/27/20 07:11:34 Updater: Invalid response from server. HTTPcode: -11