influxDB code 404 with release 02_05_07 - Resolved

Hi @overeasy – just wanted to report an influx bug in 2_05_07 – I rolled back to major _02 and its working again.

4/20/20 20:47:42z Updater: Update from 02_05_02 to 02_05_07
4/20/20 20:47:42z Updater: download 02_05_07
4/20/20 20:48:03z Updater: Release downloaded 20913ms, size 803168
4/20/20 20:48:20z Updater: signature verified
4/20/20 20:48:27z Updater: firmware upgraded to version 02_05_07
4/20/20 20:48:28z Updater: Firmware updated, restarting.

** Restart **

SD initialized.
4/20/20 20:48:36z Real Time Clock is running. Unix time 1587415716 
4/20/20 20:48:36z Reset reason: Software/System restart
4/20/20 20:48:36z Trace:  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[19], 1:6, 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:4, 1:5[5], 5:0, 5:7
4/20/20 20:48:36z ESP8266 ChipID: 6920629
4/20/20 20:48:36z IoTaWatt 4.x, Firmware version 02_05_07
4/20/20 20:48:36z Updater: Installing update files for version 02_05_07
4/20/20 20:48:36z Updater: Installing EDIT.HTM
4/20/20 20:48:36z Updater: Installing GRAPH.HTM
4/20/20 20:48:37z Updater: Installing GRAPH.JS
4/20/20 20:48:37z Updater: Installing GRAPH2.HTM
4/20/20 20:48:38z Updater: Installing GRAPH2.JS
4/20/20 20:48:39z Updater: Installing INDEX.HTM
4/20/20 20:48:41z Updater: Installing TABLES.TXT
4/20/20 20:48:41z Updater: Installing CNFSTYLE.CSS
4/20/20 20:48:41z Updater: Installation complete.
4/20/20 20:48:41z SPIFFS mounted.
4/20/20 20:48:42z EmonService: Invalid configuration.
4/20/20 20:48:42z Local time zone: +0:00
4/20/20 20:48:42z device name: IotaWatt
4/20/20 20:48:42z HTTP server started
4/20/20 20:48:42z timeSync: service started.
4/20/20 20:48:42z statService: started.
4/20/20 20:48:42z dataLog: service started.
4/20/20 20:48:45z dataLog: Last log entry 04/20/20 20:48:00
4/20/20 20:48:45z historyLog: service started.
4/20/20 20:48:46z historyLog: Last log entry 04/20/20 20:47:00
4/20/20 20:48:47z influxDB: started, url=HTTP://<INFLUX>/, db=power, interval=10
4/20/20 20:48:47z WiFi connected. SSID=<SSID>, IP=<IP>, channel=11, RSSI -82db
4/20/20 20:48:47z MDNS responder started for hostname IotaWatt
4/20/20 20:48:47z LLMNR responder started for hostname IotaWatt
4/20/20 20:48:47z Updater: service started. Auto-update class is MINOR
4/20/20 20:48:48z influxDB: Last entry query failed.
4/20/20 20:48:48z influxDB: HTTPcode 404, 404 page not found

4/20/20 20:48:48z influxDB: Stopped. Last post 01/06/18 00:00:00
4/20/20 20:48:49z Updater: Auto-update is current for class MINOR.
4/22/20 23:54:15z Updater: Invalid response from server. HTTPcode: -11
4/23/20 00:01:37z WiFi disconnected.
4/23/20 00:01:38z WiFi connected. SSID=<SSID>, IP=<IP>, channel=11, RSSI -83db
4/23/20 00:05:08z EmonService: Invalid configuration.
4/23/20 00:05:08z influxDB: started, url=HTTP://<INFLUX_SERVER>/, db=power, interval=10
4/23/20 00:05:09z influxDB: Last entry query failed.
4/23/20 00:05:09z influxDB: HTTPcode 404, 404 page not found

4/23/20 00:05:09z influxDB: Stopped. Last post 01/06/18 00:00:00
4/23/20 00:07:53z EmonService: Invalid configuration.
4/23/20 00:07:53z influxDB: started, url=HTTP://<INFLUX_SERVER>/, db=power, interval=10
4/23/20 00:07:53z influxDB: Last entry query failed.
4/23/20 00:07:53z influxDB: HTTPcode 404, 404 page not found

4/23/20 00:07:53z influxDB: Stopped. Last post 04/20/20 00:00:00
4/23/20 00:09:00z EmonService: Invalid configuration.
4/23/20 00:09:00z influxDB: started, url=HTTP://<INFLUX_SERVER>/, db=power, interval=10
4/23/20 00:09:00z influxDB: Last entry query failed.
4/23/20 00:09:00z influxDB: HTTPcode 404, 404 page not found

4/23/20 00:09:00z influxDB: Stopped. Last post 04/20/20 00:00:00
4/23/20 00:10:54z EmonService: Invalid configuration.
4/23/20 00:10:54z influxDB: started, url=HTTP://<INFLUX_SERVER>/, db=power, interval=10
4/23/20 00:10:54z influxDB: Last entry query failed.
4/23/20 00:10:54z influxDB: HTTPcode 404, 404 page not found

4/23/20 00:10:54z influxDB: Stopped. Last post 04/20/20 00:00:00
4/23/20 00:11:35z EmonService: Invalid configuration.
4/23/20 00:11:36z influxDB: started, url=HTTP://<INFLUX_SERVER>/, db=power, interval=10
4/23/20 00:11:36z influxDB: Last entry query failed.
4/23/20 00:11:36z influxDB: HTTPcode 404, 404 page not found

4/23/20 00:11:36z influxDB: Stopped. Last post 04/20/20 00:00:00
4/23/20 00:12:26z EmonService: Invalid configuration.
4/23/20 00:14:06z EmonService: Invalid configuration.
4/23/20 00:14:33z Restart command received.

I can attach the config as well if its useful, but the “404” suggests to me something else is going on. I haven’t done a packet capture there yet, letting it do a backfill of the last few days it missed.

Let me know if there is something specific that would be helpful!

Yea, it looks like something in your config. Could you send me a copy in a PM?

Hi
I’d like to hook in here. I first reported the same bug on github and now created my forum account :slight_smile:

Have you already found a solution for the problem for Matt?

Out of curiosity i just updated to the latest alpha and still have the same issue.
Also, changing from the hostname to the IP address does not have a positive impact.

I quickly tried to analyze which url you finally call with which query so i could try it from my local machine, but i did not fully understand the code on github.

Let me know if i can help anything more.


** Restart **

SD initialized.
5/14/20 20:07:24z Real Time Clock is running. Unix time 1589486844
5/14/20 20:07:24z Reset reason: Software/System restart
5/14/20 20:07:24z Trace: 15:1[32], 15:2[32], 15:3[32], 15:10, 15:12, 15:13, 15:14[32], 15:15[2], 15:16, 15:17, 15:4, 1:4, 1:5[19], 1:6, 1:1[4], 1:2[5], 9:0[5], 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], 5:0, 5:7
5/14/20 20:07:24z ESP8266 ChipID: 2528187
5/14/20 20:07:24z IoTaWatt 5.0, Firmware version 02_05_08
5/14/20 20:07:24z Updater: Installing update files for version 02_05_08
5/14/20 20:07:24z Updater: Installing GRAPH.HTM
5/14/20 20:07:24z Updater: Installing GRAPH.JS
5/14/20 20:07:24z Updater: Installing GRAPH2.HTM
5/14/20 20:07:24z Updater: Installing GRAPH2.JS
5/14/20 20:07:25z Updater: Installing INDEX.HTM
5/14/20 20:07:26z Updater: Installing TABLES.TXT
5/14/20 20:07:26z Updater: Installing CNFSTYLE.CSS
5/14/20 20:07:26z Updater: Installing EDIT.HTM
5/14/20 20:07:26z Updater: Installation complete.
5/14/20 20:07:26z SPIFFS mounted.
5/14/20 23:07:27 Local time zone: +2:00
5/14/20 23:07:27 Using Daylight Saving Time (BST) when in effect.
5/14/20 23:07:27 device name: Iota1
5/14/20 23:07:27 HTTP server started
5/14/20 23:07:27 timeSync: service started.
5/14/20 23:07:27 statService: started.
5/14/20 23:07:28 dataLog: service started.
5/14/20 23:07:28 dataLog: Last log entry 05/14/20 23:07:00
5/14/20 23:07:28 historyLog: service started.
5/14/20 23:07:29 historyLog: Last log entry 05/14/20 23:05:00
5/14/20 23:07:32 influxDB: started, url=HTTP://diskstation.local:8086/, db=iotawatt, interval=10
5/14/20 23:07:33 WiFi connected. SSID=XXXX, IP=192.168.1.XXX, channel=7, RSSI -63db
5/14/20 23:07:33 MDNS responder started for hostname Iota1
5/14/20 23:07:33 LLMNR responder started for hostname Iota1
5/14/20 23:07:33 Updater: service started. Auto-update class is MINOR
5/14/20 23:07:33 influxDB: Last entry query failed.
5/14/20 23:07:33 influxDB: HTTPcode 404, 404 page not found

5/14/20 23:07:34 Updater: Auto-update is current for class MINOR.
5/14/20 23:07:34 influxDB: Stopped. Last post 01/01/19 00:00:00
5/14/20 23:41:11 influxDB: started, url=HTTP://192.168.1.XXX:8086/, db=iotawatt, interval=10
5/14/20 23:41:11 influxDB: Last entry query failed.
5/14/20 23:41:11 influxDB: HTTPcode 404, 404 page not found

5/14/20 23:41:11 influxDB: Stopped. Last post 01/01/19 00:00:00

Ok. I had time to play and I think i found it :slight_smile:

Finally it was the trailing slash in the URL…

I have now “HTTP://diskstation.local:8086” and it seems to work. I will let it run for some time and see if my continous queries are building correctly.

Cheers
Martin

1 Like