-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InfluxDB crashing device after a restart #318
Comments
Original comment by Oscar Rovira (Bitbucket: OscarRoviraLopez, GitHub: Unknown): I traced down the problem to:
Apparently the connect call is failing somewhere and throwing an exception. Should be a problem of ESPAsyncTCP. |
Original comment by Oscar Rovira (Bitbucket: OscarRoviraLopez, GitHub: Unknown): |
I'm going to check it. The device stopping to work completely after 5 crashes is the system check feature, It basically disables non-critical features trying to reach a stable configuration. The device is such state only enables WiFi AP mode, OTA and telnet. So you can connect to it's AP, telnet to it and disable InfluxDB, for instance. |
The problem is with the initial heartbeat message (freeheap and uptime sent to InfluxDB). It was called from the mqtt on connect callback. Bad idea. I moved it to the main loop. I've also updated the InfluxDB module and UI configuration to allow the user to disable it with a switch or build an image with predefined connection values. The changes are in the dev branch. Will be released with next version. |
Original comment by Oscar Rovira (Bitbucket: OscarRoviraLopez, GitHub: Unknown): Awesome! Already compiled and uploaded the code on dev branch and it works! Thanks a lot! |
Released with 1.11.0 |
Removing milestone: 1.11.0 (automated comment) |
Originally reported by: Oscar Rovira (Bitbucket: OscarRoviraLopez, GitHub: Unknown)
Device: Sonoff POW
Version: >1.10.0
Steps
Temporal fix
Erase eeprom and not enabling InfluxDB support.
Log
See in Pastebin.com
The text was updated successfully, but these errors were encountered: