Hello, I have set up a Raspberry Pi 5 as a Ruuvi Bridge and it is working perfectly when I use as sink my cloud InfluxDB instance (InfluxDB Cloud Serverless - Storage Engine Version 3).
Now I am trying to set up a local InfluxDB instance (version 2.7.10) as sink and I’m getting the following error message:
The org name is correct, the bucket is set up correctly.
What might be the cause of this behavior? How can I fix?
Thank you for your help, I’m clearly missing something here but I haven’t been able to figure it out yet.
dial tcp [::1]:8086: connect: connection refused means the other end refused the connection when attempting to port 8086 on localhost over IPv6. As curl seems to work fine, it might be that your InfluxDB is listening only on IPv4, in which case you could try:
url: http://127.0.0.1:8086
instead of
url: http://localhost:8086
to force RuuviBridge to use IPv4 instead. If that doesn’t work, could you test your curl script with the -v verbose flag to see where and how it actually connects to troubleshoot further?
It just occurred me, are you running RuuviBridge in a docker container? In that case localhost is wrong, as it will point to the localhost of the container, not the “localhost” of the host machine, in which case you need to use a different address that properly points to your influxdb
That is indeed the case, I was not aware that docker containers by default map localhost to the container itself and not to the host - with the correct mapping I could quickly verify that it works.