jlambert121 / jlambert121-kibana

Puppet module to install and configure kibana 4
Other
11 stars 50 forks source link

kibana 4.3.0 needs small systemd change to start #65

Closed mvernimmen-CG closed 8 years ago

mvernimmen-CG commented 8 years ago

On CentOS 7.1 Kibana 4.3.0 doesn't start logs the following in /var/log/kibana/kibana.log: {"type":"log","@timestamp":"2015-12-01T14:03:56+00:00","tags":["fatal"],"pid":15654,"level":"fatal","message":"EACCES, open '/var/run/kibana.pid'","error":{"message":"EACCES, open '/var/run/kibana.pid'","name":"Error","stack":"Error: EACCES, open '/var/run/kibana.pid'\n at Error (native)","code":"EACCES"}}

In other words, the kibana user doesn't (and shouldn't) have write access to /var/run To fix this, '/usr/lib/systemd/system/kibana.service' needs to have 'RuntimeDirectory=kibana' set. But that only fixes it for systems with systemd>=211, which CentOS 7 does not have at this moment.

A workaround is to either run kibana as root (not a good idea) or to add this to kibana.service: ExecStartPre=/usr/bin/install -o kibana -g kibana -d /var/run/kibana PIDFile=/var/run/kibana/kibana.pid

Probably in both cases the kibana.yml needs to be set to /var/run/kibana/kibana.pid instead of the default.

atopian commented 8 years ago

I have a PR to fix this at evenup/evenup-kibana#67

jlambert121 commented 8 years ago

Closed with #67