influxdata / influxdata/influxdata-docker

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

Open
#620 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

influxdb
Dominant language
Shell
Stars
364
Forks
255
Avg merge
3h 18m
Merged PRs (30d)
7

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file or test is named. Start by reproducing the reported docker-compose init-script flow with the curl API calls, then compare it with the InfluxCLI path and a later manual run. Done means determining whether the connection refusal is expected in this startup sequence or identifying the initialization behavior that must change.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, shell
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.