Influx DB Verbindung

Hallo,

leider verzweifele ich gerade schon bei dem Einrichten einer Verdingung zu meiner InluxDB 2.x und benötige Tips und Hilfe.

Ich habe in der InfluxDB einen neuen Bucket und ein API Tolen angelegt. Für dem Tocken habe ich als Rechte rad/write beim Bucket, sowie read/write bei All User und All Orgas eingetragen.

Wenn ich versuche die Daten zu verwenden kommt immer die Meldung “keine Verbindung” Im log steht

Cannot connect to InfluxDB due to 'HTTPConnection(host='10.10.0.42', port=8080): Failed to establish a new connection: [Errno 111] Connection refused'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible.
Cannot connect to InfluxDB due to 'HTTPConnection(host='10.10.0.42', port=80): Failed to establish a new connection: [Errno 111] Connection refused'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible.
Cannot connect to InfluxDB due to 'HTTPSConnection(host='10.10.0.42', port=443): Failed to establish a new connection: [Errno 111] Connection refused'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible.
Cannot connect to InfluxDB due to 'HTTPSConnection(host='10.10.0.42', port=8080): Failed to establish a new connection: [Errno 111] Connection refused'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible.

Ich habe bei URL http://1010.0.42 (die IP meiner Influx VM), sowie http://1010.0.42:8080 und jeweils mit und ohne Prüfung SSL (was nicht vorhanden ist) eingetragen.

Testweise habe ich in meinem abzulösenden ioBroker einen Influx Instanz erstellt und die selben Daten dort eingegeben, da klappt die Verbindung mit http//10.10.0.42:8080. was also bedeutet, der API Token und die URL ja eigentlich passen. In den Einstellungen die mir Home Assistant bietet kann ich ja weiter erstmal nichts eingeben.

Bin für jede Hilfe, Tips, Nackenschläge dankbar.

…man liest sich,

Carsten

Hallo @CMartens ,
bei mir läuft InfluxDB auf Port 8086. Das hast Du wohl für Deine Instanz angepasst?

…hast Du mal versucht, die Portnummer direkt hinter die URL zu schreiben. Ist jetzt im trüben Fischen, da sich die Art der Config der InfluxDB ja mit 2026.03 (zum schlechteren) geändert hat.

Hallo @djiwondee

erstmal danke für die Antwort. Ja, der Port wurde geändert - weiß aber nicht mehr warum, war vor drei Jahren :wink:

Ich habe den Port schon mal mit angegeben. Mit dem gleichen Ergebnis.

Ich habe dann nochmal in ioBroker getestet. Das Log dort hat das ausgegeben

influxdb.1 2026-03-11 10:31:27.224	info	Connected!
influxdb.1 2026-03-11 10:31:27.195	info	Applying retention policy for hoas to 31536000 seconds. Shard Group Duration (calculated): 604800 seconds
influxdb.1 2026-03-11 10:31:27.172	info	Influx DB Version used: 2.x
influxdb.1 2026-03-11 10:31:27.172	info	Connecting http://10.10.0.42:8080/ ...
influxdb.1 2026-03-11 10:31:27.171	info	No stored data from last exit found
influxdb.1 2026-03-11 10:31:27.162	info	starting. Version 4.0.2 in /opt/iobroker/node_modules/iobroker.influxdb, node: v22.22.0, js-controller: 7.0.7

Ich habe dann die Adresse da heraus kopiert, inkl. http:// - das ja schon in Home Assistant vorgegeben war und ich immer nur durch die IP und Port ergänzt hatte - und habe das ganze Feld gelöscht und eingefügt. Und jetzt geht es. Frag mich nicht warum. Ich verstehe es gerade nicht.

Aber wenn ich ein in 49 Jahren IT gelernt habe…. Wenn etwas geht, nicht hinterfragen