Influxdb3 + Grafana Werte Daten

Moderatoren: seppy, udo1toni

Antworten
gexle
Beiträge: 108
Registriert: 16. Dez 2021 11:02
Answers: 0

Influxdb3 + Grafana Werte Daten

Beitrag von gexle »

Hallo vielleicht kann mir jemand helfen bitte!

Jetzt habe ich mit Influx DB keinen Zugriff mehr auf meinen RPI nach einem Update...Bekomme diese Meldung bei Grafana und Influx DB.

Code: Alles auswählen

pi@NoderedTESTRPI:~ $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.5
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
pi@NoderedTESTRPI:~ $
Jetzt habe ich mit Influx DB keinen Zugriff mehr auf meinen RPI...Bekomme diese Meldung bei Grafana und Influx DB.

Code: Alles auswählen

{"__enc__":true,"type":"error","data":{"name":"HttpError","message":"unauthorized access","code":"unauthorized","stack":"HttpError: unauthorized access\n    at IncomingMessage.<anonymous> (/home/pi/.node-red/node_modules/@influxdata/influxdb-client/src/impl/node/NodeHttpTransport.ts:354:11)\n    at IncomingMessage.emit (node:events:531:35)\n    at endReadableNT (node:internal/streams/readable:1698:12)\n    at processTicksAndRejections (node:internal/process/task_queues:89:21)"}}
Kann mir jemand helfen bitte

gexle
Beiträge: 108
Registriert: 16. Dez 2021 11:02
Answers: 0

Re: Influxdb3 + Grafana Werte Daten

Beitrag von gexle »

Code: Alles auswählen

pi@NoderedTESTRPI:~ $ sudo journalctl -u influxdb -n 50 --no-pager
Jun 30 18:44:22 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:44:22.124122Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:44:27 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:44:27.109521Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:44:32 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:44:32.127163Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:44:37 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:44:37.107779Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:44:42 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:44:42.083755Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:44:47 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:44:47.138578Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:44:52 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:44:52.127981Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:44:53 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:44:53.312469Z lvl=info msg="Retention policy deletion check (start)" log_id=13nFgXYl000 service=retention op_name=retention_delete_check op_event=start
Jun 30 18:44:53 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:44:53.312564Z lvl=info msg="Pruning shard groups after retention check (start)" log_id=13nFgXYl000 service=retention op_name=retention_delete_check op_name=retention_prune_shard_groups op_event=start
Jun 30 18:44:53 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:44:53.312587Z lvl=info msg="Pruning shard groups after retention check (end)" log_id=13nFgXYl000 service=retention op_name=retention_delete_check op_name=retention_prune_shard_groups op_event=end op_elapsed=0.018ms
Jun 30 18:44:53 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:44:53.312602Z lvl=info msg="Retention policy deletion check (end)" log_id=13nFgXYl000 service=retention op_name=retention_delete_check op_event=end op_elapsed=0.148ms
Jun 30 18:44:57 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:44:57.129835Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:45:02 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:45:02.118092Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:45:07 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:45:07.123395Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:45:12 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:45:12.173675Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:45:17 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:45:17.127552Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:45:22 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:45:22.117790Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:45:27 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:45:27.107676Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:45:32 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:45:32.097088Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:45:37 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:45:37.086879Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:45:42 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:45:42.131793Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:45:47 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:45:47.134916Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:45:52 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:45:52.125126Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:45:57 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:45:57.115416Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:46:02 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:46:02.106470Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"
Jun 30 18:46:07 NoderedTESTRPI influxd-systemd-start.sh[1500]: ts=2026-06-30T16:46:07.106996Z lvl=info msg=Unauthorized log_id=13nFgXYl000 error="authorization not found"

gexle
Beiträge: 108
Registriert: 16. Dez 2021 11:02
Answers: 0

Re: Influxdb3 + Grafana Werte Daten

Beitrag von gexle »

Laut KI soll es ein token Problem sein aber mehr als bei Influx den einzutragen und bei Nodered kann ich nicht finden!

Oder muss das ganze bei Rpi auch noh irgendwo rein?

Benutzeravatar
udo1toni
Beiträge: 15716
Registriert: 11. Apr 2018 18:05
Answers: 256
Wohnort: Darmstadt

Re: Influxdb3 + Grafana Werte Daten

Beitrag von udo1toni »

openHAB kann nur Influx v1 oder Influx v2 nutzen, Influx v3 ist bisher nicht implementiert.

Die Frage ist also, hast Du InfluxDB1.x oder InfluxDB2.x installiert?

Gewöhnlich wird ein Token nur bei InfluxDB2.x verwendet. Das Token erzeugst Du über die InfluxDB UI (läuft gewöhnlich auf Port 8086) unter Load Data -> API Token. Dort erzeugst Du ein Token für openHAB (mit Schreib-/Lesezufriff auf den Bucket für openHAB) und ein weiteres Token für Grafana (nur Lesen auf den openHAB Bucket).
Die Token werden nur beim Erzeugen angezeigt. Der Knopf zum Übernehmen in die Zwischenablage funktioniert nicht (zumindest bei mir unter Firefox, evtl. funktioniert es aber mit anderen Browsern), Markieren und Über Kontextmenü kopieren klappt aber zuverlässig.
Das Token für openHAB fügst Du in der influx-persistence-Konfiguration ein, das Token für Grafana entsprechend in Grafana.
In beiden Fällen reicht das Token (und die IP-Adresse samt Port) für den Zugriff, das Token enthält alle notwendigen Informationen.
openHAB5.1.3 stable in einem Debian-Container (trixie, OpenJDK 21 headless runtime - LXC, 4 Kerne, 3 GByte RAM)
Hostsystem Proxmox VE 9.2.3 - AMD Ryzen 5 3600 6 Kerne, 12 Threads - 64 GByte RAM - ZFS Pools: Raid Z1, 3 x 20 TB HDD -> 40 TByte und Raid Z0-Mirrored 4 x 1 TByte NVMe -> 2 TByte

Antworten