dev-db/influxdb-2.7.1-r1 does not install a config file to /etc/influxdb/influxdb.conf as it is not needed. But the OpenRC startscript is searching for this file and quits, if it is not present. If you comment out the inclusion of the config file and the test, if it exists, influxdb runs fine. Reproducible: Always Steps to Reproduce: 1. Emerge >=influxdb-2.7 2. Start via /etc/init.d/influxdb 3. Start fails because of missing file /etc/influxdb/influxdb.conf Actual Results: * config file /etc/influxdb/influxdb.conf doesn't exist * ERROR: influxdb failed to start Expected Results: * Caching service dependencies ... [ ok ] * Starting influxdb ... [ ok ]
I also don't think the init.d script its entirelly correct, since the command_args that has defined are not supported by influxd binary: config="${config:-/etc/influxdb/influxdb.conf}" command_args="-config ${config} ${influxd_opts}" If run in cli or via init.d you get the following error: # influxd -config /etc/influxdb/influxdb.conf Error: unknown shorthand flag: 'c' in -config See 'influxd -h' for help The correct way of running 2.X seems to be with 'influxd run', as the configuration file is either overriden by individual flags (I didn't saw a flag to just send the entire conf, just to update some values), via env variables or via the default conf path. As stated from the help: Start up the daemon configured with flags/env vars/config file. The order of precedence for config options are as follows (1 highest, 3 lowest): 1. flags 2. env vars 3. config file A config file can be provided via the INFLUXD_CONFIG_PATH env var. If a file is not provided via an env var, influxd will look in the current directory for a config.{json|toml|yaml|yml} file. If one does not exist, then it will continue unchanged.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27d408eda1c027c48312e7b9ae96b01cae508474 commit 27d408eda1c027c48312e7b9ae96b01cae508474 Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2024-02-12 20:25:32 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2024-02-24 16:53:58 +0000 dev-db/influxdb: fix config handling The config handling changed in v2 completly. This means, the parameter "-config" is gone and does not exist anymore. Instead, INFLUXD_CONFIG_PATH needs to be defined with the path, where InfluxDB v2 needs to look for config files. For compatibility reason, we will use '/etc/influxdb'. This can be overriden by user. Closes: https://bugs.gentoo.org/908437 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/35289 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> dev-db/influxdb/files/influxdb.confd-r1 | 18 +++++++++ dev-db/influxdb/files/influxdb.initd-r1 | 47 ++++++++++++++++++++++ ...luxdb-2.7.3.ebuild => influxdb-2.7.3-r1.ebuild} | 6 ++- 3 files changed, 70 insertions(+), 1 deletion(-)