NEWS
[gelöst] backitup /bin/sh: 1: influx: not found
-
@alero sagte in backitup /bin/sh: 1: influx: not found:
habe iobroker noch mal zurückgesetzt (Snapshot)
Warum denn das??
-
so,
der Fehler ist natürlich immer noch da. kein repository.
dann kommt jetzt das:wget -q https://repos.influxdata.com/influxdata-archive_compat.key echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/null echo 'deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list
richtig? kopiert ausd deinem link phantastische Repositories
P.S. Homeverzeichnis mit sudo mkhomedir_helper juergen angelegt
-
bekomme schon eine FM beim eingeben der folgenden Spalte
echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/null
FM:
juergen@iobroker-prod-12:/home$ echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/null sha256sum: influxdata-archive_compat.key: No such file or directory influxdata-archive_compat.key: FAILED open or read sha256sum: WARNING: 1 listed file could not be read
-
FM beseitigt:
echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/null
-
Nächster Befehl auch abgesetzt und ANtwort:
juergen@iobroker-prod-12:/home$ echo 'deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main
-
@alero sagte in backitup /bin/sh: 1: influx: not found:
P.S. Homeverzeichnis mit sudo mkhomedir_helper juergen angelegt
Aber falsch. Du steht in /home , solltest aber in ~ bzw. /home/juergen stehen.
Und wo ist die VOLLSTÄNDIGE Ein- wie Ausgabe?
Mach es nochmal, vollständig...
wget -q https://repos.influxdata.com/influxdata-archive_compat.key echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/null echo 'deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list rm influxdata-archive_compat.key
-
so habs noch einmal gemacht.
juergen@iobroker-prod-12:/$ cd home/ juergen@iobroker-prod-12:/home$ ls influxdata-archive_compat.key iobroker juergen juergen@iobroker-prod-12:/home$ cd juergen juergen@iobroker-prod-12:~$ wget -q https://repos.influxdata.com/influxdata-archive_compat.key juergen@iobroker-prod-12:~$ echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/null influxdata-archive_compat.key: OK juergen@iobroker-prod-12:~$ echo 'deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main juergen@iobroker-prod-12:~$ rm influxdata-archive_compat.key juergen@iobroker-prod-12:~$
-
jetzt sieht mein apt policy influx* so aus:
juergen@iobroker-prod-12:~$ apt policy influx* influxdb2-cli: Installed: (none) Candidate: 2.7.3-1 Version table: 2.7.3-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.7.1-2 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.6.1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.6.0 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.5.0 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.4.0 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.3.0 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages influxdb-client: Installed: (none) Candidate: 1.6.7~rc0-1+b13 Version table: 1.6.7~rc0-1+b13 500 500 http://deb.debian.org/debian bookworm/main amd64 Packages influxdb-dev: Installed: (none) Candidate: (none) Version table: influxdb2-client: Installed: (none) Candidate: 2.7.1-1 Version table: 2.7.1-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages influxdb: Installed: (none) Candidate: 1.8.10-1 Version table: 1.8.10-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 1.6.7~rc0-1+b13 500 500 http://deb.debian.org/debian bookworm/main amd64 Packages influxctl: Installed: (none) Candidate: 2.0.4 Version table: 2.0.4 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.0.3 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.0.2 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.0.1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.0.0 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages influxdb2: Installed: (none) Candidate: 2.7.1-1 Version table: 2.7.1-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.7.0-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.6.1-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.6.0-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.5.1-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.4.0-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.3.0-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.2.0 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages juergen@iobroker-prod-12:~$
-
@alero sagte in backitup /bin/sh: 1: influx: not found:
influxdb2-client
Den willst du haben.
sudo apt install influxdb2-client
-
@thomas-braun
den habe ich jetzt auch installiert.juergen@iobroker-prod-12:~$ sudo apt install influxdb2-client Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: ntpsec-ntpdate ntpsec-ntpdig Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: influxdb2-client 0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded. Need to get 11.3 MB of archives. After this operation, 25.0 MB of additional disk space will be used. Get:1 https://repos.influxdata.com/debian stable/main amd64 influxdb2-client amd64 2.7.1-1 [11.3 MB] Fetched 11.3 MB in 1s (11.2 MB/s) Selecting previously unselected package influxdb2-client. (Reading database ... 37821 files and directories currently installed.)
beim Backitup bekomme ich aber noch eine FM:
[DEBUG] [influxDB] - InfluxDB-Backup started ... [DEBUG] [influxDB] - Start InfluxDB Backup ... [DEBUG] [influxDB] - InfluxDB Backup tmp directory created [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory: "/opt/iobroker/backups/influxDB_2023_10_05-10_54_33_backupiobroker" [DEBUG] [influxDB] - InfluxDB tmp directory "/opt/iobroker/backups/influxDB_2023_10_05-10_54_33_backupiobroker" successfully deleted [DEBUG] [influxDB] - [ERROR] [influxDB] - Error: Command failed: influx backup --bucket iobroker --host http://192.168.42.69:8086 -t CiOIz_JIz-0T_u2EkcBIkHEUTV5jbpm5WgaWhLmVbFEuk0ac3i5PwYW-ogS7eLA8I9V97Ft9H1hnDs_5== "/opt/iobroker/backups/influxDB_2023_10_05-10_54_33_backupiobroker" 2023/10/05 10:54:33 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized
-
@alero sagte in backitup /bin/sh: 1: influx: not found:
401 Unauthorized
Da fehlen die Rechte auf die db zuzugreifen. Kann ich dir aber nix zu sagen, hab kein influxdb2 im Einsatz.
Aber schmeiß die "and 6 not upgraded" Pakete auf das System. Da dürfte ein wichtiges Update der libc dabei sein.
-
@thomas-braun
wie bekomme ich die 6 fehlenden Pakete heraus die ich installieren muss? -
-
@thomas-braun
hi, danke
hab den Befehl gerade gegoogelt.sudo sudo apt list --upgradable Listing... Done libc-bin/stable-security 2.36-9+deb12u3 amd64 [upgradable from: 2.36-9+deb12u1] libc-dev-bin/stable-security 2.36-9+deb12u3 amd64 [upgradable from: 2.36-9+deb12u1] libc-l10n/stable-security 2.36-9+deb12u3 all [upgradable from: 2.36-9+deb12u1] libc6-dev/stable-security 2.36-9+deb12u3 amd64 [upgradable from: 2.36-9+deb12u1] libc6/stable-security 2.36-9+deb12u3 amd64 [upgradable from: 2.36-9+deb12u1] locales/stable-security 2.36-9+deb12u3 all [upgradable from: 2.36-9+deb12u1] juergen@iobroker-prod-12:~$ sudo apt install influxdb2-client
werde ich nach installieren.
-
@alero sagte in backitup /bin/sh: 1: influx: not found:
werde ich nach installieren.
Dringend. Wie erwartet die libc.
-
@thomas-braun
so den Fehler auch beseitigt.
mit dem Befehl :influx auth list --user admin
auf dem influxdb server zeigt er mir die ganzen Token an. ich brauchte das erswte welches beim Erstellen des influxdb sevrers erstellt wurde. mit dem Token hat die Sicherung dann geklappt.
Muss ich die repositories auch für Grafana auf dem iobroker installieren? (dein Link https://forum.iobroker.net/topic/59231/phantastische-repositories-und-wo-sie-zu-finden-sind)
-
@alero sagte in backitup /bin/sh: 1: influx: not found:
Muss ich die repositories auch für Grafana auf dem iobroker installieren?
Auf dem Host, wo grafana laufen soll. Da gibt es keine client-Version, falls du das meinen solltest.
-
@thomas-braun
auch hier habe ich zur Zeit einen eigenen Grafanaserver.
In Zukunft soll es einen "Integra server" geben der Influxdb, telegraf und grafana beinhaltet.
Daher will ich jetzt meine Sicherungen machen damit ich sie dann auf das neue System restoren kann.
Der neue Server mit debian 12 ist soweit schon fertig.Also muss ich auf iobroker jetzt auch die repositories für grafana installieren
-
@alero Installiere mal die cli ... Client macht öfter Probleme
sudo apt install influxdb2-cli
-
@thomas-braun
hi,
nochmals vielen Dank für deine Hilfe. ich hoffe das ich irgendwann auch mal helfen kann.