Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 666764

Summary: dev-db/influxdb (1.5.1) : outputs redirect not working
Product: Gentoo Linux Reporter: Thomas Capricelli <orzel>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Severity: normal CC: hydrapolic
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---

Description Thomas Capricelli 2018-09-22 16:38:12 UTC
I can't get logs from influxdb. From what i understand, influxdb uses stdout/stderr, and the init.d file has this:


I guess error_log / output_log are some generic openrc variables to redirect stdout/stderr of a daemon.

Though it doesn't work. If i put anything in /etc/conf.d/influxdb, such as:


Or anything else, nothing get written to. Files aren't even created. The permissions seem ok (created by the ebuild, i did nothing):

drwxr-xr-x 2 influxdb influxdb 4096 Sep 22 15:41 /var/log//influxdb

It doesn't prevent influxdb to start though, and ps aux confirms it runs, under the influxdb user:

influxdb 19193  0.1  0.1 819412 30524 ?        Ssl  18:29   0:00 /usr/bin/influxd -config /etc/influxdb/influxd.conf
Comment 1 Thomas Capricelli 2018-09-22 16:46:03 UTC
Digging into documentation, my guess was wrong, and error_log/output_log have no meaning for openrc

It works if i add this line to the init.d file :

start_stop_daemon_args="--stdout ${output_log} --stderr ${error_log}"
Comment 2 Tomáš Mózes 2018-09-23 01:36:55 UTC
Which version of openrc do you have? I think 0.34.11 doesn't understand error_log/output_log, but try the newest freshly stabilized 0.38.2 (
Comment 3 Thomas Capricelli 2018-09-24 10:16:35 UTC
Yes, i'm using 0.34.11.
Currently updating to 0.38.2, that will probably fix it.

There's a dependancy bug somewhere, then ?
Comment 4 Tomáš Mózes 2018-09-24 11:04:40 UTC
Please upgrade to latest openrc, reboot and it should work. Please reopen if it doesn't work.

It's not really a bug because influxdb is unstable whereas you are using a stable openrc. Unstable/testing versions often use the latest features of various subsystems, openrc in this case.