Unable to start kibana.service using systemctl

10,274

Solution 1

I also faced the same issue. I solved it from this link

chown kibana:kibana -R /usr/share/kibana/optimize/

Solution 2

I experienced the same issue as mentioned above when tried ($sudo systemctl start kibana.service) to start Kibana. Issue: Failed to start Kibana using systemctl, but works fine through bin file. Resolution: /etc/systemd/system/kibana.service file was trying to start kibana using the User=kibana Group=kibana where either of them exists. This is resolved after creating the kibana user, kibana group and restarting kibana. $useradd kibana $groupadd kibana $usermod -a -G kibana kibana Hope this helps.

Share:
10,274
Sabith
Author by

Sabith

Updated on June 13, 2022

Comments

  • Sabith
    Sabith almost 2 years

    On CentOS 7, I am unable to start kibana.service using systemct start kibana but i am able to start the service when running .kibana from \usr\share\kibana\bin\. This is the output when systemctl status kibana

    kibana.service - Kibana
       Loaded: loaded (/etc/systemd/system/kibana.service; disabled; vendor preset: disabled)
       Active: failed (Result: start-limit) since Tue 2018-06-05 02:04:23 CDT; 703ms ago
      Process: 2560 ExecStart=/usr/share/kibana/bin/kibana -c /etc/kibana/kibana.yml (code=exited, status=1/FAILURE)
     Main PID: 2560 (code=exited, status=1/FAILURE)
    
    Jun 05 02:04:23 trclx2002 systemd[1]: kibana.service: main process exited, code=exited, status=1/FAILURE
    Jun 05 02:04:23 trclx2002 systemd[1]: Unit kibana.service entered failed state.
    Jun 05 02:04:23 trclx2002 systemd[1]: kibana.service failed.
    Jun 05 02:04:23 trclx2002 systemd[1]: kibana.service holdoff time over, scheduling restart.
    Jun 05 02:04:23 trclx2002 systemd[1]: start request repeated too quickly for kibana.service
    Jun 05 02:04:23 trclx2002 systemd[1]: Failed to start Kibana.
    Jun 05 02:04:23 trclx2002 systemd[1]: Unit kibana.service entered failed state.
    Jun 05 02:04:23 trclx2002 systemd[1]: kibana.service failed.
    
    • Mike Zhang
      Mike Zhang almost 6 years
      have you try to start directly from terminal?
    • Sabith
      Sabith almost 6 years
      @MikeZhang Yes, i logged into the server and I am able to run it from \bin where kibana is installed but not as service using systemctl
    • Mike Zhang
      Mike Zhang almost 6 years
      journalctl -u kibana.service -r can give you log detail , most of time it's the user permission setting incorrect
    • Mark Stosberg
      Mark Stosberg almost 6 years
      Please review the answer to the FAQ Why do things behave differently under systemd?