NEWS
Backup Zugriffsproblem influxDB2.5
-
@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 !?
-
@keksn sagte in Backup Zugriffsproblem influxDB2.5:
@glasfaser was meinst Du mit alles?
@Marc-Berg und ich haben dir etwas gezeigt .
halt die Ausgaben vom änderen usw. Operator anlegen usw.
-
@glasfaser sagte in Backup Zugriffsproblem influxDB2.5:
led: "/usr/bin/infl
ich denke ich bin dal überfordert.
keksn@iobroker:~$ influx backup --bucket iobroker --host http://192.168.1.166:8086 -t l8itvH_Wzt2HUDUM_1w5Q3oKINRcSO0PGi1msZjhz-1TvZB6puxTftQ8n2EyL1x35SMqKYhbhJ5v7IdNfasvBQ== "/tmp/influx-test" 2023/04/09 14:31:35 INFO: Downloading metadata snapshot Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized keksn@iobroker:~$
Ich habe Influx nicht bewusst wo anders installiert. habe es laut einer Anleitung ein ubgrade von influx auf influxdb2 gemacht.
Wie schon erwähnt ist alles schon problemlos gelaufen.
-
eksn@iobroker:~$ influx auth list -t l8itvH_Wzt2HUDUM_1w5Q3oKINRcSO0PGi1msZjhz-1TvZB6puxTftQ8n2EyL1x35SMqKYhbhJ5v7IdNfasvBQ== --json [ { "id": "0b057da10eeec000", "description": "Superneuertoken", "token": "l8itvH_Wzt2HUDUM_1w5Q3oKINRcSO0PGi1msZjhz-1TvZB6puxTftQ8n2EyL1x35SMqKYhbhJ5v7IdNfasvBQ==", "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:~$
-
@keksn sagte in Backup Zugriffsproblem influxDB2.5:
Ich habe Influx nicht bewusst wo anders installiert.
... also auf dem gleichen System mit ioBroker , deshalb frage ich mich , warum du die IP mit angibst !?
so wäre das ein entfernte Installation auf einem anderen System , oder Docker oder ...
-
-
aso, ich habe es unter Proxmox im selben CT wie der Iobroker laufen
-
meinst Du das manuelle Backup?
keksn@iobroker:~$ mkdir -p /opt/iobroker/backups/influxdb-tmp influx backup --bucket iobroker -t l8itvH_Wzt2HUDUM_1w5Q3oKINRcSO0PGi1msZjhz-1TvZB6puxTftQ8n2EyL1x35SMqKYhbhJ5v7IdNfasvBQ== /opt/iobroker/backups/influxdb-tmp 2023/04/09 14:48:45 INFO: Downloading metadata snapshotkups/influxdb-tmpZjhz-1TvZB6puxT Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized keksn@iobroker:~$