Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/etc/influxdb/config.yml does not work but config.toml works. influxdb v2 #25778

Open
jmuecke opened this issue Jan 10, 2025 · 0 comments
Open

Comments

@jmuecke
Copy link

jmuecke commented Jan 10, 2025

I tried setting configuration with /etc/influxdb/config.yml and /etc/influxdb/config.toml while starting the systemd influxd.service. But only the configuration in config.toml seems to be read, since only this changes the port influxd is listening on in my setup.

Steps to reproduce:
List the minimal actions needed to reproduce the behaviour.

  1. Install influxdb2 from https://repos.influxdata.com/debian on Ubuntu 24.04
  2. Create configuration file /etc/influxdb/config.yml
  3. systemctl restart influxd
#config.yml
http-bind-address: "localhost:8088"

Expected behaviour:
Influxd listens on localhost:8088

Actual behaviour:
Influxd listens on 0.0.0.0/8086 (default configuration)

Environment info:

  • System info: Run uname -srm or similar and copy the output here (we want to know your OS, architecture etc).
Linux 6.8.0-51-generic x86_64

OS: Ubuntu 24.04
Influxdb: v2.7.11

More details:

#config.toml that works
http-bind-address = "localhost:8088"

The following permissions are set (Only either config.toml and config.yml are present throughout my tests):

ls -la /etc/influxdb/
total 8
drwxr-xr-x 1 root root   38 Jan 10 11:43 .
drwxr-xr-x 1 root root 4110 Jan  9 15:23 ..
-rwxr--r-- 1 root root   36 Jan 10 11:43 config.yml
-rwxr--r-- 1 root root   37 Jan 10 11:25 config.toml

I also tried to help influxd by setting the following configurations within the service:

WorkingDirectory=/etc/influxdb
Environment="INFLUXD_CONFIG_PATH=/etc/influxdb"

systemd service file:


[Unit]
Description=InfluxDB is an open-source, distributed, time series database
Documentation=https://docs.influxdata.com/influxdb/
After=network-online.target

[Service]
User=influxdb
Group=influxdb
LimitNOFILE=65536
EnvironmentFile=-/etc/default/influxdb2
ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh
KillMode=control-group
Restart=on-failure
Type=forking
PIDFile=/var/lib/influxdb/influxd.pid
StateDirectory=influxdb
StateDirectoryMode=0750
LogsDirectory=influxdb
LogsDirectoryMode=0750
UMask=0027
TimeoutStartSec=0

[Install]
WantedBy=multi-user.target
Alias=influxd.service
Relevant URLs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant