NEWS
Backup Zugriffsproblem influxDB2.5
-
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"
-
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:~$
-
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" ]
-
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" ] }t
keksn@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",
-
@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
-
@marc-berg sagte in Backup Zugriffsproblem influxDB2.5:
f2be3356ee1ee0a/
danke, dann kann ich aber anscheinend keinen Operator token erstellen. Funkt nicht
-
die 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
-
@glasfaser
dürfte mir da irgendetwas zerschossen haben, da das Backup ja schon problemlos gelaufen ist -
@keksn sagte in Backup Zugriffsproblem influxDB2.5:
danke, dann kann ich aber anscheinend keinen Operator token erstellen.
Funkt nicht
und was heißt das für uns ...
kannst du das mal alles zeigen !? -
@glasfaser was meinst Du mit alles?
-
@keksn sagte in Backup Zugriffsproblem influxDB2.5:
keksn@iobroker:~$ influx backup --bucket iobroker --host http://192.168.1.166:8086
Error: Command failed: "/usr/bin/influx"
hast du Influx wo anders installiert !?