InfluxDb initialization in docker variant

When Iam starting InfluxDB in a docker-compose szenario the influx logs the following messgages:
influxdb init process in progress…
influxdb init process in progress…
influxdb init process in progress…
influxdb init process in progress…
influxdb init process in progress…
influxdb init process in progress…
influxdb init process in progress…
influxdb init process in progress…

influxdb init process in progress…
influxdb init process in progress…
influxdb init process failed.

Why does the progress fails?
I noticed that the more services I add to the compose file the longer does the init progress needs. When only ading a few services it works.
After 30 “tries”, the init progress failes. I only added the env var INFLUX_DB variable to instantiate a database on startup.

Hello @thais,
What InfluxDB image are you using? Can you share your compose please?

Here is extract from my compose file:

version: "3.4"
services:
  myinfluxdb:
    image: myinfluxdb
    container_name: myinfluxdb
    build:
      context: influxdb
      dockerfile: Dockerfile
    ports:
      - "8086:8086"
    environment:
      - INFLUXDB_DB=myinfluxdb
    volumes:
      - influxdata:/var/lib/influxdb
    restart: unless-stopped

 

volumes:
  influxdata:


networks:
  default:
    external:
      name: mynetwork

Here is my conf file:

[meta]
  dir = "/var/lib/influxdb/meta"

[data]
  dir = "/var/lib/influxdb/data"
  engine = "tsm1"
  wal-dir = "/var/lib/influxdb/wal"
  
[http]
      enabled = true
      bind-address = ":8086"
      flux-enabled = true

When starting this, the log “influxdb init process in progress…” shows up about 10 times. Now when I add other services like a mongodb or else, the loh shows up more often.

This only happens, when the influx volume does not exists…

The version of influxdb is 1.8.0

Seems to be a bug in the docker variant.
When I do not state the environment variable INFLUXDB_DB and create the database in code, it works fine and the init process is fast.

Can someone confirm that?