Today I installed Influxdb and grafana to save and visualize long term homeassist data.
I did a docker container install.
Everything is running fine, until I try to backup the infludb data.
The command I use with http trace:
docker exec -it influxdb_2.5.1 /usr/local/bin/influx backup --http-debug -t ./
2022/11/18 14:11:09
GET /health HTTP/1.1
Host: localhost:8086
User-Agent: influx/2.5.0 (linux) Sha/3285a03 Date/2022-11-01T16:32:06Z
Accept: application/json
Authorization: Token
Accept-Encoding: gzip
2022/11/18 14:11:09
HTTP/1.1 200 OK
Content-Length: 137
Content-Type: application/json; charset=utf-8
Date: Fri, 18 Nov 2022 13:11:09 GMT
X-Influxdb-Build: OSS
X-Influxdb-Version: v2.5.1
{“name”:“influxdb”, “message”:“ready for queries and writes”, “status”:“pass”, “checks”:, “version”: “v2.5.1”, “commit”: “5b6fdbf05d”}
2022/11/18 14:11:09 INFO: Downloading metadata snapshot
2022/11/18 14:11:09
GET /api/v2/backup/metadata HTTP/1.1
Host: localhost:8086
User-Agent: influx/2.5.0 (linux) Sha/3285a03 Date/2022-11-01T16:32:06Z
Accept: application/json
Accept-Encoding: gzip
Authorization: Token
2022/11/18 14:11:09
HTTP/1.1 401 Unauthorized
Content-Length: 71
Content-Type: application/json; charset=utf-8
Date: Fri, 18 Nov 2022 13:11:09 GMT
Vary: Accept-Encoding
X-Influxdb-Build: OSS
X-Influxdb-Version: v2.5.1
X-Platform-Error-Code: unauthorized
{“code”:“unauthorized”,“message”:“read:authorizations is unauthorized”}
Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized
When I try other commands like:
docker exec -it influxdb_2.5.1 /usr/local/bin/influx bucket list --http-debug -t -o homeassistant
docker exec -it influxdb_2.5.1 /usr/local/bin/influx bucket list -t -o homeassistant
ID Name Retention Shard group duration Organization ID Schema Type
fb8204136dea9da0 _monitoring 168h0m0s 24h0m0s c4a0c27bc5c7ce7d implicit
cc5a3021f1557a10 _tasks 72h0m0s 24h0m0s c4a0c27bc5c7ce7d implicit
1f96af5306be8357 homeassistant infinite 168h0m0s c4a0c27bc5c7ce7d implicit
I got output, so the token is fine.
Some ideas?