-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
influx v1 auth ls
fails with unable to decode response content type "text/html"
#492
Comments
Same problem on a paid AWS InfluxDB subscription. Same problem when running the client on Debian 11 instead of Ubuntu 22.04
|
Also if I try to just set up Grafana without username and password, it fails with $ influx v1 shell --http-debug
[...]
Connected to InfluxDB cloud2 2.0
2023/04/06 13:40:08
GET /query?db=&q=SHOW+DATABASES&rp= HTTP/1.1
Host: eu-central-1-1.aws.cloud2.influxdata.com
User-Agent: influx/dev (linux) Sha/none Date/2023-04-05T17:15:07Z
Accept: application/json
Authorization: Token ********
Accept-Encoding: gzip
2023/04/06 13:40:08
HTTP/2.0 501 Not Implemented
Content-Length: 54
Content-Type: application/json; charset=utf-8
Date: Thu, 06 Apr 2023 11:40:09 GMT
Request-Id: da020d107f4f66947e97cb3903fb472b
Strict-Transport-Security: max-age=15724800; includeSubDomains
Trace-Id: 6a49282f1ca08b3e
Trace-Sampled: false
Vary: Accept-Encoding
X-Influxdb-Build: Cloud
X-Influxdb-Request-Id: da020d107f4f66947e97cb3903fb472b
X-Platform-Error-Code: not implemented
X-Request-Id: da020d107f4f66947e97cb3903fb472b
{"code":"not implemented","message":"not implemented"} |
No problem when running
So this seems to be related to how InfluxDB Cloud gets deployed on AWS. |
The Cloud specific documentation needs to be updated, it does not support the V1 auth styles. To setup Grafana using InfluxQL against Cloud2, you can follow that guide and make sure you use token-authentication. You'll need to create an appropriately scoped API token to use. |
Thanks a lot! Indeed I got the connection between Grafana and InfluxDB working with Flux (v2) instead of InfluxQL (v1), but for context: with Flux I can't get Grafana Geomap to work, which is how I ended up wanting to go back to v1, which is how I ended up stumbling upon this. Anyway, good to know that InfluxDB Cloud doesn't support v1, thanks again. |
For reference I managed to get Grafana Geomap working with InfluxDB over Flux (v2), see grafana/grafana#54071 (comment) Should we keep this issue open in order to document that Influx Cloud doesn't support v1 anymore, and rename the issue accordingly? |
Just to be clear, the TSM based Cloud product should support V1 querying through InfluxQL. It requires that you use V2 Auth (tokens) but you should still be able to query using InfluxQL via DBRP Mappings. |
Thanks, but I didn't manage, as described in the first comment #492 (comment) EDIT: but maybe it's only me. Feel free to close this issue if that's the case, as I have switched to v2 meanwhile anyway. Thanks again! |
Context: I'm following https://docs.influxdata.com/influxdb/cloud/tools/grafana/?t=InfluxQL in order to be able to query InfluxDB from Grafana using InfluxQL instead of Flux. My InfluxDB is an InfluxDB Cloud Free Plan
Steps to reproduce
I did
but then I can't create a v1 user/password as any command involving
influx v1 auth
fails with:Version
influx
binary downloaded from https://dl.influxdata.com/influxdb/releases/influxdb2-client-2.7.1-linux-amd64.tar.gz running on Ubuntu 22.04Additional info
// CC @nikste
The text was updated successfully, but these errors were encountered: