Hi everyone,
I am new to influxdb and new to this community.
While pushing data to influxdb from the influxdb out node in node-red I sometimes get the error message “dial tcp [::1]:8086: connect: connection refused”.
When refreshing a Grafana dashboard I sometimes get the error “no data”.
influxdb, node-red and Grafana are all executing in the same Raspberry Pi 4 computer.
Trying to isolate the problem, I began manually running queries repeatedly from the inluxdb CLI, most of the times the query runs fine:
select * from “nivelH2o”
name: nivelH2o
time loc nivel_pct nivel_sensor
1632856809973 cisterna 43.19157672813099 3.1938595691434024
1632856829073 cisterna 18.938666672846804 8.715084643526811
1632856829807 cisterna 82.31688393331589 3.3109196817268605
1632856830402 cisterna 33.84850455703954 8.453631839087993
1632856831166 cisterna 66.96669548503591 4.332892746369956
1632856831986 cisterna 62.17128665693119 6.99014719316458
1632856832718 cisterna 86.14980588764973 7.562720683657669
1632856833406 cisterna 92.27048683118184 2.5042919677075903
1632856833986 cisterna 77.91465328894208 9.903400324637403
1632856834635 cisterna 76.35799966183623 2.5247353051019195
1632856835251 cisterna 78.47557824501405 6.635779339042069
1632857080169 cisterna 71.21246528681414 4.666406310115185
1632857108872 cisterna 60.17092746839825 0.6445083826786391
1632857110229 cisterna 61.384538979413314 3.7436960154569054
1632857112525 cisterna 39.65964190953821 4.714468794354798
1632857115661 cisterna 26.574103015043526 4.5839004611283745
but sometimes I get the following :
select * from “nivelH2o”
ERR: Post http://localhost:8086/query?chunked=true&db=speedTest&epoch=ns&q=select+*+from+“nivelH2o”: dial tcp [::1]:8086: connect: connection refused
I am sorry I can’t be more specific than “sometimes”, but it is not always the same. Usually it takes no more than 10 attempts and I don’t find a relation to the time between attempts.
Seems that the TCP port is open by influxdb but sometimes the client times out.
My current setup is:
HARDWARE
Raspberry Pi 4 4GB
No SD card
SSD connected to USB 3.0 port
Operating System
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
influxDB Installation procedure
wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
echo “deb InfluxData - Package Repository buster stable” | sudo tee /etc/apt/sources.list.d/influxdb.list
sudo apt update
sudo apt install influxdb
sudo systemctl unmask influxdb
sudo systemctl enable influxdb
influxDB version
InfluxDB v1.8.9 (git: 1.8 d9b56321d579)
Influxdb.conf
Can be found here:
https://1drv.ms/u/s!Alan3GubZEq3zZJe0cB60dlaiTECTw?e=8ZN4f5
Many thanks!