-
Notifications
You must be signed in to change notification settings - Fork 3
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
oom when using native influxDB ssl #10
Comments
Hey, sorry you're having issues. Just to confirm your using InfluxDB 2.0 and have you tried it with just an IP rather than a URL with HTTPS? If you want to attach any errors or logs I could take a look and see if I can figure out exactly where the issue is. To answer your specific question about MQTT, the topic has this structure: Examples For the PM2_5 state Tor the temperature config |
Thanks, appreciate the quick response and the MQTT details. :) I am indeed using InfluxDB 2.0. In my InfluxDB attempt described earlier, the only modification to the sketch (other than config) is that I added What is a bit weird is that timesync seems to be failing as well. At least, I'm guessing I'm not supposed to see a 1970 date as a result in the console: I'm afraid I'm new to Arduino, so I'm not entirely sure how to get more logs than what I'm able to see in the serial monitor. |
You're welcome, I'm happy to help. I should have been more specific about the address to use, you still need Also the time issue is almost certainly why the authentication isn't succeeding, so I think we should focus on getting NTP working. First I would back up or delete the air quality monitors sketch you have now, and download a fresh copy from github, just so were both on the same page as far as what the program is doing. Are you using the default NTP server? If your device is having trouble connecting to that server you might try a different one https://timetoolsltd.com/information/public-ntp-server/ Try the influxdb URL I mentioned above, then try a different NTP pool, and let me know how it goes. |
Ah, ok, I was already using the "https://ip:port" format. I ended up setting up a local ntp server via a Chrony docker, so the ntp sync is now successful. I figured the time aspect wouldn't come into play given that I was going for no cert validation, but at least that's one less thing to worry about. I replaced the sketch with an unmodified copy while leaving the config file in place.
When looking for |
Will you please try with |
Sure. Then it's complaining about the request not being https:
|
Are you using a proxy or did you enable SSL natively in InfluxDB? I tried my set up with a reverse proxy and it works with https. If you're using a reverse proxy could you point Arduino directly at InfluxDB so you can use a http connection. If not you can try and add |
SSL is enabled natively in InfluxDB. There is no reverse proxy in the mix. |
okay I'm able to re-create your issue, it's not an issue with self signed certificates. I will try to find a solution, give me a bit to tinker with it. |
Cool, thanks! |
So I don't have an satisfying answer for you. The problem is upstream, and I don't think I can provide a solution. As far as I can tell the root of the issue is that the influx http server does not respond to probeMaxFragmentLength request, thus allowing for the smaller buffer size. This is probably something that will be updated in the future. To collaborate my findings I found this excerpt from InfluxDB-Client-for-Arduino which states: Potential solutions, disable SSL in influxdb and just use HTTP requests or add a reverse proxy (haproxy or nginx), nginx being the recommended method by influx. These three methods are tested and working. let me know if you have any other issues |
Hmm, that's unfortunate. Thanks for looking into this. Is there a corresponding InfluxDB Issue you could share? |
You're welcome! I couldn't find any official issues. From what I have found their official stance is to use a reverse proxy. Once set up I think a proxy is a very good solution, good luck. |
As a last attempt I'll see if folks at the InfluxDB library repo have perhaps encountered this before and what their position is on it. There is meant to be support both for ESP8266 boards and secure connections with InfluxDB, so I'm guessing this must have come up, unless it's new or environmental somehow. |
Hi, firstly thanks a lot for this sketch. It's just what I've been looking for... or it will be once I get it working. :)
I initially tried setting things up for InfluxDB. Unfortunately I ran into a connection issue, probably due to my setup having a self-signed cert atm. My attempt to skip certificate validation via influxClient.setInsecure() also failed for some reason.
As an alternative I figured I'd set it up via MQTT, but would still like to get the data into InfluxDB as well.
Do you know what MQTT topic the messages get posted to? I would need the topic to be able to leverage the Telegraf mqtt_consumer plugin.
The text was updated successfully, but these errors were encountered: