Influxdb container not getting started

hi,
Influxdb container is not starting. It showing the below error in the logs

lvl=error msg=“Failed opening bolt” log_id=0X9E46g0000 error=“unable to open boltdb: timeout”
Error: unable to open boltdb: timeout

We have docker file where the user is influxdb and it is only pulling the image from docker hub
Can anybody help me how to fix this.

Hello @Ananya_Chowdhury,
Can you try setting:

ulimit -n 10000

Hi Anaisdg, I have the same problem. Where I put the ulimit -n 10000 command in the docker-compose file? in entrypoint.sh of influx-cli ?

Network influxdbv2_telegraf_docker_default  Creating
Network influxdbv2_telegraf_docker_default  Created
Container influxdbv2_telegraf_docker-influxdb-1  Creating
Container influxdbv2_telegraf_docker-influxdb-1  Created
Container influxdbv2_telegraf_docker-influxdb_cli-1  Creating
Container influxdbv2_telegraf_docker-influxdb_cli-1  Created
Container influxdbv2_telegraf_docker-telegraf-1  Creating
Container influxdbv2_telegraf_docker-telegraf-1  Created
Attaching to influxdbv2_telegraf_docker-influxdb-1, influxdbv2_telegraf_docker-influxdb_cli-1, influxdbv2_telegraf_docker-telegraf-1
influxdbv2_telegraf_docker-influxdb-1      | 2021-12-15T01:30:20.094705200Z     info    found existing boltdb file, skipping setup wrapper      {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt"}
influxdbv2_telegraf_docker-influxdb_cli-1  | 2021-12-15T01:30:21.159304100Z     info    found existing boltdb file, skipping setup wrapper      {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt"}
influxdbv2_telegraf_docker-telegraf-1      | 2021-12-15T01:30:21Z I! Starting Telegraf 1.20.4
influxdbv2_telegraf_docker-telegraf-1      | 2021-12-15T01:30:21Z I! Using config file: /etc/telegraf/telegraf.conf
influxdbv2_telegraf_docker-telegraf-1      | 2021-12-15T01:30:21Z I! Loaded inputs: cpu disk diskio mem mqtt_consumer net processes swap system
influxdbv2_telegraf_docker-telegraf-1      | 2021-12-15T01:30:21Z I! Loaded aggregators:
influxdbv2_telegraf_docker-telegraf-1      | 2021-12-15T01:30:21Z I! Loaded processors:
influxdbv2_telegraf_docker-telegraf-1      | 2021-12-15T01:30:21Z I! Loaded outputs: influxdb_v2
influxdbv2_telegraf_docker-telegraf-1      | 2021-12-15T01:30:21Z I! Tags enabled: host=87451dd5294a
influxdbv2_telegraf_docker-telegraf-1      | 2021-12-15T01:30:21Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"87451dd5294a", Flush Interval:10s
influxdbv2_telegraf_docker-telegraf-1      | 2021-12-15T01:30:23Z I! [inputs.mqtt_consumer] Connected [tcp://cloud.thegrouplab.com:1883]
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:29.610925Z lvl=info msg="Welcome to InfluxDB" log_id=0YQwEyQW000 version=2.0.7 commit=2a45f0c037 build_date=2021-06-04T19:17:40Z
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:29.616340Z lvl=info msg="Resources opened" log_id=0YQwEyQW000 service=bolt path=/var/lib/influxdb2/influxd.bolt
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:29.628086Z lvl=info msg="Checking InfluxDB metadata for prior version." log_id=0YQwEyQW000 bolt_path=/var/lib/influxdb2/influxd.bolt
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:29.629319Z lvl=info msg="Using data dir" log_id=0YQwEyQW000 service=storage-engine service=store path=/var/lib/influxdb2/engine/data
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:29.630446Z lvl=info msg="Compaction settings" log_id=0YQwEyQW000 service=storage-engine service=store max_concurrent_compactions=6 throughput_bytes_per_second=50331648 throughput_bytes_per_second_burst=50331648
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:29.630485Z lvl=info msg="Open store (start)" log_id=0YQwEyQW000 service=storage-engine service=store op_name=tsdb_open op_event=start
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:29.743967Z lvl=info msg="index opened with 8 partitions" log_id=0YQwEyQW000 service=storage-engine index=tsi
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:29.780484Z lvl=info msg="Reading file" log_id=0YQwEyQW000 service=storage-engine engine=tsm1 service=cacheloader path=/var/lib/influxdb2/engine/wal/ad1ca59e4593c49e/autogen/1/_00001.wal size=586313
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:29.843424Z lvl=info msg="Opened shard" log_id=0YQwEyQW000 service=storage-engine service=store op_name=tsdb_open index_version=tsi1 path=/var/lib/influxdb2/engine/data/ad1ca59e4593c49e/autogen/1 duration=129.045ms
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:29.843478Z lvl=info msg="Open store (end)" log_id=0YQwEyQW000 service=storage-engine service=store op_name=tsdb_open op_event=end op_elapsed=212.996ms
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:29.843491Z lvl=info msg="Starting retention policy enforcement service" log_id=0YQwEyQW000 service=retention check_interval=30m
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:29.843516Z lvl=info msg="Starting precreation service" log_id=0YQwEyQW000 service=shard-precreation check_interval=10m advance_period=30m
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:29.843564Z lvl=info msg="Starting query controller" log_id=0YQwEyQW000 service=storage-reads concurrency_quota=1024 initial_memory_bytes_quota_per_query=9223372036854775807 memory_bytes_quota_per_query=9223372036854775807 max_memory_bytes=0 queue_size=1024
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:29.845945Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0YQwEyQW000 max_select_point=0 max_select_series=0 max_select_buckets=0
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:30.139042Z lvl=info msg=Starting log_id=0YQwEyQW000 service=telemetry interval=8h
influxdbv2_telegraf_docker-influxdb-1      | ts=2021-12-15T01:30:30.139563Z lvl=info msg=Listening log_id=0YQwEyQW000 service=tcp-listener transport=http addr=:8086 port=8086
influxdbv2_telegraf_docker-influxdb_cli-1  | ts=2021-12-15T01:30:30.559806Z lvl=info msg="Welcome to InfluxDB" log_id=0YQwF17l000 version=2.0.7 commit=2a45f0c037 build_date=2021-06-04T19:17:40Z
influxdbv2_telegraf_docker-influxdb_cli-1  | Error: unable to open boltdb: timeout
influxdbv2_telegraf_docker-influxdb_cli-1  | See 'influxd -h' for help
influxdbv2_telegraf_docker-influxdb_cli-1  | ts=2021-12-15T01:30:31.524552Z lvl=error msg="Failed opening bolt" log_id=0YQwF17l000 error="unable to open boltdb: timeout"
influxdbv2_telegraf_docker-influxdb_cli-1 exited with code 1
influxdbv2_telegraf_docker-influxdb_cli-1  | 2021-12-15T01:30:32.430976800Z     info    found existing boltdb file, skipping setup wrapper      {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt"}
influxdbv2_telegraf_docker-influxdb_cli-1  | ts=2021-12-15T01:30:39.090672Z lvl=info msg="Welcome to InfluxDB" log_id=0YQwFYSW000 version=2.0.7 commit=2a45f0c037 build_date=2021-06-04T19:17:40Z
influxdbv2_telegraf_docker-influxdb_cli-1  | Error: unable to open boltdb: timeout
influxdbv2_telegraf_docker-influxdb_cli-1  | See 'influxd -h' for help
influxdbv2_telegraf_docker-influxdb_cli-1  | ts=2021-12-15T01:30:40.048685Z lvl=error msg="Failed opening bolt" log_id=0YQwFYSW000 error="unable to open boltdb: timeout"
influxdbv2_telegraf_docker-influxdb_cli-1 exited with code 1
influxdbv2_telegraf_docker-influxdb_cli-1  | 2021-12-15T01:30:40.945554700Z     info    found existing boltdb file, skipping setup wrapper      {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt"}
influxdbv2_telegraf_docker-influxdb_cli-1  | ts=2021-12-15T01:30:47.675374Z lvl=info msg="Welcome to InfluxDB" log_id=0YQwG3zW000 version=2.0.7 commit=2a45f0c037 build_date=2021-06-04T19:17:40Z
influxdbv2_telegraf_docker-influxdb_cli-1  | ts=2021-12-15T01:30:48.632984Z lvl=error msg="Failed opening bolt" log_id=0YQwG3zW000 error="unable to open boltdb: timeout"
influxdbv2_telegraf_docker-influxdb_cli-1  | Error: unable to open boltdb: timeout
influxdbv2_telegraf_docker-influxdb_cli-1  | See 'influxd -h' for help
influxdbv2_telegraf_docker-influxdb_cli-1 exited with code 1
influxdbv2_telegraf_docker-influxdb_cli-1  | 2021-12-15T01:30:49.689191700Z     info    found existing boltdb file, skipping setup wrapper      {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt"}
influxdbv2_telegraf_docker-influxdb_cli-1  | ts=2021-12-15T01:30:56.646690Z lvl=info msg="Welcome to InfluxDB" log_id=0YQwGc1W000 version=2.0.7 commit=2a45f0c037 build_date=2021-06-04T19:17:40Z
influxdbv2_telegraf_docker-influxdb_cli-1  | Error: unable to open boltdb: timeout
influxdbv2_telegraf_docker-influxdb_cli-1  | See 'influxd -h' for help

Haven’t tried it, but that might be the way to do it?

  ulimits:
    nofile: 10000
1 Like