Skip to content
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

InfluxDB 2.2: using api with curl fails in init-script #620

Open
ph1l1ppk opened this issue Jun 30, 2022 · 0 comments
Open

InfluxDB 2.2: using api with curl fails in init-script #620

ph1l1ppk opened this issue Jun 30, 2022 · 0 comments
Labels

Comments

@ph1l1ppk
Copy link

Hello,
I use influxDB 2.2 in a docker-compose stack and I have an unexpected behaviour when doing initialisation with an init-script. Doing initialisation with InfluxCLI works all-right in an init-script. When I try to do the same initialisation by api and curl in that init-script the curl calls fail with the message:
curl: (7) Failed to connect to localhost port 8086: Connection refused
When I run the init-script later manually or in another container, the curl call to the api work all right. In InfluxDB 1.x, using api and curl in init-skripts worked all right.
Am I doing something wrong or is this the expected behaviour in InfluxDB 2.x?

best regards, Philipp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants