Stopped logging to disk

Hi,
I have a total of 6 IoTaWatt’s (plural) - the oldest one i have has stopped writing a few of its inputs to disk, and therefore it cant sync to my EmonPi setup.

Look at node “MH_KITCEHEN_OUTLETS” - it has values - so it is reading, however opening Graph+ its flatnining,

How do I get this to work again, it is the same for a few other inputs… and only on this single device i have this problem.

Best Regards,
Allan

This may be an SDcard problem. Can you post the message log please?

Also, it looks like the current log was recreated on 12/29/21. Do you recall what happened then?

Latest section from Message Log:

SD initialized.
4/29/22 08:09:21z Real Time Clock is running. Unix time 1651219761
4/29/22 08:09:21z Reset reason: Software/System restart
4/29/22 08:09:21z Trace: 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: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
4/29/22 08:09:21z ESP8266 ID: 6989776, RTC PCF8523 (68)
4/29/22 08:09:21z IoTaWatt 4.x, Firmware version 02_07_05
4/29/22 08:09:21z Updater: Installing update files for version 02_07_05
4/29/22 08:09:21z Updater: Installing GRAPH.HTM
4/29/22 08:09:21z Updater: Installing GRAPH.JS
4/29/22 08:09:21z Updater: Installing GRAPH2.HTM
4/29/22 08:09:22z Updater: Installing GRAPH2.JS
4/29/22 08:09:22z Updater: Installing INDEX.HTM
4/29/22 08:09:23z Updater: Installing TABLES.TXT
4/29/22 08:09:23z Updater: Installing CNFSTYLE.CSS
4/29/22 08:09:23z Updater: Installing EDIT.HTM
4/29/22 08:09:23z Updater: Installing FAVICON.ICO
4/29/22 08:09:23z Updater: Installation complete.
4/29/22 08:09:23z SPIFFS mounted.
4/29/22 16:09:24 Local time zone: +8:00
4/29/22 16:09:24 device name: IotaWa41
4/29/22 16:09:24 HTTP server started
4/29/22 16:09:24 emoncms: Starting, interval:5, url:http://192.168.188.40
4/29/22 16:09:24 timeSync: service started.
4/29/22 16:09:24 statService: started.
4/29/22 16:09:24 dataLog: service started.
4/29/22 16:09:25 dataLog: Last log entry 04/29/22 16:08:55
4/29/22 16:09:28 WiFi connected. SSID=c0d3-WiFi, IP=192.168.188.41, channel=6, RSSI -46db
4/29/22 16:09:28 MDNS responder started for hostname IotaWa41
4/29/22 16:09:28 LLMNR responder started for hostname IotaWa41
4/29/22 16:09:28 Updater: service started. Auto-update class is NONE
4/29/22 16:09:29 historyLog: service started.
4/29/22 16:09:29 historyLog: Last log entry 04/29/22 16:08:00
4/29/22 16:09:30 emoncms: Start posting at 04/29/22 16:08:55

Just tried to update with latest version …

From the date of error.

** Restart **

SD initialized.
12/28/21 22:57:50z Real Time Clock is running. Unix time 1640732270
12/28/21 22:57:50z Reset Reason: Power-fail restart.
12/28/21 22:57:50z ESP8266 ID: 6989776, RTC PCF8523
12/28/21 22:57:50z IoTaWatt 4.x, Firmware version 02_06_06
12/28/21 22:57:50z SPIFFS mounted.
12/29/21 06:57:50 Local time zone: +8:00
12/29/21 06:57:50 device name: IotaWa41
12/29/21 06:57:53 Connecting with WiFiManager.
12/29/21 07:00:02 Did not connect after power-fail. Restarting to reset WiFi.

** Restart **

SD initialized.
12/28/21 23:00:03z Real Time Clock is running. Unix time 1640732403
12/28/21 23:00:03z Reset reason: Software/System restart
12/28/21 23:00:03z Trace: 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, 11:31, 11:32, 11:31, 31:100, 31:100, 31:100, 31:100, 31:101, 31:102, 3:100, 3:101, 3:102, 31:105, 31:105, 31:106, 11:35, 11:40, 11:45, 11:70
12/28/21 23:00:03z ESP8266 ID: 6989776, RTC PCF8523
12/28/21 23:00:03z IoTaWatt 4.x, Firmware version 02_06_06
12/28/21 23:00:03z SPIFFS mounted.
12/29/21 07:00:03 Local time zone: +8:00
12/29/21 07:00:03 device name: IotaWa41
12/29/21 07:00:03 HTTP server started
12/29/21 07:00:03 emoncms: Starting, interval:5, url:http://192.168.188.40
12/29/21 07:00:04 timeSync: service started.
12/29/21 07:00:04 statService: started.
12/29/21 07:00:04 dataLog: service started.
12/29/21 07:00:07 dataLog: Last log entry 12/29/21 06:28:15
12/29/21 07:00:09 historyLog: service started.
12/29/21 07:00:09 historyLog: Last log entry 12/29/21 06:28:00
12/29/21 07:00:13 WiFi connected. SSID=c0d3-WiFi, IP=192.168.188.41, channel=11, RSSI -67db
12/29/21 07:00:13 MDNS responder started for hostname IotaWa41
12/29/21 07:00:13 LLMNR responder started for hostname IotaWa41
12/29/21 07:00:13 Updater: service started. Auto-update class is MINOR
12/29/21 07:00:14 emoncms: Start posting at 12/21/21 00:00:05
12/29/21 07:00:18 Updater: Auto-update is current for class MINOR.
12/29/21 10:00:54 Updater: Invalid response from server. HTTPcode: -14

** Restart **

SD initialized.
12/29/21 03:35:18z Real Time Clock is running. Unix time 1640748918
12/29/21 03:35:18z Reset reason: Exception
12/29/21 03:35:18z Trace: 1:6[6], 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, 3:62, 3:63, 31:1, 1:6[6], 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, 3:62, 3:62, 3:64
12/29/21 03:35:18z ESP8266 ID: 6989776, RTC PCF8523
12/29/21 03:35:18z IoTaWatt 4.x, Firmware version 02_06_06
12/29/21 03:35:18z SPIFFS mounted.
12/29/21 11:35:18 Local time zone: +8:00
12/29/21 11:35:18 device name: IotaWa41
12/29/21 11:35:18 HTTP server started
12/29/21 11:35:18 emoncms: Starting, interval:5, url:
12/29/21 11:35:19 timeSync: service started.
12/29/21 11:35:19 statService: started.
12/29/21 11:35:19 dataLog: service started.
12/29/21 11:35:23 IotaLog: file damaged /iotawatt/iotalog.log

12/29/21 11:35:23 IotaLog: Creating diagnostic file.
12/29/21 12:09:17 IotaLog: Deleting /iotawatt/iotalog.log and restarting.

** Restart **

SD initialized.
12/29/21 04:09:19z Real Time Clock is running. Unix time 1640750959
12/29/21 04:09:19z Reset reason: Software/System restart
12/29/21 04:09:19z 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/29/21 04:09:19z ESP8266 ID: 6989776, RTC PCF8523
12/29/21 04:09:19z IoTaWatt 4.x, Firmware version 02_06_06
12/29/21 04:09:19z SPIFFS mounted.
12/29/21 12:09:19 Local time zone: +8:00
12/29/21 12:09:19 device name: IotaWa41
12/29/21 12:09:19 HTTP server started
12/29/21 12:09:19 emoncms: Starting, interval:5, url:
12/29/21 12:09:19 timeSync: service started.
12/29/21 12:09:20 statService: started.
12/29/21 12:09:20 dataLog: service started.
12/29/21 12:09:20 dataLog: New current log created.
12/29/21 12:09:21 dataLog: Last history entry: 12/29/21 11:35:00
12/29/21 12:09:25 Updater: service started. Auto-update class is MINOR
12/29/21 12:09:25 WiFi connected. SSID=c0d3-WiFi, IP=192.168.188.41, channel=11, RSSI -72db
12/29/21 12:09:25 MDNS responder started for hostname IotaWa41
12/29/21 12:09:25 LLMNR responder started for hostname IotaWa41
12/29/21 12:09:25 emoncms: Start posting at 12/29/21 12:09:30
12/29/21 12:09:31 Updater: Auto-update is current for class MINOR.
12/29/21 12:10:25 historyLog: service started.
12/29/21 12:10:25 historyLog: Last log entry 12/29/21 11:35:00
1/04/22 09:26:17 Updater: Update from 02_06_06 to 02_07_05
1/04/22 09:26:17 Updater: download 02_07_05
1/04/22 09:26:29 Updater: Release downloaded 12419ms, size 951104
1/04/22 09:26:37 Updater: signature verified
1/04/22 09:26:44 Updater: firmware upgraded to version 02_07_05
1/04/22 09:26:44 Updater: Firmware updated, restarting.

** Restart **

Im guessing this is the cuprint:

12/29/21 11:35:19 dataLog: service started.
12/29/21 11:35:23 IotaLog: file damaged /iotawatt/iotalog.log

12/29/21 11:35:23 IotaLog: Creating diagnostic file.
12/29/21 12:09:17 IotaLog: Deleting /iotawatt/iotalog.log and restarting.

The only file that has anything to do with diagnostics looks like this (not sure if that can be used for anything):

12/29/21 11:35:23
filesize 1614643200, entries 6307200
1612042310,12614400,1612142415,12634421
1612143815,12634422,1613904645,12986588
1613977670,12986589,1614535255,13098106
1614537835,13098107,1615177580,13226056
1615180480,13226057,1616784750,13546911
1616785530,13546912,1616981805,13586167
1616986325,13586168,1617623565,13713616
1617624380,13713617,1618092475,13807236
1618134875,13807237,1618466675,13873597
1618467325,13873598,1618807300,13941593
1618810150,13941594,1618811155,13941795
1618811965,13941796,1618812260,13941855
1618813925,13941856,1619742125,14127496
1619766410,14127497,1620089825,14192180
1620096415,14192181,1620511930,14275284
1620544925,14275285,1620589805,14284261
1620592690,14284262,1620634910,14292706
1620637105,14292707,1621490715,14463429
1621492330,14463430,1623094375,14783839
1623107045,14783840,1625423980,15247227
1625425360,15247228,1625760330,15314222
1625764770,15314223,1626461845,15453638
1626474630,15453639,1627659920,15690697
1627660745,15690698,1627769140,15712377
1627806140,15712378,1629134575,15978065
1629139160,15978066,1629160150,15982264
1629176295,15982265,1630188705,16184747
1630222030,16184748,1631046025,16349547
1631058235,16349548,1633256800,16789261
1633262390,16789262,1633384435,16813671
1633404665,16813672,1633416840,16816107
1633418760,16816108,1633817445,16895845
1633848345,16895846,1633992765,16924730
1633994550,16924731,1634005230,16926867
1634006100,16926868,1634012685,16928185
1634017810,16928186,1634270235,16978671
1634273600,16978672,1634273650,16978682
1634274910,16978683,1634847285,17093158
1634854895,17093159,1634907580,17103696
1634913220,17103697,1634949385,17110930
1634975175,17110931,1634995130,17114922
1634995850,17114923,1635104510,17136655
1635111910,17136656,1635264145,17167103
1635267315,17167104,1635302720,17174185
1635304705,17174186,1635334990,17180243
1635346465,17180244,1636448550,17400661
1636449295,17400662,1636974855,17505774
1636984170,17505775,1636989955,17506932
1636991040,17506933,1637148885,17538502
1637157070,17538503,1637161070,17539303
1637166880,17539304,1637697095,17645347
1637700495,17645348,1637990575,17703364
1637992895,17703365,1638050725,17714931
1638062425,17714932,1638089360,17720319
1638095545,17720320,1638152700,17731751
1638157780,17731752,1638219175,17744031
1638221490,17744032,1638495415,17798817
1638501195,17798818,1638545670,17807713
1638549205,17807714,1638551820,17808237
1638559855,17808238,1638628840,17822035
1638631105,17822036,1638948785,17885572
1638952790,17885573,1639646680,18024351
1640076365,18024352,1640730495,18155178
1640732410,18155179,1640748790,18158455
1640748790,18158455,1640748790,18158455
1640748790,18158455,1640748790,18158455
1640748790,18158455,1640748790,18158455
1640748790,18158455,1640748790,18158455
1640748790,18158455,1640748790,18158455
1640748790,18158455,1640748790,18158455
1640748790,18158455,1640748790,18158455
1640748790,18158455,1640748790,18158455
1640748835,18158464,1640748870,18158471
1640748870,18158471,1640748870,18158471
1640748870,18158471,1640748870,18158471
1640748870,18158471,1640748870,18158471
1640748870,18158471,1640748870,18158471
1640748870,18158471,1640748870,18158471
1640748870,18158471,1640748870,18158471
1640748870,18158471,1640748870,18158471
1640748870,18158471,1640748870,18158471
1608149350,11851280,1608150185,11851447
1608150185,11851447,1608150185,11851447
1608150185,11851447,1608150185,11851447
1608150185,11851447,1608150185,11851447
1608150185,11851447,1608150185,11851447
1608150185,11851447,1608150185,11851447
1608150185,11851447,1608150185,11851447
1608150185,11851447,1608150185,11851447
1608150185,11851447,1608150185,11851447
1608150230,11851456,1608155105,11852431
1608155105,11852431,1608155105,11852431
1608155105,11852431,1608155105,11852431
1608155105,11852431,1608155105,11852431
1608155105,11852431,1608155105,11852431
1608155105,11852431,1608155105,11852431
1608155105,11852431,1608155105,11852431
1608155105,11852431,1608155105,11852431
1608155105,11852431,1608155105,11852431
1576314800,5545240,1576314800,5545240
1608155155,11852441,1608155155,11852441
1608155155,11852441,1608155155,11852441
1608155155,11852441,1608155155,11852441
1608155155,11852441,1608155155,11852441
1608155155,11852441,1608155155,11852441
1608155155,11852441,1608155155,11852441
1608155155,11852441,1608155155,11852441
1608155190,11852448,1608155265,11852463
1608155265,11852463,1608155265,11852463
1608155265,11852463,1608155265,11852463
1608155280,11852466,1608155285,11852467
1608155285,11852467,1608155285,11852467
1608155285,11852467,1608155285,11852467
1608155285,11852467,1608155285,11852467
1608155285,11852467,1608155285,11852467
1608155285,11852467,1608155285,11852467
1608155285,11852467,1608155285,11852467
1608155285,11852467,1608155285,11852467
1608155285,11852467,1608155285,11852467
1608155285,11852467,1608155285,11852467
1608155285,11852467,1608155285,11852467
1608155285,11852467,1608155285,11852467
1608155285,11852467,1608155285,11852467
1608155350,11852480,1608310320,11883474
1608318720,11883475,1608480885,11915908
1608481505,11915909,1609484510,12116510
1609489180,12116511,1609868395,12192354
1609870185,12192355,1610296060,12277530
1610327820,12277531,1610375955,12287158
1610406105,12287159,1612042305,12614399
End of file

Any help is much appreciated. thanks.

With Graph+, can you try to determine when logging appears to have stopped on MH_KITCHEN_1 and verify it is the same with MH_VOLTAGE_1?

Yes, stopped at the same time… seems there was a crazy spike on that date:

Going any further back… it looks like this:

That was probably not a spike, but something with the datalog. I’m assuming that unit has logged data to Emoncms since then. With that datalog spike on the graph, it’s not possible to see if or when the voltage goes from 120V to zero as the scale is in lightning territory.

What happens if you plot “this year” or “this month” or “this week”?

Last 365 days…:

Last 30 days:

Looks like it just stopped logging data after the spike…

Here is the data just before the spike happening:

Voltage is unstable in the Philippines :smiley:

The only thing that would make sense here is if the datalog is contaminated with what is called NaN or Not a Number values. Given the history and datalog event in December, I think it’s time to clear the datalogs and start over.

There is no pushbutton way to do this, as it’s not something I recommend without good reason. The way to do it is to enter the following URL into your browser:

http://IotaWa41.local/command?deletelog=both

Your unit will restart and create new datalogs going forward. All history will be lost, but I believe you have that on your local Emoncms.