influxdata / influxdata/influxdb
Encoding Issue using Docker and docker exec -it Influxdb bash
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
Hi Guys and Gals,
i ran across a funny bug using docker and some influxdb CLI comands.
My plan was to get a legacy product to authenticate via the influxdb1.x methode.
For this i needed to use ["influx v1 auth create" ](https://docs.influxdata.com/influxdb/cloud/reference/cli/influx/v1/auth/create/)
When running this comand with the wrong parameters i get the usal help information. But if I use a somewhat right comand I get:
"Error: failed to verify username "Tester" has no auth: unable to decode response content type "text/html; charset=UTF-8""
This made me curios if this only apears to be a problem with valid comands so i ran influx list org and got the same result.
Any Ideas why that might be ?
__Steps to reproduce:__
List the minimal actions needed to reproduce the behavior.
1. run influxdb using docker
2. ssh onto the server running docker
3. docker exec -it Influxdb bash
4. run an influx CLI comand like influx list org
6. get the response "Error: failed to list orgs: unable to decode response content type "text/html; charset=UTF-8""
__Environment info:__
* System info: Run `uname -srm` and copy the output here
_ Linux 5.10.28-Unraid x86_64_
* InfluxDB version: Run `influxd version` and copy the output here
_Influx CLI 2.2.1 (git: 31ac783) build_date: 2021-11-09T21:24:22Z (funny this comand does not have this issue)_
* Other relevant environment details: Container runtime, disk info, etc
_Client: Docker Engine - Community
Version: 20.10.5
API version: 1.41
Go version: go1.13.15
Git commit: 55c4c88
Built: Tue Mar 2 20:14:11 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.5
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: 363e9a8
Built: Tue Mar 2 20:18:31 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.4.3
GitCommit: 269548fa27e0089a8b8278fc4fc781d7f65a939b
runc:
Version: 1.0.0-rc93
GitCommit: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
docker-init:
Version: 0.19.0
GitCommit: de40ad0_
Contributor guide
Research direction
Start by reproducing the failure with the listed Docker Engine and Influx CLI versions: enter the container using `docker exec -it Influxdb bash`, then run `influx list org` and `influx v1 auth create` with the described parameters. Compare the returned HTML content type with the expected CLI response; done means the cause is identified and the affected command works or the incompatibility is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- cli, databases, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100