Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666764 - dev-db/influxdb (1.5.1) : outputs redirect not working
Summary: dev-db/influxdb (1.5.1) : outputs redirect not working
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-22 16:38 UTC by Thomas Capricelli
Modified: 2018-09-25 14:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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:

error_log="${error_log:-/var/log/influxdb/influxd.log}"
output_log="${output_log:-/dev/null}"

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:

error_log="/var/log/influxdb/error.log"
output_log="/var/log/influxdb/output.log"

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 (https://github.com/gentoo/gentoo/commit/31976091d68ce049daea4f489ea9a71e91495caa).
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.