NEWS
Backup Zugriffsproblem influxDB2.5
-
@gib64
Das Backup geht nur mit dem am Anfang Original erstellten Admin Token.
Falls der nicht mehr vorhanden ist kann man den über die shell aufrufen.Also:
Nur der tatsächlich nur der initial erstellte access token zum Backup erstellen funktioniert.
Also ganz WICHTIG: DIESEN NICHT LÖSCHEN. Ich wusste den Token nicht, deshalb hab ich ihn gelöscht und einfach einen neuen generiert, aber das hat nicht funktioniert.
Falls jemand auch nicht weiß wie er an den initialen token kommt. Einfach einen 2ten all access token erstellen und mit diesem bekannten in der shell folgendes aufrufen:
Code:
influx auth list -t <neu erstellert token>Das sollte das "401 Unauthorized: unauthorized access" Problem lösen.
Damit komme ich aber nun ein stück weiter aber zu einem neuen Problem:
[ERROR] [influxDB] - Error: Command failed: influx backup --bucket iobroker -token "/opt/iobroker/backups/influxDB_2023_01_11-18_11_50_backupiobroker"
@solardach sagte in Backup Zugriffsproblem influxDB2.5:
[ERROR] [influxDB] - Error: Command failed: influx backup --bucket iobroker -token "/opt/iobroker/backups/influxDB_2023_01_11-18_11_50_backupiobroker"
Schaue mal, wo die influx-cli im Dateisystem liegt und trage den Pfad direkt in der Config von Backitup ein
which influx -
Hallo, leider funktioniert mein Influxdb2(7) Backup nicht mehr. Bin aber mit dem beschrieben Punkten zu keiner Lösung gekommen.
backitup.0 Zeit debug Nachricht backitup.0 2023-04-09 08:00:28.312 error [iobroker] Error: Command failed: "/usr/bin/influx" backup --bucket iobroker -t 866nCegDJG1u4sfO6TvfiIit-aQOZ1Wq1ukvR5SIl9ldn5stgoK33pGF3bQq_aNKc0TMbc9Pe3EQ-ZbAwzvCug== "/opt/iobroker/backups/influxDB_2023_04_09-08_00_28_backupiobroker" 2023/04/09 08:00:28 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized backitup.0 2023-04-09 08:00:28.312 error [iobroker/influxDB] Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized backitup.0 2023-04-09 08:00:28.312 error [iobroker/influxDB] 2023/04/09 08:00:28 INFO: Downloading metadata snapshot backitup.0 2023-04-09 08:00:28.312 error [iobroker/influxDB] Error: Command failed: "/usr/bin/influx" backup --bucket iobroker -t 866nCegDJG1u4sfO6TvfiIit-aQOZ1Wq1ukvR5SIl9ldn5stgoK33pGF3bQq_aNKc0TMbc9Pe3EQ-ZbAwzvCug== "/opt/iobroker/backups/influxDB_2023_04_09-08_00_28_backupiobroker" backitup.0 2023-04-09 08:00:28.310 debug [iobroker/influxDB] InfluxDB tmp directory "/opt/iobroker/backups/influxDB_2023_04_09-08_00_28_backupiobroker" successfully deleted backitup.0 2023-04-09 08:00:28.309 debug [iobroker/influxDB] Try deleting the InfluxDB tmp directory: "/opt/iobroker/backups/influxDB_2023_04_09-08_00_28_backupiobroker" backitup.0 2023-04-09 08:00:28.292 debug [iobroker/influxDB] InfluxDB Backup tmp directory created backitup.0 2023-04-09 08:00:28.291 debug [iobroker/influxDB] Start InfluxDB Backup ... backitup.0 2023-04-09 08:00:28.290 debug [iobroker/influxDB] InfluxDB-Backup started ... backitup.0 2023-04-09 08:00:28.140 debug [iobroker/iobroker] done backitup.0 2023-04-09 08:00:27.082 debug [iobroker/iobroker] Backup created: /opt/iobroker/backups/iobroker_2023_04_09-08_00_21_backupiobroker.tar.gz backitup.0 2023-04-09 08:00:23.895 debug [iobroker/iobroker] host.iobroker 26002 objects saved backitup.0 2023-04-09 08:00:23.541 debug [iobroker/iobroker] host.iobroker 20366 states saved backitup.0 2023-04-09 08:00:21.018 debug [iobroker/mount] done backitup.0 2023-04-09 08:00:21.017 debug [iobroker/mount] mount successfully completed backitup.0 2023-04-09 08:00:20.968 debug [iobroker/mount] nfs-mount command: "sudo mount Hometank:/volume1/Backup/iobroker /opt/iobroker/backups" backitup.0 2023-04-09 08:00:11.037 debug [iobroker/mount] umount successfully completed backitup.0 2023-04-09 08:00:10.971 debug [iobroker/mount] mount activ... umount is started before mount!! backitup.0 2023-04-09 08:00:10.967 debug Backup has started ... backitup.0 2023-04-09 08:00:10.957 debug The local storage check was completed successfully. On the host "iobroker" are currently 47416 MB free space available! backitup.0 2023-04-09 08:00:08.571 debug The local storage check was completed successfully. On the host "iobroker" are currently 47416 MB free space available! -
Hallo, leider funktioniert mein Influxdb2(7) Backup nicht mehr. Bin aber mit dem beschrieben Punkten zu keiner Lösung gekommen.
backitup.0 Zeit debug Nachricht backitup.0 2023-04-09 08:00:28.312 error [iobroker] Error: Command failed: "/usr/bin/influx" backup --bucket iobroker -t 866nCegDJG1u4sfO6TvfiIit-aQOZ1Wq1ukvR5SIl9ldn5stgoK33pGF3bQq_aNKc0TMbc9Pe3EQ-ZbAwzvCug== "/opt/iobroker/backups/influxDB_2023_04_09-08_00_28_backupiobroker" 2023/04/09 08:00:28 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized backitup.0 2023-04-09 08:00:28.312 error [iobroker/influxDB] Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized backitup.0 2023-04-09 08:00:28.312 error [iobroker/influxDB] 2023/04/09 08:00:28 INFO: Downloading metadata snapshot backitup.0 2023-04-09 08:00:28.312 error [iobroker/influxDB] Error: Command failed: "/usr/bin/influx" backup --bucket iobroker -t 866nCegDJG1u4sfO6TvfiIit-aQOZ1Wq1ukvR5SIl9ldn5stgoK33pGF3bQq_aNKc0TMbc9Pe3EQ-ZbAwzvCug== "/opt/iobroker/backups/influxDB_2023_04_09-08_00_28_backupiobroker" backitup.0 2023-04-09 08:00:28.310 debug [iobroker/influxDB] InfluxDB tmp directory "/opt/iobroker/backups/influxDB_2023_04_09-08_00_28_backupiobroker" successfully deleted backitup.0 2023-04-09 08:00:28.309 debug [iobroker/influxDB] Try deleting the InfluxDB tmp directory: "/opt/iobroker/backups/influxDB_2023_04_09-08_00_28_backupiobroker" backitup.0 2023-04-09 08:00:28.292 debug [iobroker/influxDB] InfluxDB Backup tmp directory created backitup.0 2023-04-09 08:00:28.291 debug [iobroker/influxDB] Start InfluxDB Backup ... backitup.0 2023-04-09 08:00:28.290 debug [iobroker/influxDB] InfluxDB-Backup started ... backitup.0 2023-04-09 08:00:28.140 debug [iobroker/iobroker] done backitup.0 2023-04-09 08:00:27.082 debug [iobroker/iobroker] Backup created: /opt/iobroker/backups/iobroker_2023_04_09-08_00_21_backupiobroker.tar.gz backitup.0 2023-04-09 08:00:23.895 debug [iobroker/iobroker] host.iobroker 26002 objects saved backitup.0 2023-04-09 08:00:23.541 debug [iobroker/iobroker] host.iobroker 20366 states saved backitup.0 2023-04-09 08:00:21.018 debug [iobroker/mount] done backitup.0 2023-04-09 08:00:21.017 debug [iobroker/mount] mount successfully completed backitup.0 2023-04-09 08:00:20.968 debug [iobroker/mount] nfs-mount command: "sudo mount Hometank:/volume1/Backup/iobroker /opt/iobroker/backups" backitup.0 2023-04-09 08:00:11.037 debug [iobroker/mount] umount successfully completed backitup.0 2023-04-09 08:00:10.971 debug [iobroker/mount] mount activ... umount is started before mount!! backitup.0 2023-04-09 08:00:10.967 debug Backup has started ... backitup.0 2023-04-09 08:00:10.957 debug The local storage check was completed successfully. On the host "iobroker" are currently 47416 MB free space available! backitup.0 2023-04-09 08:00:08.571 debug The local storage check was completed successfully. On the host "iobroker" are currently 47416 MB free space available!Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sun Apr 9 07:56:27 CEST 2023 on tty1 keksn@iobroker:~$ which influx /usr/bin/influx keksn@iobroker:~$ cd ~ apt policy influx* influxdb2-cli: Installed: 2.7.1-2 Candidate: 2.7.1-2 Version table: *** 2.7.1-2 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 100 /var/lib/dpkg/status 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+b5 Version table: 1.6.7~rc0-1+b5 500 500 http://ftp.debian.org/debian bullseye/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 100 /var/lib/dpkg/status 1.6.7~rc0-1+b5 500 500 http://ftp.debian.org/debian bullseye/main amd64 Packages influxdb2: Installed: 2.7.0-1 Candidate: 2.7.0-1 Version table: *** 2.7.0-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 100 /var/lib/dpkg/status 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 -
Hallo, leider funktioniert mein Influxdb2(7) Backup nicht mehr. Bin aber mit dem beschrieben Punkten zu keiner Lösung gekommen.
backitup.0 Zeit debug Nachricht backitup.0 2023-04-09 08:00:28.312 error [iobroker] Error: Command failed: "/usr/bin/influx" backup --bucket iobroker -t 866nCegDJG1u4sfO6TvfiIit-aQOZ1Wq1ukvR5SIl9ldn5stgoK33pGF3bQq_aNKc0TMbc9Pe3EQ-ZbAwzvCug== "/opt/iobroker/backups/influxDB_2023_04_09-08_00_28_backupiobroker" 2023/04/09 08:00:28 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized backitup.0 2023-04-09 08:00:28.312 error [iobroker/influxDB] Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized backitup.0 2023-04-09 08:00:28.312 error [iobroker/influxDB] 2023/04/09 08:00:28 INFO: Downloading metadata snapshot backitup.0 2023-04-09 08:00:28.312 error [iobroker/influxDB] Error: Command failed: "/usr/bin/influx" backup --bucket iobroker -t 866nCegDJG1u4sfO6TvfiIit-aQOZ1Wq1ukvR5SIl9ldn5stgoK33pGF3bQq_aNKc0TMbc9Pe3EQ-ZbAwzvCug== "/opt/iobroker/backups/influxDB_2023_04_09-08_00_28_backupiobroker" backitup.0 2023-04-09 08:00:28.310 debug [iobroker/influxDB] InfluxDB tmp directory "/opt/iobroker/backups/influxDB_2023_04_09-08_00_28_backupiobroker" successfully deleted backitup.0 2023-04-09 08:00:28.309 debug [iobroker/influxDB] Try deleting the InfluxDB tmp directory: "/opt/iobroker/backups/influxDB_2023_04_09-08_00_28_backupiobroker" backitup.0 2023-04-09 08:00:28.292 debug [iobroker/influxDB] InfluxDB Backup tmp directory created backitup.0 2023-04-09 08:00:28.291 debug [iobroker/influxDB] Start InfluxDB Backup ... backitup.0 2023-04-09 08:00:28.290 debug [iobroker/influxDB] InfluxDB-Backup started ... backitup.0 2023-04-09 08:00:28.140 debug [iobroker/iobroker] done backitup.0 2023-04-09 08:00:27.082 debug [iobroker/iobroker] Backup created: /opt/iobroker/backups/iobroker_2023_04_09-08_00_21_backupiobroker.tar.gz backitup.0 2023-04-09 08:00:23.895 debug [iobroker/iobroker] host.iobroker 26002 objects saved backitup.0 2023-04-09 08:00:23.541 debug [iobroker/iobroker] host.iobroker 20366 states saved backitup.0 2023-04-09 08:00:21.018 debug [iobroker/mount] done backitup.0 2023-04-09 08:00:21.017 debug [iobroker/mount] mount successfully completed backitup.0 2023-04-09 08:00:20.968 debug [iobroker/mount] nfs-mount command: "sudo mount Hometank:/volume1/Backup/iobroker /opt/iobroker/backups" backitup.0 2023-04-09 08:00:11.037 debug [iobroker/mount] umount successfully completed backitup.0 2023-04-09 08:00:10.971 debug [iobroker/mount] mount activ... umount is started before mount!! backitup.0 2023-04-09 08:00:10.967 debug Backup has started ... backitup.0 2023-04-09 08:00:10.957 debug The local storage check was completed successfully. On the host "iobroker" are currently 47416 MB free space available! backitup.0 2023-04-09 08:00:08.571 debug The local storage check was completed successfully. On the host "iobroker" are currently 47416 MB free space available!Steht doch im Log …
401 Unauthorized -
Steht doch im Log …
401 Unauthorized -
das habe ich alles schon mehrmals gemacht. Es hat ja auch schon funktioniert. Ich habe aber jetzt erst gesehen das das letzte Backup am 17.02 erstellt wurde.
-
@keksn
Dann musst du es nochmal nach dieser Anleitung machen.
Dein Token ist nicht für ein Backup gültig.Operator token steht bei mir da nirgends. Ich habe den obersten in der Liste genommen. jetzt kommt das
2023-04-09 11:17:45.061 error [iobroker] Error: Command failed: "/usr/bin/influx" backup --bucket iobroker -t MJ-dVc5yNCpLtCN22GP_mrXrbJQR3mZxhy9bAOMUnzFGL2xs5T3FwZJxFG2P_QNZvlNYzV6RVd3pvZkFJ7koow==" "/opt/iobroker/backups/influxDB_2023_04_09-11_17_45_backupiobroker" /bin/sh: 1: Syntax error: Unterminated quoted string backitup.0 2023-04-09 11:17:45.061 error [iobroker/influxDB] /bin/sh: 1: Syntax error: Unterminated quoted string backitup.0 2023-04-09 11:17:45.061 error [iobroker/influxDB] Error: Command failed: "/usr/bin/influx" backup --bucket iobroker -t MJ-dVc5yNCpLtCN22GP_mrXrbJQR3mZxhy9bAOMUnzFGL2xs5T3FwZJxFG2P_QNZvlNYzV6RVd3pvZkFJ7koow==" "/opt/iobroker/backups/influxDB_2023_04_09-11_17_45_backupiobroker" -
@keksn
Dann musst du es nochmal nach dieser Anleitung machen.
Dein Token ist nicht für ein Backup gültig.wenn ich in der Konsole eingebe
influx backup --bucket iobroker --host http://192.168.1.166:8086 -t jDzlHe-luNvFjk_8XXDUoDfyLMt9MSQuVflszTB53x2g-JQkOAmP7B1JGpjW__7sZaXeBRACUyKs95uP-K7QWQ== "/tmp/influx-test"kommt das
keksn@iobroker:~$ influx backup --bucket iobroker --host http://192.168.1.166:8086 -t jDzlHe-luNvFjk_8XXDUoDfyLMt9MSQuVflszTB53x2g-JQkOAmP7B1JGpjW__7sZaXeBRACUyKs95uP-K7QWQ== "/tmp/influx-test" 2023/04/09 11:22:39 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized keksn@iobroker:~$ -
@keksn
Dann musst du es nochmal nach dieser Anleitung machen.
Dein Token ist nicht für ein Backup gültig.das ist der Token lt Abfrage
keksn@iobroker:~$ influx auth list -t jDzlHe-luNvFjk_8XXDUoDfyLMt9MSQuVflszTB53x2g-JQkOAmP7B1JGpjW__7sZaXeBRACUyKs95uP-K7QWQ== --json [ { "id": "0b046c7cd2da7000", "description": "admin", "token": "MJ-dVc5yNCpLtCN22GP_mrXrbJQR3mZxhy9bAOMUnzFGL2xs5T3FwZJxFG2P_QNZvlNYzV6RVd3pvZkFJ7koow==", "status": "active", "userName": "admin", "userID": "0b03f56869ede000", "permissions": [ "read:orgs/0f2be3356ee1ee0a/annotations", "write:orgs/0f2be3356ee1ee0a/annotations", "read:orgs/0f2be3356ee1ee0a/authorizations", "write:orgs/0f2be3356ee1ee0a/authorizations", "read:orgs/0f2be3356ee1ee0a/buckets", "write:orgs/0f2be3356ee1ee0a/buckets", "read:orgs/0f2be3356ee1ee0a/checks", "write:orgs/0f2be3356ee1ee0a/checks", "read:orgs/0f2be3356ee1ee0a/dashboards", "write:orgs/0f2be3356ee1ee0a/dashboards", "read:orgs/0f2be3356ee1ee0a/dbrp", "write:orgs/0f2be3356ee1ee0a/dbrp", "read:orgs/0f2be3356ee1ee0a/documents", "write:orgs/0f2be3356ee1ee0a/documents", "read:orgs/0f2be3356ee1ee0a/labels", "write:orgs/0f2be3356ee1ee0a/labels", "read:orgs/0f2be3356ee1ee0a/notebooks", "write:orgs/0f2be3356ee1ee0a/notebooks", "read:orgs/0f2be3356ee1ee0a/notificationEndpoints", "write:orgs/0f2be3356ee1ee0a/notificationEndpoints", "read:orgs/0f2be3356ee1ee0a/notificationRules", "write:orgs/0f2be3356ee1ee0a/notificationRules", "read:/orgs/0f2be3356ee1ee0a", "read:orgs/0f2be3356ee1ee0a/remotes", "write:orgs/0f2be3356ee1ee0a/remotes", "read:orgs/0f2be3356ee1ee0a/replications", "write:orgs/0f2be3356ee1ee0a/replications", "read:orgs/0f2be3356ee1ee0a/scrapers", "write:orgs/0f2be3356ee1ee0a/scrapers", "read:orgs/0f2be3356ee1ee0a/secrets", "write:orgs/0f2be3356ee1ee0a/secrets", "read:orgs/0f2be3356ee1ee0a/sources", "write:orgs/0f2be3356ee1ee0a/sources", "read:orgs/0f2be3356ee1ee0a/tasks", "write:orgs/0f2be3356ee1ee0a/tasks", "read:orgs/0f2be3356ee1ee0a/telegrafs", "write:orgs/0f2be3356ee1ee0a/telegrafs", "read:/users/0b03f56869ede000", "write:/users/0b03f56869ede000", "read:orgs/0f2be3356ee1ee0a/variables", "write:orgs/0f2be3356ee1ee0a/variables", "read:orgs/0f2be3356ee1ee0a/views", "write:orgs/0f2be3356ee1ee0a/views" ] -
das ist der Token lt Abfrage
keksn@iobroker:~$ influx auth list -t jDzlHe-luNvFjk_8XXDUoDfyLMt9MSQuVflszTB53x2g-JQkOAmP7B1JGpjW__7sZaXeBRACUyKs95uP-K7QWQ== --json [ { "id": "0b046c7cd2da7000", "description": "admin", "token": "MJ-dVc5yNCpLtCN22GP_mrXrbJQR3mZxhy9bAOMUnzFGL2xs5T3FwZJxFG2P_QNZvlNYzV6RVd3pvZkFJ7koow==", "status": "active", "userName": "admin", "userID": "0b03f56869ede000", "permissions": [ "read:orgs/0f2be3356ee1ee0a/annotations", "write:orgs/0f2be3356ee1ee0a/annotations", "read:orgs/0f2be3356ee1ee0a/authorizations", "write:orgs/0f2be3356ee1ee0a/authorizations", "read:orgs/0f2be3356ee1ee0a/buckets", "write:orgs/0f2be3356ee1ee0a/buckets", "read:orgs/0f2be3356ee1ee0a/checks", "write:orgs/0f2be3356ee1ee0a/checks", "read:orgs/0f2be3356ee1ee0a/dashboards", "write:orgs/0f2be3356ee1ee0a/dashboards", "read:orgs/0f2be3356ee1ee0a/dbrp", "write:orgs/0f2be3356ee1ee0a/dbrp", "read:orgs/0f2be3356ee1ee0a/documents", "write:orgs/0f2be3356ee1ee0a/documents", "read:orgs/0f2be3356ee1ee0a/labels", "write:orgs/0f2be3356ee1ee0a/labels", "read:orgs/0f2be3356ee1ee0a/notebooks", "write:orgs/0f2be3356ee1ee0a/notebooks", "read:orgs/0f2be3356ee1ee0a/notificationEndpoints", "write:orgs/0f2be3356ee1ee0a/notificationEndpoints", "read:orgs/0f2be3356ee1ee0a/notificationRules", "write:orgs/0f2be3356ee1ee0a/notificationRules", "read:/orgs/0f2be3356ee1ee0a", "read:orgs/0f2be3356ee1ee0a/remotes", "write:orgs/0f2be3356ee1ee0a/remotes", "read:orgs/0f2be3356ee1ee0a/replications", "write:orgs/0f2be3356ee1ee0a/replications", "read:orgs/0f2be3356ee1ee0a/scrapers", "write:orgs/0f2be3356ee1ee0a/scrapers", "read:orgs/0f2be3356ee1ee0a/secrets", "write:orgs/0f2be3356ee1ee0a/secrets", "read:orgs/0f2be3356ee1ee0a/sources", "write:orgs/0f2be3356ee1ee0a/sources", "read:orgs/0f2be3356ee1ee0a/tasks", "write:orgs/0f2be3356ee1ee0a/tasks", "read:orgs/0f2be3356ee1ee0a/telegrafs", "write:orgs/0f2be3356ee1ee0a/telegrafs", "read:/users/0b03f56869ede000", "write:/users/0b03f56869ede000", "read:orgs/0f2be3356ee1ee0a/variables", "write:orgs/0f2be3356ee1ee0a/variables", "read:orgs/0f2be3356ee1ee0a/views", "write:orgs/0f2be3356ee1ee0a/views" ] -
Das ist aber ein anderer Token in deinen Einstellungen von Backitup.
Des Weiteren hast du in den Einstellungen von Backitup ein Anführungszeichen am Ende des Token drin, was sicher durch copy & paste dort reinkam.@simatec sorry nochmal mit dem ersten toke ohne """
ackitup.0 2023-04-09 11:40:58.513 error [iobroker] Error: Command failed: "/usr/bin/influx" backup --bucket iobroker -t MJ-dVc5yNCpLtCN22GP_mrXrbJQR3mZxhy9bAOMUnzFGL2xs5T3FwZJxFG2P_QNZvlNYzV6RVd3pvZkFJ7koow== "/opt/iobroker/backups/influxDB_2023_04_09-11_40_58_backupiobroker" 2023/04/09 11:40:58 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized backitup.0 2023-04-09 11:40:58.513 error [iobroker/influxDB] Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized backitup.0 2023-04-09 11:40:58.513 error [iobroker/influxDB] 2023/04/09 11:40:58 INFO: Downloading metadata snapshot backitup.0 2023-04-09 11:40:58.512 error [iobroker/influxDB] Error: Command failed: "/usr/bin/influx" backup --bucket iobroker -t MJ-dVc5yNCpLtCN22GP_mrXrbJQR3mZxhy9bAOMUnzFGL2xs5T3FwZJxFG2P_QNZvlNYzV6RVd3pvZkFJ7koow== "/opt/iobroker/backups/influxDB_2023_04_09-11_40_58_backupiobroker""id": "0b046c7cd2da7000", "description": "admin", "token": "MJ-dVc5yNCpLtCN22GP_mrXrbJQR3mZxhy9bAOMUnzFGL2xs5T3FwZJxFG2P_QNZvlNYzV6RVd3pvZkFJ7koow==", "status": "active", "userName": "admin", "userID": "0b03f56869ede000", "permissions": [ "read:orgs/0f2be3356ee1ee0a/annotations", "write:orgs/0f2be3356ee1ee0a/annotations", "read:orgs/0f2be3356ee1ee0a/authorizations", "write:orgs/0f2be3356ee1ee0a/authorizations", "read:orgs/0f2be3356ee1ee0a/buckets", "write:orgs/0f2be3356ee1ee0a/buckets", "read:orgs/0f2be3356ee1ee0a/checks", "write:orgs/0f2be3356ee1ee0a/checks", "read:orgs/0f2be3356ee1ee0a/dashboards", "write:orgs/0f2be3356ee1ee0a/dashboards", "read:orgs/0f2be3356ee1ee0a/dbrp", "write:orgs/0f2be3356ee1ee0a/dbrp", "read:orgs/0f2be3356ee1ee0a/documents", "write:orgs/0f2be3356ee1ee0a/documents", "read:orgs/0f2be3356ee1ee0a/labels", "write:orgs/0f2be3356ee1ee0a/labels", "read:orgs/0f2be3356ee1ee0a/notebooks", "write:orgs/0f2be3356ee1ee0a/notebooks", "read:orgs/0f2be3356ee1ee0a/notificationEndpoints", "write:orgs/0f2be3356ee1ee0a/notificationEndpoints", "read:orgs/0f2be3356ee1ee0a/notificationRules", "write:orgs/0f2be3356ee1ee0a/notificationRules", "read:/orgs/0f2be3356ee1ee0a", "read:orgs/0f2be3356ee1ee0a/remotes", "write:orgs/0f2be3356ee1ee0a/remotes", "read:orgs/0f2be3356ee1ee0a/replications", "write:orgs/0f2be3356ee1ee0a/replications", "read:orgs/0f2be3356ee1ee0a/scrapers", "write:orgs/0f2be3356ee1ee0a/scrapers", "read:orgs/0f2be3356ee1ee0a/secrets", "write:orgs/0f2be3356ee1ee0a/secrets", "read:orgs/0f2be3356ee1ee0a/sources", "write:orgs/0f2be3356ee1ee0a/sources", "read:orgs/0f2be3356ee1ee0a/tasks", "write:orgs/0f2be3356ee1ee0a/tasks", "read:orgs/0f2be3356ee1ee0a/telegrafs", "write:orgs/0f2be3356ee1ee0a/telegrafs", "read:/users/0b03f56869ede000", "write:/users/0b03f56869ede000", "read:orgs/0f2be3356ee1ee0a/variables", "write:orgs/0f2be3356ee1ee0a/variables", "read:orgs/0f2be3356ee1ee0a/views", "write:orgs/0f2be3356ee1ee0a/views" ] -
Das ist aber ein anderer Token in deinen Einstellungen von Backitup.
Des Weiteren hast du in den Einstellungen von Backitup ein Anführungszeichen am Ende des Token drin, was sicher durch copy & paste dort reinkam.keksn@iobroker:~$ influx backup --bucket iobroker --host http://192.168.1.166:8086 -t MJ-dVc5yNCpLtCN22GP_mrXrbJQR3mZxhy9bAOMUnzFGL2xs5T3FwZJxFG2P_QNZvlNYzV6RVd3pvZkFJ7koow== "/tmp/influx-test" 2023/04/09 11:46:50 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized -
keksn@iobroker:~$ influx backup --bucket iobroker --host http://192.168.1.166:8086 -t MJ-dVc5yNCpLtCN22GP_mrXrbJQR3mZxhy9bAOMUnzFGL2xs5T3FwZJxFG2P_QNZvlNYzV6RVd3pvZkFJ7koow== "/tmp/influx-test" 2023/04/09 11:46:50 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized -
@keksn Gehe die Anleitung nochmal Schritt für Schritt durch und erstelle einen neuen Operator Token
zum verzweifeln...
keksn@iobroker:~$ influx auth list -t LpT1OUMTk3MNKV9fCwE7gfFHzu5CPr6dQI2VtdJ-31aFgFszpYIiZwaTfioaZMbj5ddxFTZT3HKACx23QpMgVg== --json [ { "id": "0b055ae197aec000", "description": "iobroker_user_token", "token": "LpT1OUMTk3MNKV9fCwE7gfFHzu5CPr6dQI2VtdJ-31aFgFszpYIiZwaTfioaZMbj5ddxFTZT3HKACx23QpMgVg==", "status": "active", "userName": "admin", "userID": "0b03f56869ede000", "permissions": [ "read:orgs/0f2be3356ee1ee0a/annotations", "write:orgs/0f2be3356ee1ee0a/annotations", "read:orgs/0f2be3356ee1ee0a/authorizations", "write:orgs/0f2be3356ee1ee0a/authorizations", "read:orgs/0f2be3356ee1ee0a/buckets", "write:orgs/0f2be3356ee1ee0a/buckets", "read:orgs/0f2be3356ee1ee0a/checks", "write:orgs/0f2be3356ee1ee0a/checks", "read:orgs/0f2be3356ee1ee0a/dashboards", "write:orgs/0f2be3356ee1ee0a/dashboards", "read:orgs/0f2be3356ee1ee0a/dbrp", "write:orgs/0f2be3356ee1ee0a/dbrp", "read:orgs/0f2be3356ee1ee0a/documents", "write:orgs/0f2be3356ee1ee0a/documents", "read:orgs/0f2be3356ee1ee0a/labels", "write:orgs/0f2be3356ee1ee0a/labels", "read:orgs/0f2be3356ee1ee0a/notebooks", "write:orgs/0f2be3356ee1ee0a/notebooks", "read:orgs/0f2be3356ee1ee0a/notificationEndpoints", "write:orgs/0f2be3356ee1ee0a/notificationEndpoints", "read:orgs/0f2be3356ee1ee0a/notificationRules", "write:orgs/0f2be3356ee1ee0a/notificationRules", "read:/orgs/0f2be3356ee1ee0a", "read:orgs/0f2be3356ee1ee0a/remotes", "write:orgs/0f2be3356ee1ee0a/remotes", "read:orgs/0f2be3356ee1ee0a/replications", "write:orgs/0f2be3356ee1ee0a/replications", "read:orgs/0f2be3356ee1ee0a/scrapers", "write:orgs/0f2be3356ee1ee0a/scrapers", "read:orgs/0f2be3356ee1ee0a/secrets", "write:orgs/0f2be3356ee1ee0a/secrets", "read:orgs/0f2be3356ee1ee0a/sources", "write:orgs/0f2be3356ee1ee0a/sources", "read:orgs/0f2be3356ee1ee0a/tasks", "write:orgs/0f2be3356ee1ee0a/tasks", "read:orgs/0f2be3356ee1ee0a/telegrafs", "write:orgs/0f2be3356ee1ee0a/telegrafs", "read:/users/0b03f56869ede000", "write:/users/0b03f56869ede000", "read:orgs/0f2be3356ee1ee0a/variables", "write:orgs/0f2be3356ee1ee0a/variables", "read:orgs/0f2be3356ee1ee0a/views", "write:orgs/0f2be3356ee1ee0a/views" ] }tkeksn@iobroker:~$ influx backup --bucket iobroker --host http://192.168.1.166:8086 -t LpT1OUMTk3MNKV9fCwE7gfFHzu5CPr6dQI2VtdJ-31aFgFszpYIiZwaTfioaZMbj5ddxFTZT3HKACx23QpMgVg== "/tmp/influx-test" 2023/04/09 12:03:23 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized -
@keksn Gehe die Anleitung nochmal Schritt für Schritt durch und erstelle einen neuen Operator Token
-
zum verzweifeln...
keksn@iobroker:~$ influx auth list -t LpT1OUMTk3MNKV9fCwE7gfFHzu5CPr6dQI2VtdJ-31aFgFszpYIiZwaTfioaZMbj5ddxFTZT3HKACx23QpMgVg== --json [ { "id": "0b055ae197aec000", "description": "iobroker_user_token", "token": "LpT1OUMTk3MNKV9fCwE7gfFHzu5CPr6dQI2VtdJ-31aFgFszpYIiZwaTfioaZMbj5ddxFTZT3HKACx23QpMgVg==", "status": "active", "userName": "admin", "userID": "0b03f56869ede000", "permissions": [ "read:orgs/0f2be3356ee1ee0a/annotations", "write:orgs/0f2be3356ee1ee0a/annotations", "read:orgs/0f2be3356ee1ee0a/authorizations", "write:orgs/0f2be3356ee1ee0a/authorizations", "read:orgs/0f2be3356ee1ee0a/buckets", "write:orgs/0f2be3356ee1ee0a/buckets", "read:orgs/0f2be3356ee1ee0a/checks", "write:orgs/0f2be3356ee1ee0a/checks", "read:orgs/0f2be3356ee1ee0a/dashboards", "write:orgs/0f2be3356ee1ee0a/dashboards", "read:orgs/0f2be3356ee1ee0a/dbrp", "write:orgs/0f2be3356ee1ee0a/dbrp", "read:orgs/0f2be3356ee1ee0a/documents", "write:orgs/0f2be3356ee1ee0a/documents", "read:orgs/0f2be3356ee1ee0a/labels", "write:orgs/0f2be3356ee1ee0a/labels", "read:orgs/0f2be3356ee1ee0a/notebooks", "write:orgs/0f2be3356ee1ee0a/notebooks", "read:orgs/0f2be3356ee1ee0a/notificationEndpoints", "write:orgs/0f2be3356ee1ee0a/notificationEndpoints", "read:orgs/0f2be3356ee1ee0a/notificationRules", "write:orgs/0f2be3356ee1ee0a/notificationRules", "read:/orgs/0f2be3356ee1ee0a", "read:orgs/0f2be3356ee1ee0a/remotes", "write:orgs/0f2be3356ee1ee0a/remotes", "read:orgs/0f2be3356ee1ee0a/replications", "write:orgs/0f2be3356ee1ee0a/replications", "read:orgs/0f2be3356ee1ee0a/scrapers", "write:orgs/0f2be3356ee1ee0a/scrapers", "read:orgs/0f2be3356ee1ee0a/secrets", "write:orgs/0f2be3356ee1ee0a/secrets", "read:orgs/0f2be3356ee1ee0a/sources", "write:orgs/0f2be3356ee1ee0a/sources", "read:orgs/0f2be3356ee1ee0a/tasks", "write:orgs/0f2be3356ee1ee0a/tasks", "read:orgs/0f2be3356ee1ee0a/telegrafs", "write:orgs/0f2be3356ee1ee0a/telegrafs", "read:/users/0b03f56869ede000", "write:/users/0b03f56869ede000", "read:orgs/0f2be3356ee1ee0a/variables", "write:orgs/0f2be3356ee1ee0a/variables", "read:orgs/0f2be3356ee1ee0a/views", "write:orgs/0f2be3356ee1ee0a/views" ] }tkeksn@iobroker:~$ influx backup --bucket iobroker --host http://192.168.1.166:8086 -t LpT1OUMTk3MNKV9fCwE7gfFHzu5CPr6dQI2VtdJ-31aFgFszpYIiZwaTfioaZMbj5ddxFTZT3HKACx23QpMgVg== "/tmp/influx-test" 2023/04/09 12:03:23 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized@keksn sagte in Backup Zugriffsproblem influxDB2.5:
influx auth list [ { "id": "0b055ae197aec000", "description": "iobroker_user_token", "token": "LpT1OUMTk3MNKV9fCwE7gfFHzu5CPr6dQI2VtdJ-31aFgFszpYIiZwaTfioaZMbj5ddxFTZT3HKACx23QpMgVg==", "status": "active", "userName": "admin", "userID": "0b03f56869ede000", "permissions": [ "read:orgs/0f2be3356ee1ee0a/annotations", "write:orgs/0f2be3356ee1ee0a/annotations", "read:orgs/0f2be3356ee1ee0a/authorizations", "write:orgs/0f2be3356ee1ee0a/authorizations",Das ist kein Operator Token! Den erkennst Du daran, dass in den Permissions kein "orgs" drin steht. Ein Operator Token hat Rechte auf ALLE Organisationen.
So in etwa:
"permissions": [ "read:/annotations", "write:/annotations", "read:/authorizations", "write:/authorizations", "read:/buckets", "write:/buckets", "read:/checks", "write:/checks", "read:/dashboards", "write:/dashboards", "read:/dbrp", "write:/dbrp", -
@keksn Gehe die Anleitung nochmal Schritt für Schritt durch und erstelle einen neuen Operator Token
@simatec sagte in Backup Zugriffsproblem influxDB2.5:
@keksn Gehe die Anleitung nochmal Schritt für Schritt durch und erstelle einen neuen Operator TokenDas ist nur ein User .. in deinem Log
Hast du das gemacht ... :
https://github.com/simatec/ioBroker.backitup/wiki/Diverse-Anleitungen-für-ioBroker.backitup#token-für-influxdb-2x-backup-richtig-erstellenschau auch hier mit mal nach :
cat /etc/influxdb2/influx-configs -
@keksn sagte in Backup Zugriffsproblem influxDB2.5:
influx auth list [ { "id": "0b055ae197aec000", "description": "iobroker_user_token", "token": "LpT1OUMTk3MNKV9fCwE7gfFHzu5CPr6dQI2VtdJ-31aFgFszpYIiZwaTfioaZMbj5ddxFTZT3HKACx23QpMgVg==", "status": "active", "userName": "admin", "userID": "0b03f56869ede000", "permissions": [ "read:orgs/0f2be3356ee1ee0a/annotations", "write:orgs/0f2be3356ee1ee0a/annotations", "read:orgs/0f2be3356ee1ee0a/authorizations", "write:orgs/0f2be3356ee1ee0a/authorizations",Das ist kein Operator Token! Den erkennst Du daran, dass in den Permissions kein "orgs" drin steht. Ein Operator Token hat Rechte auf ALLE Organisationen.
So in etwa:
"permissions": [ "read:/annotations", "write:/annotations", "read:/authorizations", "write:/authorizations", "read:/buckets", "write:/buckets", "read:/checks", "write:/checks", "read:/dashboards", "write:/dashboards", "read:/dbrp", "write:/dbrp",@marc-berg sagte in Backup Zugriffsproblem influxDB2.5:
f2be3356ee1ee0a/
danke, dann kann ich aber anscheinend keinen Operator token erstellen. Funkt nicht
-
@simatec sagte in Backup Zugriffsproblem influxDB2.5:
@keksn Gehe die Anleitung nochmal Schritt für Schritt durch und erstelle einen neuen Operator TokenDas ist nur ein User .. in deinem Log
Hast du das gemacht ... :
https://github.com/simatec/ioBroker.backitup/wiki/Diverse-Anleitungen-für-ioBroker.backitup#token-für-influxdb-2x-backup-richtig-erstellenschau auch hier mit mal nach :
cat /etc/influxdb2/influx-configsdie Anleitung habe ich nun schon einige Male durch.
config Datei fine ich aber nicht
keksn@iobroker:~$ cd /etc/influxdb2/influx-configs -bash: cd: /etc/influxdb2/influx-configs: No such file or directory -
@simatec sagte in Backup Zugriffsproblem influxDB2.5:
@keksn Gehe die Anleitung nochmal Schritt für Schritt durch und erstelle einen neuen Operator TokenDas ist nur ein User .. in deinem Log
Hast du das gemacht ... :
https://github.com/simatec/ioBroker.backitup/wiki/Diverse-Anleitungen-für-ioBroker.backitup#token-für-influxdb-2x-backup-richtig-erstellenschau auch hier mit mal nach :
cat /etc/influxdb2/influx-configs@glasfaser
dürfte mir da irgendetwas zerschossen haben, da das Backup ja schon problemlos gelaufen ist
