Iotawatt not pushing to InfluxD

Hi, had no problems for years now, but all of a sudden my influxdb on a raspberry pi is not getting updated data from the iotawatt.

Says error code -4 on the influx upload tab

Attached is the message log as well. Noticed previously in March it did some “update tables from invalid” and has done it again now and my grafana pulling from influxdb has no data for the last 24 hrs or so.

Is this a problem with my influx db? Full??
Thanks

3/02/22 08:15:38z Reset Reason: Power-fail restart.
3/02/22 08:15:38z ESP8266 ID: 2546248, RTC PCF8523
3/02/22 08:15:38z IoTaWatt 4.x, Firmware version 02_06_06
3/02/22 08:15:38z SPIFFS mounted.
3/02/22 19:15:39 Local time zone: +10:00, using DST/BST when in effect.
3/02/22 19:15:39 device name: IotaWatt
3/02/22 19:15:42 HTTP server started
3/02/22 19:15:42 influxDB_v1: Starting, interval:10, url:http://192.168.1.153:8086
3/02/22 19:15:43 WiFi connected. SSID=Madrigal_S, IP=192.168.1.110, channel=8, RSSI -79db
3/02/22 19:15:43 MDNS responder started for hostname IotaWatt
3/02/22 19:15:43 LLMNR responder started for hostname IotaWatt
3/02/22 19:15:43 timeSync: service started.
3/02/22 19:15:43 statService: started.
3/02/22 19:15:44 Updater: service started. Auto-update class is MAJOR
3/02/22 19:15:44 dataLog: service started.
3/02/22 19:15:47 dataLog: Last log entry 03/02/22 19:15:30
3/02/22 19:15:49 historyLog: service started.
3/02/22 19:15:49 historyLog: Last log entry 03/02/22 17:02:00
3/02/22 19:15:51 Updater: Auto-update is current for class MAJOR.
3/02/22 19:15:53 PVoutput: started
3/02/22 19:15:54 PVoutput: System Point Cook 29, interval 5, freeload mode
3/02/22 19:15:55 PVoutput: Start status beginning 03/02/22 10:00:00
3/02/22 19:16:01 influxDB_v1: Start posting at 03/02/22 10:03:10
3/06/22 17:27:00 Table file parse failed.
3/06/22 18:27:06 Updater: update tables from invalid to 0.0.5
3/07/22 03:28:15 Table file parse failed.
3/07/22 04:28:22 Updater: update tables from invalid to 0.0.5
3/07/22 08:28:57 Updater: Invalid response from server. HTTPcode: -4
3/07/22 18:43:27 WiFi disconnected.
3/07/22 18:45:35 WiFi connected. SSID=Madrigal_S, IP=192.168.1.110, channel=8, RSSI -73db
3/08/22 21:33:04 Table file parse failed.
3/08/22 22:33:12 Updater: update tables from invalid to 0.0.5
3/12/22 21:44:24 Table file parse failed.
3/12/22 22:44:30 Updater: update tables from invalid to 0.0.5
3/13/22 05:45:20 Table file parse failed.
3/13/22 06:45:26 Updater: update tables from invalid to 0.0.5
3/15/22 23:53:05 Table file parse failed.
3/16/22 00:53:11 Updater: update tables from invalid to 0.0.5
3/16/22 07:54:01 Table file parse failed.
3/16/22 08:54:07 Updater: update tables from invalid to 0.0.5
3/18/22 06:59:37 Table file parse failed.
3/18/22 07:59:43 Updater: update tables from invalid to 0.0.5
3/19/22 22:04:14 Table file parse failed.
3/19/22 23:04:20 Updater: update tables from invalid to 0.0.5
3/20/22 06:05:11 Table file parse failed.
3/20/22 07:05:17 Updater: update tables from invalid to 0.0.5
3/22/22 09:11:10 Table file parse failed.
3/22/22 10:11:17 Updater: update tables from invalid to 0.0.5
3/24/22 10:16:53 Table file parse failed.
3/24/22 11:17:00 Updater: update tables from invalid to 0.0.5
3/29/22 19:20:52 WiFi disconnected.
3/29/22 19:20:53 WiFi connected. SSID=Madrigal_S, IP=192.168.1.110, channel=8, RSSI -70db
3/29/22 19:21:28 WiFi disconnected.
3/29/22 19:23:29 WiFi connected. SSID=Madrigal_S, IP=192.168.1.110, channel=8, RSSI -71db
3/29/22 21:02:45 WiFi disconnected.
3/29/22 21:02:49 WiFi connected. SSID=Madrigal_S, IP=192.168.1.110, channel=8, RSSI -70db

** Restart **

SD initialized.
4/06/22 22:43:31z Real Time Clock is running. Unix time 1649285011
4/06/22 22:43:31z Reset Reason: Power-fail restart.
4/06/22 22:43:31z ESP8266 ID: 2546248, RTC PCF8523
4/06/22 22:43:31z IoTaWatt 4.x, Firmware version 02_06_06
4/06/22 22:43:31z SPIFFS mounted.
4/07/22 08:43:32 Local time zone: +10:00, using DST/BST when in effect.
4/07/22 08:43:32 device name: IotaWatt
4/07/22 08:43:35 Connecting with WiFiManager.
4/07/22 08:45:44 Did not connect after power-fail. Restarting to reset WiFi.

** Restart **

SD initialized.
4/06/22 22:45:46z Real Time Clock is running. Unix time 1649285146
4/06/22 22:45:46z Reset reason: Software/System restart
4/06/22 22:45:46z Trace: 11:20[6], 11:20[7], 11:25, 11:30, 11:31, 11:30, 11:35, 31:100, 31:100, 31:100, 31:100, 31:101, 31:102, 32:101, 32:101, 32:102, 32:103, 32:103, 31:105, 31:105, 31:106, 11:40, 11:45, 22:200, 22:201, 22:202, 22:203, 22:204, 22:205, 22:206, 22:207, 11:70
4/06/22 22:45:46z ESP8266 ID: 2546248, RTC PCF8523
4/06/22 22:45:46z IoTaWatt 4.x, Firmware version 02_06_06
4/06/22 22:45:46z SPIFFS mounted.
4/07/22 08:45:48 Local time zone: +10:00, using DST/BST when in effect.
4/07/22 08:45:48 device name: IotaWatt
4/07/22 08:45:48 HTTP server started
4/07/22 08:45:48 influxDB_v1: Starting, interval:10, url:http://192.168.1.153:8086
4/07/22 08:45:48 timeSync: service started.
4/07/22 08:45:48 statService: started.
4/07/22 08:45:48 dataLog: service started.
4/07/22 08:45:51 dataLog: Last log entry 04/07/22 08:43:20
4/07/22 08:45:53 historyLog: service started.
4/07/22 08:45:53 historyLog: Last log entry 04/07/22 08:43:00
4/07/22 08:45:53 WiFi connected. SSID=Madrigal_S, IP=192.168.1.110, channel=8, RSSI -72db
4/07/22 08:45:54 MDNS responder started for hostname IotaWatt
4/07/22 08:45:54 LLMNR responder started for hostname IotaWatt
4/07/22 08:45:54 Updater: service started. Auto-update class is MAJOR
4/07/22 08:45:58 PVoutput: started
4/07/22 08:46:03 PVoutput: System Point Cook 29, interval 5, freeload mode
4/07/22 08:46:04 PVoutput: Start status beginning 04/07/22 08:40:00
4/07/22 08:46:15 influxDB_v1: Start posting at 04/07/22 08:43:10
4/07/22 08:46:17 Updater: Auto-update is current for class MAJOR.
4/16/22 06:11:07 Table file parse failed.
4/16/22 07:11:13 Updater: update tables from invalid to 0.0.5
4/23/22 06:31:03 Table file parse failed.
4/23/22 07:31:09 Updater: update tables from invalid to 0.0.5
4/23/22 07:31:10 Table file parse failed.
4/23/22 08:31:16 Updater: update tables from invalid to 0.0.5
4/25/22 08:36:55 Table file parse failed.
4/25/22 09:37:02 Updater: update tables from invalid to 0.0.5
4/26/22 12:40:21 Table file parse failed.
4/26/22 13:40:28 Updater: update tables from invalid to 0.0.5
4/26/22 13:40:29 Table file parse failed.
4/26/22 14:40:35 Updater: update tables from invalid to 0.0.5
4/26/22 21:41:24 Table file parse failed.
4/26/22 22:41:30 Updater: update tables from invalid to 0.0.5
4/27/22 13:43:20 Table file parse failed.
4/27/22 14:43:27 Updater: update tables from invalid to 0.0.5
4/27/22 21:13:33 influxDB_v1: stopped, Last post 04/25/22 14:09:40
4/27/22 21:13:54 Restart command received.

** Restart **

SD initialized.
4/27/22 11:13:56z Real Time Clock is running. Unix time 1651058036
4/27/22 11:13:56z Reset reason: Software/System restart
4/27/22 11:13:56z 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:1[3], 1:2[4], 9:0[4], 9:0, 9:1, 8:4, 8:6, 8:8, 8:9, 9:3, 9:5, 9:9, 1:2, 1:3, 10:2, 10:3
4/27/22 11:13:56z ESP8266 ID: 2546248, RTC PCF8523
4/27/22 11:13:56z IoTaWatt 4.x, Firmware version 02_06_06
4/27/22 11:13:56z SPIFFS mounted.
4/27/22 21:13:57 Local time zone: +10:00, using DST/BST when in effect.
4/27/22 21:13:58 device name: IotaWatt
4/27/22 21:13:58 HTTP server started
4/27/22 21:13:58 influxDB_v1: Starting, interval:10, url:http://192.168.1.153:8086
4/27/22 21:13:58 timeSync: service started.
4/27/22 21:13:58 statService: started.
4/27/22 21:13:58 dataLog: service started.
4/27/22 21:14:01 dataLog: Last log entry 04/27/22 21:13:50
4/27/22 21:14:03 historyLog: service started.
4/27/22 21:14:03 historyLog: Last log entry 04/27/22 21:13:00
4/27/22 21:14:04 WiFi connected. SSID=Madrigal_S, IP=192.168.1.110, channel=8, RSSI -73db
4/27/22 21:14:04 MDNS responder started for hostname IotaWatt
4/27/22 21:14:04 LLMNR responder started for hostname IotaWatt
4/27/22 21:14:04 Updater: service started. Auto-update class is MAJOR
4/27/22 21:14:06 Updater: Auto-update is current for class MAJOR.
4/27/22 21:14:08 PVoutput: started
4/27/22 21:14:08 PVoutput: System Point Cook 29, interval 5, freeload mode
4/27/22 21:14:10 PVoutput: Start status beginning 04/27/22 21:10:00
4/27/22 21:26:44 influxDB_v1: stopped, Last post 01/01/70 11:00:00
4/27/22 21:28:15 influxDB_v1: stopped, Last post 01/01/70 11:00:00
4/27/22 21:30:17 Heap memory has degraded below safe minimum, restarting.

** Restart **

SD initialized.
4/27/22 11:30:18z Real Time Clock is running. Unix time 1651059018
4/27/22 11:30:18z Reset reason: Software/System restart
4/27/22 11:30:18z Trace: 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:1[3], 1:2[4], 9:0[4], 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[2], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:1, 21:10, 21:10
4/27/22 11:30:18z ESP8266 ID: 2546248, RTC PCF8523
4/27/22 11:30:18z IoTaWatt 4.x, Firmware version 02_06_06
4/27/22 11:30:18z SPIFFS mounted.
4/27/22 21:30:19 Local time zone: +10:00, using DST/BST when in effect.
4/27/22 21:30:20 device name: IotaWatt
4/27/22 21:30:20 HTTP server started
4/27/22 21:30:20 influxDB_v1: Starting, interval:10, url:http://192.168.1.153:8086
4/27/22 21:30:20 timeSync: service started.
4/27/22 21:30:20 statService: started.
4/27/22 21:30:20 dataLog: service started.
4/27/22 21:30:23 dataLog: Last log entry 04/27/22 21:30:15
4/27/22 21:30:25 historyLog: service started.
4/27/22 21:30:25 historyLog: Last log entry 04/27/22 21:30:00
4/27/22 21:30:25 WiFi connected. SSID=Madrigal_S, IP=192.168.1.110, channel=8, RSSI -73db
4/27/22 21:30:25 MDNS responder started for hostname IotaWatt
4/27/22 21:30:26 LLMNR responder started for hostname IotaWatt
4/27/22 21:30:26 Updater: service started. Auto-update class is MAJOR
4/27/22 21:30:26 influxDB_v1: stopped, Last post 01/01/70 11:00:00
4/27/22 21:30:28 Updater: Auto-update is current for class MAJOR.
4/27/22 21:30:30 PVoutput: started
4/27/22 21:30:31 PVoutput: System Point Cook 29, interval 5, freeload mode
4/27/22 21:30:31 PVoutput: Start status beginning 04/27/22 21:30:00
4/27/22 21:35:25 influxDB_v1: stopped, Last post 01/01/70 11:00:00

Code -4 means the IoTaWatt was unable to connect to the infludDB server. Check your influxDB instance to see if there are any problems there.

The table update failure is an old bug. You are on auto-update MAJOR so you do not have the latest release. I would recommend you go with auto-update MINOR.

Thanks. I’ll play with my influx server over the next few days. And I’ll update the iotawatt as well.

Th -4 is most likely a network issue. Can be caused by using an IP address in iotawatt but your router/dhcp has issued a different IP address to the pi for some reason.

I have also had it when a switch went faulty and dropped 75% of the packets.

If you haven’t already done so it is worth reserving ip addresses for the iotawatt in the dhcp settings of your network (or using static IPs)

Appears my sd card had started to fail in my rasp pi.
Managed to copy and move to a new SD, but database was corrupted. Installed influx as a fresh install and now updating as it should.

Thanks all.