JS errors in Graphs - Resolved

Seeing JS errors and a 404 on the graphs page (query endpoint is not loading). This is on a MacOS and happens in Safari, Chrome and Firefox. Looks like all the scripts are loading normally. But I get nothing on the graph. Any suggestions?

That looks like one of the early versions of Graph+, probably called “enhanced graph” on your IoTaWatt. Can you post you message log so I can see the release version and auto-update class?

Last thing I did before sleepy time was to set the updater to minor, and it looks like I picked up an update that appears to have fixed everything. I’ll explore a bit more and check in when I know more. Thanks for the quick reply.

1 Like

I’m pretty sure that was the problem.

1 Like

I would like to understand the logs a bit more. Confused about the timestamps… looks like it updated and downloaded new files, but I started and ended with 02_05_02. Appreciate any tips here. (And sometime let’s talk offline about sailing!)

ESP8266 ChipID: 6308302
IoTaWatt 5.0, Firmware version 02_05_02
SPIFFS mounted.
Local time zone: +0:00
device name: IotaWatt
Connecting with WiFiManager.

** Restart **

SD initialized.
Real Time Clock not initialized.
Reset reason: Power on
Trace:  58:41[251], 33:24[214], 145:8[33], 156:227[73], 112:217[4], 149:90[161], 213:182[88], 76:62[138], 108:113[107], 91:190[135], 157:157, 135:241[223], 97:5[30], 189:236[147], 91:181[27], 51:167[198], 231:12[172], 167:142[226], 161:230[53], 145:155[113], 2:101[12], 119:216[220], 192:160[111], 177:12[46], 240:74[52], 22:108[189], 160:184[156], 231:248[172], 2:2[15], 44:141[199], 104:20[33], 205:163[12]
ESP8266 ChipID: 6308302
IoTaWatt 5.0, Firmware version 02_05_02
SPIFFS mounted.
Local time zone: +0:00
device name: IotaWatt
Connecting with WiFiManager.

** Restart **

SD initialized.
Real Time Clock not initialized.
Reset reason: External System
Trace:  58:41[251], 41:56[214], 145:8[33], 156:227[73], 112:209[140], 213:90[133], 213:183[89], 100:62[138], 108:241[107], 91:188[135], 25:157[128], 135:209[95], 97:1[28], 189:108[147], 89:181[27], 177:181[198], 231:12[172], 167:140[230], 177:247[177], 145:155[241], 2:101[28], 119:216[8], 192:160[127], 189:12[46], 177:74[54], 22:108[189], 160:186[220], 231:248[44], 2:3[15], 108:141[198], 104:20[97], 223:163[12]
ESP8266 ChipID: 6308302
IoTaWatt 5.0, Firmware version 02_05_02
SPIFFS mounted.
Local time zone: +0:00
device name: IotaWatt
Connecting with WiFiManager.

** Restart **

SD initialized.
Real Time Clock not initialized.
Reset reason: Hardware Watchdog
Trace:  15:2[6], 15:3, 15:0[6], 15:2[6], 15:3, 15:0[6], 15:2[6], 15:3, 15:0[6], 15:2[6], 15:3, 15:0[6], 15:2[6], 15:3, 15:0[6], 15:2[6], 15:3, 15:0[6], 15:2[6], 15:3, 15:0[6], 15:2[6], 15:3, 15:0[6], 15:2[6], 15:3, 11:8, 11:9, 16:0, 11:10, 11:11, 11:12
ESP8266 ChipID: 6308302
IoTaWatt 5.0, Firmware version 02_05_02
SPIFFS mounted.
Local time zone: +0:00
device name: IotaWatt
Connecting with WiFiManager.
MDNS responder started for hostname IotaWatt
LLMNR responder started for hostname IotaWatt
HTTP server started
WiFi connected. SSID=AR, IP=192.168.0.22, channel=1, RSSI -92db
timeSync: service started.
statService: started.
Updater: service started. Auto-update class is MINOR
1/07/20 03:39:31z timeSync: RTC initalized to NTP time
1/07/20 03:39:31z dataLog: service started.
1/07/20 03:39:31z dataLog: New current log created.
1/07/20 03:39:34z Updater: Auto-update is current for class MINOR.
1/07/20 03:41:31z historyLog: service started.
1/07/20 03:41:31z historyLog: first entry 01/07/20 03:40:00
1/06/20 21:44:00 Updater: Auto-update class changed to MAJOR
1/06/20 21:44:01 Updater: Update from 02_05_02 to 02_04_00
1/06/20 21:44:01 Updater: download 02_04_00
1/06/20 21:44:11 Updater: Release downloaded 10147ms, size 718464
1/06/20 21:44:18 Updater: signature verified
1/06/20 21:44:25 Updater: firmware upgraded to version 02_04_00
1/06/20 21:44:25 Updater: Firmware updated, restarting.

** Restart **

SD initialized.
1/07/20 03:44:31z Real Time Clock is running. Unix time 1578368671 
1/07/20 03:44:31z Reset reason: Software/System restart
1/07/20 03:44:31z Trace:  1:6, 1:3, 1:4, 1:5[19], 1:6, 1:1, 1:2, 9:0, 9:0, 8:4, 8:6, 8:8, 8:9, 1:2, 1:3, 1:4, 1:5[19], 1:6, 1:1, 1:2, 9:0, 9:0, 8:4, 8:6, 8:8, 8:9, 1:2, 1:3, 1:4, 1:5[5], 5:0, 5:7
1/07/20 03:44:31z ESP8266 ChipID: 6308302
1/07/20 03:44:31z IoTaWatt 5.0, Firmware version 02_04_00
1/07/20 03:44:31z Updater: Installing update files for version 02_04_00
1/07/20 03:44:31z Updater: Installing GRAPH.JS
1/07/20 03:44:31z Updater: Installing INDEX.HTM
1/07/20 03:44:32z Updater: Installing TABLES.TXT
1/07/20 03:44:32z Updater: Installing CNFSTYLE.CSS
1/07/20 03:44:32z Updater: Installing EDIT.HTM
1/07/20 03:44:32z Updater: Installing GRAPH.HTM
1/07/20 03:44:32z Updater: Installing GRAPH2.HTM
1/07/20 03:44:32z Updater: Installing GRAPH2.JS
1/07/20 03:44:32z Updater: Installation complete.
1/07/20 03:44:33z SPIFFS mounted.
1/06/20 21:44:34 Local time zone: -6:00
1/06/20 21:44:34 Using Daylight Saving Time (BST) when in effect.
1/06/20 21:44:34 device name: IotaWatt
1/06/20 21:44:34 MDNS responder started for hostname IotaWatt
1/06/20 21:44:34 LLMNR responder started for hostname IotaWatt
1/06/20 21:44:34 HTTP server started
1/06/20 21:44:34 timeSync: service started.
1/06/20 21:44:34 statService: started.
1/06/20 21:44:34 dataLog: service started.
1/06/20 21:44:34 dataLog: Last log entry 01/06/20 21:44:10
1/06/20 21:44:34 historyLog: service started.
1/06/20 21:44:34 historyLog: Last log entry 01/06/20 21:44:00
1/06/20 21:44:42 WiFi connected. SSID=AR, IP=192.168.0.22, channel=1, RSSI -90db
1/06/20 21:44:42 Updater: service started. Auto-update class is MAJOR
1/06/20 21:44:44 Updater: Auto-update is current for class MAJOR.
1/06/20 23:13:48 Updater: Auto-update class changed to MINOR
1/06/20 23:13:49 Updater: Update from 02_04_00 to 02_05_02
1/06/20 23:13:49 Updater: download 02_05_02
1/06/20 23:14:01 Updater: Release downloaded 12106ms, size 762848
1/06/20 23:14:08 Updater: Update downloaded and signature verified
1/06/20 23:14:15 Updater: firmware upgraded to version 02_05_02
1/06/20 23:14:16 Firmware updated, restarting.

** Restart **

SD initialized.
1/07/20 05:14:22z Real Time Clock is running. Unix time 1578374062 
1/07/20 05:14:22z Reset reason: Software/System restart
1/07/20 05:14:22z Trace:  1:4, 1:5[19], 1:6, 1:1[2], 1:2, 9:0, 9:0, 8:4, 8:6, 8:8, 8:9, 1:2, 1:3, 1:4, 1:5[19], 1:6, 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:4, 1:5[5]
1/07/20 05:14:22z ESP8266 ChipID: 6308302
1/07/20 05:14:22z IoTaWatt 5.0, Firmware version 02_05_02
1/07/20 05:14:22z Updater: Installing update files for version 02_05_02
1/07/20 05:14:22z Updater: Installing GRAPH.JS
1/07/20 05:14:22z Updater: Installing GRAPH2.HTM
1/07/20 05:14:22z Updater: Installing GRAPH2.JS
1/07/20 05:14:22z Updater: Installing INDEX.HTM
1/07/20 05:14:23z Updater: Installing TABLES.TXT
1/07/20 05:14:23z Updater: Installing CNFSTYLE.CSS
1/07/20 05:14:23z Updater: Installing EDIT.HTM
1/07/20 05:14:23z Updater: Installing GRAPH.HTM
1/07/20 05:14:24z Updater: Installation complete.
1/07/20 05:14:24z SPIFFS mounted.
1/06/20 23:14:25 Local time zone: -6:00
1/06/20 23:14:25 Using Daylight Saving Time (BST) when in effect.
1/06/20 23:14:25 device name: IotaWatt
1/06/20 23:14:25 MDNS responder started for hostname IotaWatt
1/06/20 23:14:25 LLMNR responder started for hostname IotaWatt
1/06/20 23:14:25 HTTP server started
1/06/20 23:14:25 timeSync: service started.
1/06/20 23:14:25 statService: started.
1/06/20 23:14:25 dataLog: service started.
1/06/20 23:14:25 dataLog: Last log entry 01/06/20 23:14:00
1/06/20 23:14:25 historyLog: service started.
1/06/20 23:14:25 historyLog: Last log entry 01/06/20 23:13:00
1/06/20 23:14:33 WiFi connected. SSID=AR, IP=192.168.0.22, channel=1, RSSI -91db
1/06/20 23:14:33 Updater: service started. Auto-update class is MINOR
1/06/20 23:14:37 Updater: Auto-update is current for class MINOR.

Hi Andy,

Note the “z” after the time after a restart. That indicates the time is UTC. You are -6 hours. As soon as the config is processed and the local time offset is known, the timestamps become local time without the “zulu”. That should clear up the timestamp issue.

This appears to be a new toy for you. A little late for Christmas but you started it up yesterday at about 9pm. It had the latest release - 02_05_02 loaded then.

You changed the auto-update class to major at 21:44, and the unit immediately downgraded to 02_04_00 (I should change that).

Apparently that’s when you started to see the problem with the old prototype graph. At 23:13 you set auto-update back to MINOR and the unit immediately upgraded to 02_05_02, the original version that you received.

Now everything is hunky-dory. btw. your WiFi signal is not great, but if you are not having problems don’t worry about it. One of the hardest things IoTaWatt does is download the release files, and you seem to have downloaded two of them just fine.

Great info. I figured the version downgrade was not by design. And a wifi extender is on the birthday list.

Thanks!