Skip to content

influxdb watchdog reset #308

@hpsaturn

Description

@hpsaturn

Overview

Sometimes the InfluxDB connection fails, and it still in a continous loop. We need a of the InfluxDB connection. Right now in the devel branch we have a provisional workaround:

Debug output

== CanAirIO Setup ==

-->[POWR] CPU Speed:160 MHz
-->[OGUI] display config ready.

-->[INFO] == Type "setup" for enter in safe mode (over in 10seg!) ==

                                                                          
 .d8888b.                           d8888 d8b         8888888  .d88888b.  
d88P  Y88b                         d88888 Y8P           888   d88P" "Y88b 
888    888                        d88P888               888   888     888 
888         8888b.  88888b.      d88P 888 888 888d888   888   888     888 
888            "88b 888 "88b    d88P  888 888 888P"     888   888     888 
888    888 .d888888 888  888   d88P   888 888 888       888   888     888 
Y88b  d88P 888  888 888  888  d8888888888 888 888       888   Y88b. .d88P 
 "Y8888P"  "Y888888 888  888 d88P     888 888 888     8888888  "Y88888P"  
                                                                          

setup:$ 
==>[INFO] Time for initial setup over. Booting..


-->[INFO] ESP32MAC              : 60:55:F9:23:34:32
-->[INFO] Hostname              : CanAirIO432
-->[INFO] Revision              : r989
-->[INFO] Firmware              : 0.7.0
-->[INFO] Flavor                : ESP32C3LOLIN
-->[INFO] Target                : dev
-->[INFO] == Detecting Sensors ==
-->[INFO] Sensorslib version    : 0.7.6
-->[INFO] enable hw on GPIO     : 3
-->[INFO] config UART sensor    : GENERIC
-->[SLIB] temperature unit      : C
-->[SLIB] temperature offset    : 0.00
-->[SLIB] altitude offset       : 0.00
-->[SLIB] sea level pressure    : 1013.25 hPa
-->[SLIB] only i2c sensors      : false
-->[SLIB] sensor registered     : SPS30         :D
-->[SLIB] sensor registered     : BME280        :D
-->[SLIB] sensors count         : 2 (SPS30,BME280,)
-->[INFO] restored saved unit   : PM2.5
-->[SLIB] sensors units count   : 7 (PM1,PM2.5,PM4,PM10,T,H,Alt,)
-->[WDOG] watchdog check each   : 120 seconds.
-->[WIFI] device network IP     : 192.168.178.78
-->[WIFI] publish interval      : 10 sec.
-->[FOTA] remote OTA update     : not need update
-->[IFDB] influxdb.canair.io    : connection failed!
[E][IFDB] connection error!
-->[INFO] InfluxDb cloud        : enabled
-->[INFO] WiFi current config   : enabled
-->[INFO] CanAirIO station name : U33ESP32C333432
-->[BTLE] Bluetooth GATT        : ready for config client!
-->[INFO] sensors units count   : 7
-->[INFO] show unit selected    : PM2.5
-->[HEAP] sizeof sensors        : 01108b
-->[HEAP] sizeof GUI            : 00108b
-->[HEAP] free memory           : 93512b

==>[INFO] Setup end. CLI enable. Press ENTER  ===

-->[IFDB] influxdb.canair.io    : connected!
[E][IFDB] Write Point failed: read Timeout
[E][IFDB] write error to canairio@influxdb.canair.io:8086 
[E][IFDB] Write Point failed: connection refused
[E][IFDB] write error to canairio@influxdb.canair.io:8086 
[E][IFDB] Write Point failed: read Timeout
[E][IFDB] write error to canairio@influxdb.canair.io:8086 
[E][IFDB] Write Point failed: {"error":"unable to parse 'fixed_stations_01,mac=60:55:F9:23:34:32,geo3=u33,name=U33ESP32C333432,rev=v0.7.0r989dev,mac=60:55:F9:23:34:32,geo3=u33,name=U33ESP32C333432,rev=v0.7.0r989dev pm1=12i,pm25=13i,pm10=13i,co2=0i,co2hum=0.00,co2tmp=0.00,tmp=23.58,hum=43.22,geo=\"u33dcu0\",prs=100521.04,gas=0.00,nh3=0.00,co=0.00,no2=0.00,o3=0.00,alt=67.15,cpm=0i,usvh=0.00,rssi=-65i,heap=84712i,name=\"U33ESP32C333432\"': duplicate tags"}

[E][IFDB] write error to canairio@influxdb.canair.io:8086 
[E][IFDB] Write Point failed: read Timeout
[E][IFDB] write error to canairio@influxdb.canair.io:8086 
[E][IFDB] Write Point failed: {"error":"unable to parse 'fixed_stations_01,mac=60:55:F9:23:34:32,geo3=u33,name=U33ESP32C333432,rev=v0.7.0r989dev,mac=60:55:F9:23:34:32,geo3=u33,name=U33ESP32C333432,rev=v0.7.0r989dev pm1=12i,pm25=14i,pm10=14i,co2=0i,co2hum=0.00,co2tmp=0.00,tmp=23.62,hum=42.98,geo=\"u33dcu0\",prs=100519.10,gas=0.00,nh3=0.00,co=0.00,no2=0.00,o3=0.00,alt=67.31,cpm=0i,usvh=0.00,rssi=-64i,heap=85028i,name=\"U33ESP32C333432\"': duplicate tags"}

[E][IFDB] write error to canairio@influxdb.canair.io:8086 
[E][IFDB] Write Point failed: {"error":"unable to parse 'fixed_stations_01,mac=60:55:F9:23:34:32,geo3=u33,name=U33ESP32C333432,rev=v0.7.0r989dev,mac=60:55:F9:23:34:32,geo3=u33,name=U33ESP32C333432,rev=v0.7.0r989dev pm1=12i,pm25=13i,pm10=13i,co2=0i,co2hum=0.00,co2tmp=0.00,tmp=23.58,hum=42.99,geo=\"u33dcu0\",prs=100517.94,gas=0.00,nh3=0.00,co=0.00,no2=0.00,o3=0.00,alt=67.41,cpm=0i,usvh=0.00,rssi=-65i,heap=82964i,name=\"U33ESP32C333432\"': duplicate tags"}

[E][IFDB] write error to canairio@influxdb.canair.io:8086 
[E][IFDB] reached error count   : rebooting..ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x40381bec
  #0  0x40381bec in esp_restart_noos_dig at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/esp_system.c:53 (discriminator 1)

SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5810,len:0x438
load:0x403cc710,len:0x90c
load:0x403ce710,len:0x2624
entry 0x403cc710

== CanAirIO Setup ==

-->[POWR] CPU Speed:160 MHz
-->[OGUI] display config ready.

-->[INFO] == Type "setup" for enter in safe mode (over in 10seg!) ==

                                                                          
 .d8888b.                           d8888 d8b         8888888  .d88888b.  
d88P  Y88b                         d88888 Y8P           888   d88P" "Y88b 
888    888                        d88P888               888   888     888 
888         8888b.  88888b.      d88P 888 888 888d888   888   888     888 
888            "88b 888 "88b    d88P  888 888 888P"     888   888     888 
888    888 .d888888 888  888   d88P   888 888 888       888   888     888 
Y88b  d88P 888  888 888  888  d8888888888 888 888       888   Y88b. .d88P 
 "Y8888P"  "Y888888 888  888 d88P     888 888 888     8888888  "Y88888P"  
                                                                          

setup:$ 
==>[INFO] Time for initial setup over. Booting..


-->[INFO] ESP32MAC              : 60:55:F9:23:34:32
-->[INFO] Hostname              : CanAirIO432
-->[INFO] Revision              : r989
-->[INFO] Firmware              : 0.7.0
-->[INFO] Flavor                : ESP32C3LOLIN
-->[INFO] Target                : dev
-->[INFO] == Detecting Sensors ==
-->[INFO] Sensorslib version    : 0.7.6
-->[INFO] enable hw on GPIO     : 3
-->[INFO] config UART sensor    : GENERIC
-->[SLIB] temperature unit      : C
-->[SLIB] temperature offset    : 0.00
-->[SLIB] altitude offset       : 0.00
-->[SLIB] sea level pressure    : 1013.25 hPa
-->[SLIB] only i2c sensors      : false
-->[SLIB] sensor registered     : SPS30         :D
-->[SLIB] sensor registered     : BME280        :D
-->[SLIB] sensors count         : 2 (SPS30,BME280,)
-->[INFO] restored saved unit   : PM2.5
-->[SLIB] sensors units count   : 7 (PM1,PM2.5,PM4,PM10,T,H,Alt,)
-->[WDOG] watchdog check each   : 120 seconds.
-->[WIFI] device network IP     : 192.168.178.78
-->[WIFI] publish interval      : 10 sec.
-->[FOTA] remote OTA update     : not need update
-->[IFDB] influxdb.canair.io    : connected!
-->[INFO] InfluxDb cloud        : enabled
-->[INFO] WiFi current config   : enabled
-->[INFO] CanAirIO station name : U33ESP32C333432
-->[BTLE] Bluetooth GATT        : ready for config client!
-->[INFO] sensors units count   : 7
-->[INFO] show unit selected    : PM2.5
-->[HEAP] sizeof sensors        : 01108b
-->[HEAP] sizeof GUI            : 00108b
-->[HEAP] free memory           : 90736b

==>[INFO] Setup end. CLI enable. Press ENTER  ===

Device config

This issue seems that happen more in the ESP32C3.

board: tested on ESP32C3 Lolin Mini
firmware version: rev989 branch:  esp32c3_ble_support
OLED: yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    MinorGood for newcomersbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions