Kibana: Kibana RPM : conflict between service and systemctl

Created on 26 Jan 2017  ·  8Comments  ·  Source: elastic/kibana

Kibana version: 5.1.2

Server OS version: Red Hat Enterprise Linux Server release 7.1

Original install method (e.g. download page, yum, from source, etc.): yum

Description of the problem including expected versus actual behavior:
service kibana status and systemctl status kibana does not return the same output.

Steps to reproduce:

  1. Install Kibana using the rpm
  2. systemctl daemon-reload
    3.
# service kibana start
# service kibana status
kibana is running
# systemctl status kibana
● kibana.service - Kibana
   Loaded: loaded (/etc/systemd/system/kibana.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
# service kibana stop
# systemctl start kibana
# systemctl status kibana
 ● kibana.service - Kibana
   Loaded: loaded (/etc/systemd/system/kibana.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2017-01-26 10:44:01 CET; 1s ago
 Main PID: 14574 (node)
   CGroup: /system.slice/kibana.service
           └─14574 /usr/share/kibana/bin/../node/bin/node --no-warnings /usr/share...
# service kibana status
kibana is not running

Kibana rpm creates a service script in /etc/init.d and an a systemd unit file in /etc/systemd/system. I think this is what cause the issue.

Operations bug

All 8 comments

+1
Came across this is 5.2.0 rpm install on OEL7 too.

+1
5.2.1 on CentOS7.

+1
Came across this is 5.2.0 rpm install on RHEL7 too.

Same with 5.2.2 and CentOS 7 here. Also, to make things more confusing, one logs to /var/log/kibana and the other logs to /var/log/messages via systemd.

As a side note, the Kibana RPM package creates the systemd service unit file under /etc/systemd/system, but installed packages should place their files under /usr/lib/systemd/system.

As a side note, the Kibana RPM package creates the systemd service unit file under /etc/systemd/system, but installed packages should place their files under /usr/lib/systemd/system.

This is also reported at https://github.com/elastic/kibana/issues/16046

Any movement on this?

Starting in 8.0 we'll ship only the systemd service. Logs before the logger has started will output to the journal, logs after (most with a few exceptions) will go to /var/log/kibana/kibana.log

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stacey-gammon picture stacey-gammon  ·  3Comments

snide picture snide  ·  3Comments

treussart picture treussart  ·  3Comments

timmolter picture timmolter  ·  3Comments

stacey-gammon picture stacey-gammon  ·  3Comments