NEWS
Hilfestellung Raspi4: Zigbee2Mqtt, InfluxDB, Grafana
-
@thomas-braun bringt er mir das:
pi@raspberrypi:~ $ sudo apt update apt policy influxdb2-cli Hit:1 http://deb.debian.org/debian trixie InRelease Hit:2 http://deb.debian.org/debian trixie-updates InRelease Hit:3 http://deb.debian.org/debian-security trixie-security InRelease Hit:4 http://archive.raspberrypi.com/debian trixie InRelease Get:5 https://repos.influxdata.com/debian stable InRelease [6,913 B] Hit:6 https://apt.grafana.com stable InRelease Hit:7 https://deb.nodesource.com/node_24.x nodistro InRelease Get:8 https://repos.influxdata.com/debian stable/main arm64 Packages [23.9 kB] Get:9 https://repos.influxdata.com/debian stable/main armhf Packages [9,701 B] Fetched 40.5 kB in 0s (107 kB/s) 1 package can be upgraded. Run 'apt list --upgradable' to see it. Warning: https://deb.nodesource.com/node_24.x/dists/nodistro/InRelease: Policy will reject signature w ithin a year, see --audit for details influxdb2-cli: Installed: (none) Candidate: 2.7.5-3 Version table: 2.7.5-3 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.5-2 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.5-1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.3-1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.1-2 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.6.1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.6.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.5.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.4.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.3.0 500 lines 1-23...skipping... influxdb2-cli: Installed: (none) Candidate: 2.7.5-3 Version table: 2.7.5-3 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.5-2 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.5-1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.3-1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.1-2 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.6.1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.6.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.5.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.4.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.3.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packagesund dann folgendes:
pi@raspberrypi:~ $ sudo apt install influxdb2-cli Installing: influxdb2-cli Installing dependencies: influxdata-archive-keyring Summary: Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 1 Download size: 11.0 MB Space needed: 24.7 MB / 20.9 GB available Continue? [Y/n] y Get:1 https://repos.influxdata.com/debian stable/main arm64 influxdata-archive-keyring all 2026.01.09 [10.7 kB] Get:2 https://repos.influxdata.com/debian stable/main arm64 influxdb2-cli arm64 2.7.5-3 [11.0 MB] Fetched 11.0 MB in 5s (2,364 kB/s) Selecting previously unselected package influxdata-archive-keyring. (Reading database ... 115719 files and directories currently installed.) Preparing to unpack .../influxdata-archive-keyring_2026.01.09_all.deb ... Unpacking influxdata-archive-keyring (2026.01.09) ... Selecting previously unselected package influxdb2-cli. Preparing to unpack .../influxdb2-cli_2.7.5-3_arm64.deb ... Unpacking influxdb2-cli (2.7.5-3) ... dpkg: error processing archive /var/cache/apt/archives/influxdb2-cli_2.7.5-3_arm64.deb (--unpack): trying to overwrite '/usr/bin/influx', which is also in package influxdb-client (1.6.7~rc0-2+b12) dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/influxdb2-cli_2.7.5-3_arm64.deb Error: Sub-process /usr/bin/dpkg returned an error code (1) pi@raspberrypi:~ $@marcelinho sagte in Hilfestellung Raspi4: Zigbee2Mqtt, InfluxDB, Grafana:
influxdb-client
sudo apt remove influxdb-client -
@thomas-braun ok danke müsste funktioniert haben, muss ich noch was machen oder einfach mal ein backitup machen lassen:
pi@raspberrypi:~ $ sudo apt remove influxdb-client The following package was automatically installed and is no longer required: influxdata-archive-keyring Use 'sudo apt autoremove' to remove it. REMOVING: influxdb-client Summary: Upgrading: 0, Installing: 0, Removing: 1, Not Upgrading: 1 1 not fully installed or removed. Freed space: 6,926 kB Continue? [Y/n] y (Reading database ... 115734 files and directories currently installed.) Removing influxdb-client (1.6.7~rc0-2+b12) ... Setting up influxdata-archive-keyring (2026.01.09) ... Processing triggers for man-db (2.13.1-1) ... pi@raspberrypi:~ $ sudo apt update apt policy influxdb2-cli Hit:1 http://deb.debian.org/debian trixie InRelease Hit:2 http://deb.debian.org/debian trixie-updates InRelease Hit:3 http://deb.debian.org/debian-security trixie-security InRelease Hit:4 http://archive.raspberrypi.com/debian trixie InRelease Hit:5 https://apt.grafana.com stable InRelease Hit:6 https://repos.influxdata.com/debian stable InRelease Hit:7 https://deb.nodesource.com/node_24.x nodistro InRelease 1 package can be upgraded. Run 'apt list --upgradable' to see it. Warning: https://deb.nodesource.com/node_24.x/dists/nodistro/InRelease: Policy will reject signature within a year, see --audit for details influxdb2-cli: Installed: (none) Candidate: 2.7.5-3 Version table: 2.7.5-3 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.5-2 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.5-1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.3-1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.1-2 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.6.1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.6.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.5.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.4.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.3.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages pi@raspberrypi:~ $ sudo apt install influxdb2-cli Installing: influxdb2-cli Summary: Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 1 Download size: 0 B / 11.0 MB Space needed: 24.7 MB / 20.9 GB available (Reading database ... 115727 files and directories currently installed.) Preparing to unpack .../influxdb2-cli_2.7.5-3_arm64.deb ... Unpacking influxdb2-cli (2.7.5-3) ... Setting up influxdb2-cli (2.7.5-3) ... pi@raspberrypi:~ $ -
@thomas-braun ok danke müsste funktioniert haben, muss ich noch was machen oder einfach mal ein backitup machen lassen:
pi@raspberrypi:~ $ sudo apt remove influxdb-client The following package was automatically installed and is no longer required: influxdata-archive-keyring Use 'sudo apt autoremove' to remove it. REMOVING: influxdb-client Summary: Upgrading: 0, Installing: 0, Removing: 1, Not Upgrading: 1 1 not fully installed or removed. Freed space: 6,926 kB Continue? [Y/n] y (Reading database ... 115734 files and directories currently installed.) Removing influxdb-client (1.6.7~rc0-2+b12) ... Setting up influxdata-archive-keyring (2026.01.09) ... Processing triggers for man-db (2.13.1-1) ... pi@raspberrypi:~ $ sudo apt update apt policy influxdb2-cli Hit:1 http://deb.debian.org/debian trixie InRelease Hit:2 http://deb.debian.org/debian trixie-updates InRelease Hit:3 http://deb.debian.org/debian-security trixie-security InRelease Hit:4 http://archive.raspberrypi.com/debian trixie InRelease Hit:5 https://apt.grafana.com stable InRelease Hit:6 https://repos.influxdata.com/debian stable InRelease Hit:7 https://deb.nodesource.com/node_24.x nodistro InRelease 1 package can be upgraded. Run 'apt list --upgradable' to see it. Warning: https://deb.nodesource.com/node_24.x/dists/nodistro/InRelease: Policy will reject signature within a year, see --audit for details influxdb2-cli: Installed: (none) Candidate: 2.7.5-3 Version table: 2.7.5-3 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.5-2 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.5-1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.3-1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.7.1-2 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.6.1 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.6.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.5.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.4.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages 2.3.0 500 500 https://repos.influxdata.com/debian stable/main arm64 Packages pi@raspberrypi:~ $ sudo apt install influxdb2-cli Installing: influxdb2-cli Summary: Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 1 Download size: 0 B / 11.0 MB Space needed: 24.7 MB / 20.9 GB available (Reading database ... 115727 files and directories currently installed.) Preparing to unpack .../influxdb2-cli_2.7.5-3_arm64.deb ... Unpacking influxdb2-cli (2.7.5-3) ... Setting up influxdb2-cli (2.7.5-3) ... pi@raspberrypi:~ $ -
@thomas-braun danke perfekt, bei backitup meckert er wie folgt:
13:17:13.829INFOguiBackup gestartet ... 13:17:19.819DEBUGiobrokerhost.raspberrypi 6140 objects saved 13:17:20.506DEBUGiobrokerhost.raspberrypi 4775 states saved 13:17:20.514DEBUGiobrokerhost.raspberrypi Validating backup ... 13:17:20.572DEBUGiobrokerhost.raspberrypi "config.json" is valid 13:17:20.580DEBUGiobrokerhost.raspberrypi "objects.jsonl" exists host.raspberrypi "states.jsonl" exists 13:17:21.307DEBUGiobrokerhost.raspberrypi JSONL lines are valid 13:17:21.322DEBUGiobrokerhost.raspberrypi The backup is valid! 13:17:22.375DEBUGiobrokerBackup created: /opt/iobroker/backups/iobroker_2026_01_10-13_17_13_backupiobroker.tar.gz This backup can only be restored with js-controller version 7.0 or higher 13:17:23.436DEBUGiobrokerdone 13:17:23.594DEBUGinfluxDBInfluxDB-Backup started ... 13:17:23.646DEBUGinfluxDBStart InfluxDB Backup ... 13:17:23.647DEBUGinfluxDBInfluxDB Backup tmp directory created 13:17:23.986DEBUGinfluxDBTry deleting the InfluxDB tmp directory: "/opt/iobroker/backups/influxDB_2026_01_10-13_17_23_backupiobroker" 13:17:23.990DEBUGinfluxDBInfluxDB tmp directory "/opt/iobroker/backups/influxDB_2026_01_10-13_17_23_backupiobroker" successfully deleted [DEBUG] [influxDB] - 13:17:24.072ERRORinfluxDBError: Command failed: influx backup --bucket admin --host http://localhost:8086 -t glsa_WGijBfr5pXcOhQGUa6854B3rQDxteA1a_ce61e1c9 "/opt/iobroker/backups/influxDB_2026_01_10-13_17_23_backupiobroker" 2026/01/10 13:17:23 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: unauthorized access 13:17:24.074DEBUGinfluxDBInfluxDB-Backup for is finish 13:17:24.076DEBUGinfluxDBdone 13:17:25.026DEBUGzigbee2mqttCreated zigbee2mqtt directory 13:17:25.037DEBUGzigbee2mqttcompress from Zigbee2MQTT started ... 13:17:25.059DEBUGzigbee2mqttZigbee2MQTT tmp copy finish 13:17:25.108DEBUGzigbee2mqttBackup created: /opt/iobroker/backups/zigbee2mqtt_2026_01_10-13_17_24_backupiobroker.tar.gz 13:17:25.111DEBUGzigbee2mqttTry deleting the old zigbee2mqtt tmp directory: "/opt/iobroker/backups/zigbee2mqtt_tmp" 13:17:25.155DEBUGzigbee2mqttzigbee2mqtt tmp directory "/opt/iobroker/backups/zigbee2mqtt_tmp" successfully deleted 13:17:25.209DEBUGzigbee2mqttdone 13:17:25.227DEBUGgrafanaStart Grafana Backup ... 13:17:25.231DEBUGgrafanaCreated grafana_tmp directory: "/opt/iobroker/backups/grafana_tmp" 13:17:25.238DEBUGgrafanaCreated dashboard directory 13:17:25.242DEBUGgrafanaCreated folder directory 13:17:25.243DEBUGgrafanaCreated dashboards_manually_restore directory 13:17:25.283DEBUGgrafanaCreated datasource directory 13:17:25.286DEBUGgrafanastart Grafana request ... 13:17:25.347DEBUGgrafanaGrafana is available ... Status: 200 13:17:25.638DEBUGgrafanafound Dashboard: home-mathis 13:17:25.951DEBUGgrafanaSaved dashboard-folder mapping 13:17:26.014DEBUGgrafanaSave Folder "Shared with me" 13:17:26.325DEBUGgrafanastart Grafana backup compress ... 13:17:31.339DEBUGgrafanaBackup created: /opt/iobroker/backups/grafana_2026_01_10-13_17_26_backupiobroker.tar.gz 13:17:31.344DEBUGgrafanaTry deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp" 13:17:31.355DEBUGgrafanaGrafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted 13:17:31.388DEBUGgrafanadone 13:17:31.839DEBUGjavascriptsCreated javascript_tmp directory: "/opt/iobroker/backups/tmpScripts" 13:17:31.919DEBUGjavascriptsfound Script: Daikin_PV_Überschuss 13:17:32.026DEBUGjavascriptsfound Script: Flur_Türsensor_+_Bewegungsmelder 13:17:32.176DEBUGjavascriptsfound Script: Gaszähler 13:17:32.326DEBUGjavascriptsfound Script: Hausspeicher_Laden_Entladen 13:17:32.476DEBUGjavascriptsfound Script: Hausspeicher_gerechnet 13:17:32.626DEBUGjavascriptsfound Script: Hausspeicher_gespart 13:17:32.776DEBUGjavascriptsfound Script: Hausverbrauch_aktuell 13:17:32.925DEBUGjavascriptsfound Script: Heizung_Badezimmer_Keller 13:17:33.077DEBUGjavascriptsfound Script: Heizung_Kinderzimmer 13:17:33.226DEBUGjavascriptsfound Script: Heizung_Wohnzimmer 13:17:33.377DEBUGjavascriptsfound Script: Kosten_Strom_Tag 13:17:33.525DEBUGjavascriptsfound Script: LEDPanel 13:17:33.676DEBUGjavascriptsfound Script: Licht_Keller_Kontakt 13:17:33.827DEBUGjavascriptsfound Script: Licht_Schlafzimmer 13:17:33.977DEBUGjavascriptsfound Script: Licht_Speisekammer 13:17:34.128DEBUGjavascriptsfound Script: Licht_Umkleide 13:17:34.278DEBUGjavascriptsfound Script: Netzeinspeisung 13:17:34.427DEBUGjavascriptsfound Script: PV_Leistung 13:17:34.577DEBUGjavascriptsfound Script: PV_Tagesertrag 13:17:34.728DEBUGjavascriptsfound Script: Rolladen_Auf 13:17:34.878DEBUGjavascriptsfound Script: Rolladen_Sonnenaufgang 13:17:35.028DEBUGjavascriptsfound Script: Rolladen_Sonnenuntergang 13:17:35.178DEBUGjavascriptsfound Script: Rolladen_Zu 13:17:35.329DEBUGjavascriptsfound Script: Trinkbrunnen 13:17:35.479DEBUGjavascriptsfound Script: Wasserzähler 13:17:35.629DEBUGjavascriptsfound Script: Weihnachtsbaum 13:17:35.779DEBUGjavascriptsfound Script: Wochentage&Wochenende 13:17:35.945DEBUGjavascriptsTry deleting the Javascript tmp directory: "/opt/iobroker/backups/tmpScripts" 13:17:35.988DEBUGjavascriptsJavascript tmp directory "/opt/iobroker/backups/tmpScripts" successfully deleted 13:17:35.993DEBUGjavascriptsBackup created: /opt/iobroker/backups/javascripts_2026_01_10-13_17_31_backupiobroker.tar.gz 13:17:35.995DEBUGjavascriptsdone 13:17:37.455ERRORcleanBackup files not deleted from /opt/iobroker/backups because some errors. 13:17:37.495DEBUGcleandone 13:17:37.608DEBUGhistoryHTMLnew history html values created 13:17:37.701DEBUGhistoryHTMLdone 13:17:37.875DEBUGhistoryJSONnew history json values created 13:17:37.880DEBUGhistoryJSONdone 13:17:40.376DEBUGnotificationAdmin notification will be sent 13:17:40.417DEBUGnotificationdone 13:17:40.533INFOguiDas Backup wurde erfolgreich erstellt! -
@thomas-braun danke perfekt, bei backitup meckert er wie folgt:
13:17:13.829INFOguiBackup gestartet ... 13:17:19.819DEBUGiobrokerhost.raspberrypi 6140 objects saved 13:17:20.506DEBUGiobrokerhost.raspberrypi 4775 states saved 13:17:20.514DEBUGiobrokerhost.raspberrypi Validating backup ... 13:17:20.572DEBUGiobrokerhost.raspberrypi "config.json" is valid 13:17:20.580DEBUGiobrokerhost.raspberrypi "objects.jsonl" exists host.raspberrypi "states.jsonl" exists 13:17:21.307DEBUGiobrokerhost.raspberrypi JSONL lines are valid 13:17:21.322DEBUGiobrokerhost.raspberrypi The backup is valid! 13:17:22.375DEBUGiobrokerBackup created: /opt/iobroker/backups/iobroker_2026_01_10-13_17_13_backupiobroker.tar.gz This backup can only be restored with js-controller version 7.0 or higher 13:17:23.436DEBUGiobrokerdone 13:17:23.594DEBUGinfluxDBInfluxDB-Backup started ... 13:17:23.646DEBUGinfluxDBStart InfluxDB Backup ... 13:17:23.647DEBUGinfluxDBInfluxDB Backup tmp directory created 13:17:23.986DEBUGinfluxDBTry deleting the InfluxDB tmp directory: "/opt/iobroker/backups/influxDB_2026_01_10-13_17_23_backupiobroker" 13:17:23.990DEBUGinfluxDBInfluxDB tmp directory "/opt/iobroker/backups/influxDB_2026_01_10-13_17_23_backupiobroker" successfully deleted [DEBUG] [influxDB] - 13:17:24.072ERRORinfluxDBError: Command failed: influx backup --bucket admin --host http://localhost:8086 -t glsa_WGijBfr5pXcOhQGUa6854B3rQDxteA1a_ce61e1c9 "/opt/iobroker/backups/influxDB_2026_01_10-13_17_23_backupiobroker" 2026/01/10 13:17:23 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: unauthorized access 13:17:24.074DEBUGinfluxDBInfluxDB-Backup for is finish 13:17:24.076DEBUGinfluxDBdone 13:17:25.026DEBUGzigbee2mqttCreated zigbee2mqtt directory 13:17:25.037DEBUGzigbee2mqttcompress from Zigbee2MQTT started ... 13:17:25.059DEBUGzigbee2mqttZigbee2MQTT tmp copy finish 13:17:25.108DEBUGzigbee2mqttBackup created: /opt/iobroker/backups/zigbee2mqtt_2026_01_10-13_17_24_backupiobroker.tar.gz 13:17:25.111DEBUGzigbee2mqttTry deleting the old zigbee2mqtt tmp directory: "/opt/iobroker/backups/zigbee2mqtt_tmp" 13:17:25.155DEBUGzigbee2mqttzigbee2mqtt tmp directory "/opt/iobroker/backups/zigbee2mqtt_tmp" successfully deleted 13:17:25.209DEBUGzigbee2mqttdone 13:17:25.227DEBUGgrafanaStart Grafana Backup ... 13:17:25.231DEBUGgrafanaCreated grafana_tmp directory: "/opt/iobroker/backups/grafana_tmp" 13:17:25.238DEBUGgrafanaCreated dashboard directory 13:17:25.242DEBUGgrafanaCreated folder directory 13:17:25.243DEBUGgrafanaCreated dashboards_manually_restore directory 13:17:25.283DEBUGgrafanaCreated datasource directory 13:17:25.286DEBUGgrafanastart Grafana request ... 13:17:25.347DEBUGgrafanaGrafana is available ... Status: 200 13:17:25.638DEBUGgrafanafound Dashboard: home-mathis 13:17:25.951DEBUGgrafanaSaved dashboard-folder mapping 13:17:26.014DEBUGgrafanaSave Folder "Shared with me" 13:17:26.325DEBUGgrafanastart Grafana backup compress ... 13:17:31.339DEBUGgrafanaBackup created: /opt/iobroker/backups/grafana_2026_01_10-13_17_26_backupiobroker.tar.gz 13:17:31.344DEBUGgrafanaTry deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp" 13:17:31.355DEBUGgrafanaGrafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted 13:17:31.388DEBUGgrafanadone 13:17:31.839DEBUGjavascriptsCreated javascript_tmp directory: "/opt/iobroker/backups/tmpScripts" 13:17:31.919DEBUGjavascriptsfound Script: Daikin_PV_Überschuss 13:17:32.026DEBUGjavascriptsfound Script: Flur_Türsensor_+_Bewegungsmelder 13:17:32.176DEBUGjavascriptsfound Script: Gaszähler 13:17:32.326DEBUGjavascriptsfound Script: Hausspeicher_Laden_Entladen 13:17:32.476DEBUGjavascriptsfound Script: Hausspeicher_gerechnet 13:17:32.626DEBUGjavascriptsfound Script: Hausspeicher_gespart 13:17:32.776DEBUGjavascriptsfound Script: Hausverbrauch_aktuell 13:17:32.925DEBUGjavascriptsfound Script: Heizung_Badezimmer_Keller 13:17:33.077DEBUGjavascriptsfound Script: Heizung_Kinderzimmer 13:17:33.226DEBUGjavascriptsfound Script: Heizung_Wohnzimmer 13:17:33.377DEBUGjavascriptsfound Script: Kosten_Strom_Tag 13:17:33.525DEBUGjavascriptsfound Script: LEDPanel 13:17:33.676DEBUGjavascriptsfound Script: Licht_Keller_Kontakt 13:17:33.827DEBUGjavascriptsfound Script: Licht_Schlafzimmer 13:17:33.977DEBUGjavascriptsfound Script: Licht_Speisekammer 13:17:34.128DEBUGjavascriptsfound Script: Licht_Umkleide 13:17:34.278DEBUGjavascriptsfound Script: Netzeinspeisung 13:17:34.427DEBUGjavascriptsfound Script: PV_Leistung 13:17:34.577DEBUGjavascriptsfound Script: PV_Tagesertrag 13:17:34.728DEBUGjavascriptsfound Script: Rolladen_Auf 13:17:34.878DEBUGjavascriptsfound Script: Rolladen_Sonnenaufgang 13:17:35.028DEBUGjavascriptsfound Script: Rolladen_Sonnenuntergang 13:17:35.178DEBUGjavascriptsfound Script: Rolladen_Zu 13:17:35.329DEBUGjavascriptsfound Script: Trinkbrunnen 13:17:35.479DEBUGjavascriptsfound Script: Wasserzähler 13:17:35.629DEBUGjavascriptsfound Script: Weihnachtsbaum 13:17:35.779DEBUGjavascriptsfound Script: Wochentage&Wochenende 13:17:35.945DEBUGjavascriptsTry deleting the Javascript tmp directory: "/opt/iobroker/backups/tmpScripts" 13:17:35.988DEBUGjavascriptsJavascript tmp directory "/opt/iobroker/backups/tmpScripts" successfully deleted 13:17:35.993DEBUGjavascriptsBackup created: /opt/iobroker/backups/javascripts_2026_01_10-13_17_31_backupiobroker.tar.gz 13:17:35.995DEBUGjavascriptsdone 13:17:37.455ERRORcleanBackup files not deleted from /opt/iobroker/backups because some errors. 13:17:37.495DEBUGcleandone 13:17:37.608DEBUGhistoryHTMLnew history html values created 13:17:37.701DEBUGhistoryHTMLdone 13:17:37.875DEBUGhistoryJSONnew history json values created 13:17:37.880DEBUGhistoryJSONdone 13:17:40.376DEBUGnotificationAdmin notification will be sent 13:17:40.417DEBUGnotificationdone 13:17:40.533INFOguiDas Backup wurde erfolgreich erstellt!@marcelinho sagte in Hilfestellung Raspi4: Zigbee2Mqtt, InfluxDB, Grafana:
401 Unauthorized: unauthorized access
Falsches Token? Bei influx selber bin ich dann aber raus.
-
weiß jemand wieso mein Backitup bei Influxdb nicht geht, habe die Token neu erstellt mit allen rechten aber irgendwie läuft es nicht:
19:56:58.888DEBUGinfluxDBInfluxDB-Backup started ... 19:56:58.892DEBUGinfluxDBStart InfluxDB Backup ... 19:56:58.901DEBUGinfluxDBInfluxDB Backup tmp directory created [DEBUG] [influxDB] - 19:56:59.372ERRORinfluxDBError: Command failed: influx backup --bucket admin --host http://localhost:8086 -t tX9aUgElHh8iiEJKoYay0Zhsxjr1OTuAnSaiR73lfwUAXzYlD3MlJeu_g6_WbjAnLKMFsAPylqSJ2f7Ke4BfZg== "/opt/iobroker/backups/influxDB_2026_01_10-19_56_58_backupiobroker" 2026/01/10 19:56:59 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized 19:56:59.382DEBUGinfluxDBInfluxDB-Backup for is finish 19:56:59.385DEBUGinfluxDBdoneDie Tokens stimmen, die Adapter sind grün. Wüsste nicht wo es hakt. Kann es mit Debian 13 zu tun haben bei Influx 2.x ? auf meiner anderen Micro SD mit Debian 12 geht es mit den Einstellungen.
-
weiß jemand wieso mein Backitup bei Influxdb nicht geht, habe die Token neu erstellt mit allen rechten aber irgendwie läuft es nicht:
19:56:58.888DEBUGinfluxDBInfluxDB-Backup started ... 19:56:58.892DEBUGinfluxDBStart InfluxDB Backup ... 19:56:58.901DEBUGinfluxDBInfluxDB Backup tmp directory created [DEBUG] [influxDB] - 19:56:59.372ERRORinfluxDBError: Command failed: influx backup --bucket admin --host http://localhost:8086 -t tX9aUgElHh8iiEJKoYay0Zhsxjr1OTuAnSaiR73lfwUAXzYlD3MlJeu_g6_WbjAnLKMFsAPylqSJ2f7Ke4BfZg== "/opt/iobroker/backups/influxDB_2026_01_10-19_56_58_backupiobroker" 2026/01/10 19:56:59 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized 19:56:59.382DEBUGinfluxDBInfluxDB-Backup for is finish 19:56:59.385DEBUGinfluxDBdoneDie Tokens stimmen, die Adapter sind grün. Wüsste nicht wo es hakt. Kann es mit Debian 13 zu tun haben bei Influx 2.x ? auf meiner anderen Micro SD mit Debian 12 geht es mit den Einstellungen.
@marcelinho sagte in Hilfestellung Raspi4: Zigbee2Mqtt, InfluxDB, Grafana:
Die Tokens stimmen, die Adapter sind grün
das heisst gar nix!
für backitup brauchst du das admin token -
weiß jemand wieso mein Backitup bei Influxdb nicht geht, habe die Token neu erstellt mit allen rechten aber irgendwie läuft es nicht:
19:56:58.888DEBUGinfluxDBInfluxDB-Backup started ... 19:56:58.892DEBUGinfluxDBStart InfluxDB Backup ... 19:56:58.901DEBUGinfluxDBInfluxDB Backup tmp directory created [DEBUG] [influxDB] - 19:56:59.372ERRORinfluxDBError: Command failed: influx backup --bucket admin --host http://localhost:8086 -t tX9aUgElHh8iiEJKoYay0Zhsxjr1OTuAnSaiR73lfwUAXzYlD3MlJeu_g6_WbjAnLKMFsAPylqSJ2f7Ke4BfZg== "/opt/iobroker/backups/influxDB_2026_01_10-19_56_58_backupiobroker" 2026/01/10 19:56:59 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized 19:56:59.382DEBUGinfluxDBInfluxDB-Backup for is finish 19:56:59.385DEBUGinfluxDBdoneDie Tokens stimmen, die Adapter sind grün. Wüsste nicht wo es hakt. Kann es mit Debian 13 zu tun haben bei Influx 2.x ? auf meiner anderen Micro SD mit Debian 12 geht es mit den Einstellungen.
@marcelinho sagte in Hilfestellung Raspi4: Zigbee2Mqtt, InfluxDB, Grafana:
Kann es mit Debian 13 zu tun haben bei Influx 2.x ?
Nein.
-
weiß jemand wieso mein Backitup bei Influxdb nicht geht, habe die Token neu erstellt mit allen rechten aber irgendwie läuft es nicht:
19:56:58.888DEBUGinfluxDBInfluxDB-Backup started ... 19:56:58.892DEBUGinfluxDBStart InfluxDB Backup ... 19:56:58.901DEBUGinfluxDBInfluxDB Backup tmp directory created [DEBUG] [influxDB] - 19:56:59.372ERRORinfluxDBError: Command failed: influx backup --bucket admin --host http://localhost:8086 -t tX9aUgElHh8iiEJKoYay0Zhsxjr1OTuAnSaiR73lfwUAXzYlD3MlJeu_g6_WbjAnLKMFsAPylqSJ2f7Ke4BfZg== "/opt/iobroker/backups/influxDB_2026_01_10-19_56_58_backupiobroker" 2026/01/10 19:56:59 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized 19:56:59.382DEBUGinfluxDBInfluxDB-Backup for is finish 19:56:59.385DEBUGinfluxDBdoneDie Tokens stimmen, die Adapter sind grün. Wüsste nicht wo es hakt. Kann es mit Debian 13 zu tun haben bei Influx 2.x ? auf meiner anderen Micro SD mit Debian 12 geht es mit den Einstellungen.
@marcelinho sagte in Hilfestellung Raspi4: Zigbee2Mqtt, InfluxDB, Grafana:
habe die Token neu erstellt
https://docs.influxdata.com/influxdb/v2/admin/backup-restore/backup/
The root authorization token (the token created for the first user in the InfluxDB setup process).
https://docs.influxdata.com/influxdb/v2/admin/tokens/ -
versteht jemand warum ich mich beim Backup im Kreis drehe? Bei der InfluxDB Adapter ist grün Daten kommen in Grafana an. Token läuft. Aber wenn ich ein All Access API Token erstelle kommt immer der Fehler:
"401 Unauthorized"pi@raspberrypi:~ $ rm influxdb2-client-2.7.5-linux-amd64.tar.gz pi@raspberrypi:~ $ rm -rf ~/.influxdbv2 pi@raspberrypi:~ $ rm -f ~/influxdb2-client-*.tar.gz rm -rf ~/.influxdbv2 sudo rm -f /usr/bin/influx sudo rm -f /usr/local/bin/influx pi@raspberrypi:~ $ curl -sL https://repos.influxdata.com/influxdata-archive.key | sudo gpg --dearmor -o /usr/share/keyrings/influxdata-archive.gpg echo "deb [signed-by=/usr/share/keyrings/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main" | sudo tee /etc/apt/sources.list.d/influxdata.list sudo apt update File '/usr/share/keyrings/influxdata-archive.gpg' exists. Overwrite? (y/N) y deb [signed-by=/usr/share/keyrings/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main Hit:1 http://deb.debian.org/debian trixie InRelease Hit:2 http://deb.debian.org/debian trixie-updates InRelease Hit:3 http://deb.debian.org/debian-security trixie-security InRelease Hit:4 http://archive.raspberrypi.com/debian trixie InRelease Hit:5 https://repos.influxdata.com/debian stable InRelease Hit:6 https://apt.grafana.com stable InRelease Hit:7 https://deb.nodesource.com/node_24.x nodistro InRelease All packages are up to date. Warning: https://deb.nodesource.com/node_24.x/dists/nodistro/InRelease: Policy will reject signature within a year, see --audit for details pi@raspberrypi:~ $ sudo apt install influxdb2-cli -y Installing: influxdb2-cli Summary: Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 0 Download size: 0 B / 11.0 MB Space needed: 24.7 MB / 20.9 GB available Selecting previously unselected package influxdb2-cli. (Reading database ... 115732 files and directories currently installed.) Preparing to unpack .../influxdb2-cli_2.7.5-3_arm64.deb ... Unpacking influxdb2-cli (2.7.5-3) ... Setting up influxdb2-cli (2.7.5-3) ... pi@raspberrypi:~ $ influx version Influx CLI dev (git: a79a2a1b825867421d320428538f76a4c90aa34c) build_date: 2024-04-16T14:34:26Z pi@raspberrypi:~ $ export INFLUX_TOKEN=xjIUdQBiweNaUi4jNnq7t0QiCRMYahTp1k8O91CNfOHobTWtFNfjI6R3gaeA8msuoxeeouI_eIGu6g7KmRfxew== pi@raspberrypi:~ $ influx org list ID Name 9fc10391e54f07c7 admin pi@raspberrypi:~ $ mkdir -p /home/pi/influx-backup-test influx backup --org admin /home/pi/influx-backup-test 2026/01/13 15:06:54 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized pi@raspberrypi:~ $ rm -rf /home/pi/influx-backup-test pi@raspberrypi:~ $ -
versteht jemand warum ich mich beim Backup im Kreis drehe? Bei der InfluxDB Adapter ist grün Daten kommen in Grafana an. Token läuft. Aber wenn ich ein All Access API Token erstelle kommt immer der Fehler:
"401 Unauthorized"pi@raspberrypi:~ $ rm influxdb2-client-2.7.5-linux-amd64.tar.gz pi@raspberrypi:~ $ rm -rf ~/.influxdbv2 pi@raspberrypi:~ $ rm -f ~/influxdb2-client-*.tar.gz rm -rf ~/.influxdbv2 sudo rm -f /usr/bin/influx sudo rm -f /usr/local/bin/influx pi@raspberrypi:~ $ curl -sL https://repos.influxdata.com/influxdata-archive.key | sudo gpg --dearmor -o /usr/share/keyrings/influxdata-archive.gpg echo "deb [signed-by=/usr/share/keyrings/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main" | sudo tee /etc/apt/sources.list.d/influxdata.list sudo apt update File '/usr/share/keyrings/influxdata-archive.gpg' exists. Overwrite? (y/N) y deb [signed-by=/usr/share/keyrings/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main Hit:1 http://deb.debian.org/debian trixie InRelease Hit:2 http://deb.debian.org/debian trixie-updates InRelease Hit:3 http://deb.debian.org/debian-security trixie-security InRelease Hit:4 http://archive.raspberrypi.com/debian trixie InRelease Hit:5 https://repos.influxdata.com/debian stable InRelease Hit:6 https://apt.grafana.com stable InRelease Hit:7 https://deb.nodesource.com/node_24.x nodistro InRelease All packages are up to date. Warning: https://deb.nodesource.com/node_24.x/dists/nodistro/InRelease: Policy will reject signature within a year, see --audit for details pi@raspberrypi:~ $ sudo apt install influxdb2-cli -y Installing: influxdb2-cli Summary: Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 0 Download size: 0 B / 11.0 MB Space needed: 24.7 MB / 20.9 GB available Selecting previously unselected package influxdb2-cli. (Reading database ... 115732 files and directories currently installed.) Preparing to unpack .../influxdb2-cli_2.7.5-3_arm64.deb ... Unpacking influxdb2-cli (2.7.5-3) ... Setting up influxdb2-cli (2.7.5-3) ... pi@raspberrypi:~ $ influx version Influx CLI dev (git: a79a2a1b825867421d320428538f76a4c90aa34c) build_date: 2024-04-16T14:34:26Z pi@raspberrypi:~ $ export INFLUX_TOKEN=xjIUdQBiweNaUi4jNnq7t0QiCRMYahTp1k8O91CNfOHobTWtFNfjI6R3gaeA8msuoxeeouI_eIGu6g7KmRfxew== pi@raspberrypi:~ $ influx org list ID Name 9fc10391e54f07c7 admin pi@raspberrypi:~ $ mkdir -p /home/pi/influx-backup-test influx backup --org admin /home/pi/influx-backup-test 2026/01/13 15:06:54 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized pi@raspberrypi:~ $ rm -rf /home/pi/influx-backup-test pi@raspberrypi:~ $@marcelinho sagte in Hilfestellung Raspi4: Zigbee2Mqtt, InfluxDB, Grafana:
All Access API Token
Falscher Token-Typ. Schau bitte in die Doku zum Backitup Adapter
-
@marc-berg danke vielmals, hat geklappt.
Jetzt habe ich alles konfiguriert :) Nur noch eine "Fehlermeldung" ist die zu vernachlässigen?pi@raspberrypi:~ $ sudo apt update Hit:1 http://deb.debian.org/debian trixie InRelease Hit:2 http://deb.debian.org/debian trixie-updates InRelease Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB] Hit:4 http://archive.raspberrypi.com/debian trixie InRelease Hit:5 https://repos.influxdata.com/debian stable InRelease Hit:6 https://apt.grafana.com stable InRelease Hit:7 https://deb.nodesource.com/node_24.x nodistro InRelease Fetched 43.4 kB in 0s (88.8 kB/s) All packages are up to date. Warning: https://deb.nodesource.com/node_24.x/dists/nodistro/InRelease: Policy will reject signature within a year, see --audit for details pi@raspberrypi:~ $ -
@marc-berg danke vielmals, hat geklappt.
Jetzt habe ich alles konfiguriert :) Nur noch eine "Fehlermeldung" ist die zu vernachlässigen?pi@raspberrypi:~ $ sudo apt update Hit:1 http://deb.debian.org/debian trixie InRelease Hit:2 http://deb.debian.org/debian trixie-updates InRelease Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB] Hit:4 http://archive.raspberrypi.com/debian trixie InRelease Hit:5 https://repos.influxdata.com/debian stable InRelease Hit:6 https://apt.grafana.com stable InRelease Hit:7 https://deb.nodesource.com/node_24.x nodistro InRelease Fetched 43.4 kB in 0s (88.8 kB/s) All packages are up to date. Warning: https://deb.nodesource.com/node_24.x/dists/nodistro/InRelease: Policy will reject signature within a year, see --audit for details pi@raspberrypi:~ $Ja, für den Moment vernachlässigen.
In nächster Zeit müssten aber die Schlüssel für das nodesource Repo aktualisiert werden.
Die sind aber noch nicht verfügbar. -
@crunchip ich weis nicht genau was du meinst. Ich hatte Mosquitto wohl nur für Testzwecke installiert (damals nur Benutzer und Passwort aufgeschrieben) mqtt Adapter ist auf Server mit 0.0.0.0:1885 eingestellt gewesen. Der Z2M war auf Websocket. Da ich mir meine alte Karte Debian 12 wohl mit Trixie upgrade zerschossen hab und nicht mehr per SSH drauf komme kann ich leider nicht mehr schauen welcher Port Mosquitto war. Die alte Karte geht noch, aber per SSH leider nicht mehr. Ich würde ungern alle meine Geräte neu einbinden müssen. Obwohl ich denke das ich seit 1 Woche schon versuche Yaml, mqtt und z2m anzupassen es schon längst erledigt wäre. Ich versteh glaube ich das ganze Konstrukt nicht wirklich. Wer mit wem kommuniziert und wer was genau braucht. Wenn ich es schaffe die Adapter grün zu bekommen dann bekomme ich nicht die Geräte rein durch das Backup. Irgendwie dreh ich mich leider im Kreis...
na was heisst den wer mit wem kommuniziert..
z2m braucht ein mqtt .punkt.,. obs der mosquitto oder der iobroker mqtt server.. oder den startet das z2m nicht
der Adapter z2m hingegen braucht z2m um zu starten. diesen kann st du per WS = websocket oder so dass dieser auf den externen mqtt server horcht einstellenODER
du macht per mit diesem adapter einen mqtt server auf.. das gaht auch.. dann musst du z2m auf diesenauch konfigurieren