Hi InfluxDB users,
i face some nasty issue with my attempts to bring up influxDB on my arch Linux machine.
I created a new config
ls /etc/influxdb/config.toml -la
-rw-r--r-- 1 root root 604 Jan 17 10:59 /etc/influxdb/config.toml
looking like this:
#blblalala
#[admin]
# enabled = true
# bind-address = ":8083"
# https-enabled = false
# #https-certificate = "/etc/ssl/influxdb.pem"
###
### [http]
###
### Controls how the HTTP endpoints are configured. These are the primary
### mechanism for getting data into and out of InfluxDB.
###
[http]
enabled = true
bind-address = "0.0.0.0:8087"
auth-enabled = false
log-enabled = true
write-tracing = false
pprof-enabled = false
https-enabled = false
#https-certificate = "/etc/ssl/influxdb.pem"
### Use a separate private key location.
# https-private-key = ""
max-row-limit = 10000
realm = "InfluxDB"
Just for a test of the config i set the bind to 0.0.0.0:8087
I set the env like this:
INFLUD_CONFIG_PATH=/etc/influxdb
HOME=/root
LANG=en_US.UTF-8
TERM=xterm-256color
USER=root
INFLUXD_CONFIG_PATH=/etc/influxdb
SHLVL=1
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/flutter/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin
SUDO_UID=1004
MAIL=/var/mail/root
INFLUXDB_CONFIG_PATH=/etc/influxdb
while starting the “influxd print-config | grep bind” from /etc/influxdb directory
ls /etc/influxdb
config.toml
influxd returns:
influxd print-config | grep bind
http-bind-address: :8086
so it looks like my config file is ignored due to some reason.
But when i add some errors to the config like
blblalala
I notice the config is parsed and checked by influxd sucessfully
influxd print-config | grep bind
failed to load config file: While parsing config: (2, 1): unexpected token
What i don’t understand - if the config is parsed why is ignoring my setting e.g. setting the bind to 0.0.0.0:8087
Same issues i see when running the service via service file
Can you guys plz help me debug this strange behavior?
version information:
influxd version
InfluxDB 2.1.1 (git: 657e183) build_date: 2022-01-17T09:56:37Z
Version in pacman:
community/influxdb 2.1.1-1
Same issue seems to happen in
influxd version
InfluxDB 2.0.7 (git: 2a45f0c) build_date: 2022-01-17T20:10:14Z