influxdata / influxdata/influxdb

error: found flags from an InfluxDB 1.x configuration

Open
#25,262 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

## Describe Development Experience Issue:
Hi, I want to run influxdb2-2.7.8.
I have influxdb.toml config file with this configuration

[http]
http-bind-address = ":8087"
pprof-disabled = true
https-enabled = false
tls-cert = "/etc/ssl/influxdb2.pem"

[shard-precreation]
storage-shard-precreator-check-interval = "10m"
storage-shard-precreator-advance-period = "30m"

etc..

Which is written as specified in the v2 documentation, and starting influxd with the command
```export INFLUXD_CONFIG_PATH=/mnt1/influxdb2-2.7.8/etc/influxdb2/influxdb2.toml && /mnt1/influxdb2-2.7.8/usr/bin/influxd```
But getting error saying :
```
error: found flags from an InfluxDB 1.x configuration in config file at /mnt1/influxdb2-2.7.8/etc/influxdb2/influxdb2.toml
- see https://docs.influxdata.com/influxdb/latest/reference/config-options/ for flags supported on this version of InfluxDB:
- http.pprof-disabled,data.engine-path,data.storage-cache-max-memory-size,shard-precreation.storage-shard-precreator-check-interval,shard-precreation.storage-shard-precreator-advance-period,http.tls-cert,http.http-bind-address,bind-address,retention.storage-retention-check-interval
```

### Steps to reproduce:

1. Save config file as influxdb2.toml
2. run export INFLUXD_CONFIG_PATH=/mnt1/influxdb2-2.7.8/etc/influxdb2/influxdb2.toml && /mnt1/influxdb2-2.7.8/usr/bin/influxd
3. specify path accordingly

### Desired result:

Influxdb should start on port specified
### Actual result:

Getting error with config file, though specified as given in documentation
## Hardware Environment:

- Package: ...
- CPU: ...
- Memory: ...
- Block Device: ...

## Operating System:

Linux 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 x86_64 x86_64 GNU/Linux
## Code Editing Tool:

## Build Environment:

[ ] I'm using sccache

Contributor guide

Open the contributing guide

Research direction

Start with the reported influxdb2.toml and run the shown INFLUXD_CONFIG_PATH/influxd command to reproduce the configuration error. Compare the listed flags with the v2 configuration-options documentation linked in the report; done means influxd accepts the configuration and starts on the requested port.

Written by the indexing model from the issue text.

Assessment

Domain
databases
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.