InfluxDB_v2 Uploader 404 after routine restart

InfluxDB_v2 uploader stopped working after 6 week routine restart on 12/29/21

Log:

** Restart **

SD initialized.
11/17/21 21:47:57z Real Time Clock is running. Unix time 1637185677 
11/17/21 21:47:57z Reset reason: Software/System restart
11/17/21 21:47:57z 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: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
11/17/21 21:47:57z ESP8266 ID: 2517697, RTC PCF8523
11/17/21 21:47:57z IoTaWatt 4.x, Firmware version 02_07_04
11/17/21 21:47:57z Updater: Installing update files for version 02_07_04
11/17/21 21:47:57z Updater: Installing FAVICON.ICO
11/17/21 21:47:57z Updater: Installing GRAPH.HTM
11/17/21 21:47:57z Updater: Installing GRAPH.JS
11/17/21 21:47:57z Updater: Installing GRAPH2.HTM
11/17/21 21:47:57z Updater: Installing GRAPH2.JS
11/17/21 21:47:58z Updater: Installing INDEX.HTM
11/17/21 21:47:58z Updater: Installing TABLES.TXT
11/17/21 21:47:58z Updater: Installing CNFSTYLE.CSS
11/17/21 21:47:58z Updater: Installing EDIT.HTM
11/17/21 21:47:59z Updater: Installation complete.
11/17/21 21:47:59z SPIFFS mounted.
11/17/21 22:47:59 Local time zone: +1:00, using DST/BST when in effect.
11/17/21 22:47:59 device name: strom1
11/17/21 22:47:59 HTTP server started
11/17/21 22:47:59 influxDB_v1: Starting, interval:10, url:http://192.168.1.120:8086
11/17/21 22:47:59 influxDB_v2: Starting, interval:10, url:http://192.168.1.120:38086
11/17/21 22:47:59 timeSync: service started.
11/17/21 22:47:59 statService: started.
11/17/21 22:47:59 dataLog: service started.
11/17/21 22:48:01 dataLog: Last log entry 11/17/21 22:47:30
11/17/21 22:48:04 historyLog: service started.
11/17/21 22:48:04 historyLog: Last log entry 11/17/21 22:47:00
11/17/21 22:48:04 WiFi connected. SSID=***, IP=192.168.1.145, channel=6, RSSI -49db
11/17/21 22:48:04 MDNS responder started for hostname strom1
11/17/21 22:48:04 LLMNR responder started for hostname strom1
11/17/21 22:48:04 Updater: service started. Auto-update class is NONE
11/17/21 22:48:06 influxDB_v1: Start posting at 11/17/21 22:47:10
11/17/21 22:48:30 influxDB_v2: stopped, Last post 01/01/70 01:00:00
11/17/21 22:55:18 influxDB_v2: stopped, Last post 01/01/70 01:00:00
11/17/21 22:56:44 influxDB_v2: stopped, Last post 01/01/70 01:00:00
11/17/21 22:56:53 influxDB_v2: Resume posting 11/05/21 14:16:30
12/29/21 22:49:03 timeSync: Six week routine restart.

** Restart **

SD initialized.
12/29/21 21:49:05z Real Time Clock is running. Unix time 1640814545 
12/29/21 21:49:05z Reset reason: Software/System restart
12/29/21 21:49:05z 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:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[2], 1:6[2], 1:6[3], 1:5[20], 1:6[4], 20:0, 20:1
12/29/21 21:49:05z ESP8266 ID: 2517697, RTC PCF8523
12/29/21 21:49:05z IoTaWatt 4.x, Firmware version 02_07_04
12/29/21 21:49:05z SPIFFS mounted.
12/29/21 22:49:05 Local time zone: +1:00, using DST/BST when in effect.
12/29/21 22:49:05 device name: strom1
12/29/21 22:49:05 HTTP server started
12/29/21 22:49:05 influxDB_v1: Starting, interval:10, url:http://192.168.1.120:8086
12/29/21 22:49:05 influxDB_v2: Starting, interval:10, url:http://192.168.1.120:38086
12/29/21 22:49:05 timeSync: service started.
12/29/21 22:49:05 statService: started.
12/29/21 22:49:05 dataLog: service started.
12/29/21 22:49:08 dataLog: Last log entry 12/29/21 22:49:00
12/29/21 22:49:10 historyLog: service started.
12/29/21 22:49:10 historyLog: Last log entry 12/29/21 22:49:00
12/29/21 22:49:10 WiFi connected. SSID=***, IP=192.168.1.145, channel=6, RSSI -50db
12/29/21 22:49:10 MDNS responder started for hostname strom1
12/29/21 22:49:10 LLMNR responder started for hostname strom1
12/29/21 22:49:10 Updater: service started. Auto-update class is NONE
12/29/21 22:49:26 influxDB_v1: Start posting at 12/29/21 22:49:00

I also tried firmware 02_07_05

InfluxDB Version 2.1.1

I have two iotawatt devices. both have the same issue.

Does anyone have the same issue?

I found the issue. Back then I removed the read permission of the authorization token. With read and write permission it works. But why does iotawatt need read permission on influxdb?

When starting the uploader, the database is queried to get the timestamp of the most recent measurement. The upload resumes from that point maintaining a seamless upload with no holes.

1 Like