Kibana service does not start with no error message (while /usr/share/bin/kibana/kibana does not have any problem)

Hello,

This morning my kibana service worked well but now without any apparent reason it stopped working, and no error message nor logs (path log is configured already) abd the error code that returns the command is 0 so apparently everything is well.

When I try to launch kibana service with:

sudo systemctl start kibana.service

When I check the status it tells me it's not running, and if I check with

ps -ef |grep kibana 

nothing is there

This command was perfectly working this morning and days before.
What is weird is that if I launch :

/usr/share/kibana/bin/kibana

It works perfectly.

I did not change anything in:

/etc/systemd/system/kibana.service

The action I've made before it starts to stop working:

  • In elasticsearch.yml I uncommented the line :

    xpack.security.enabled: true
    xpack.security.transport.ssl.enabled: true
    xpack.security.transport.ssl.verification_mode: certificate
    xpack.security.transport.ssl.keystore.path: config/elastic-certificates.p12
    xpack.security.transport.ssl.truststore.path: config/elastic-certificates.p12
    
  • Then I uncommented in kibana.yml (and change the value ofc)

    elasticsearch.username: "user"
    elasticsearch.password: "pass"
    

I restarted elasticsearch and kibana

After that it was still working, then I change password on kibana.yml, restarted kibana and it was over, the service couldn't work, then i Undo my modification on elasticsearch.yml and on kibana.yml and the problem was still here

my kibana.yml looks like that:

server.host: "192.168.14.200"
elasticsearch.hosts: ["http://192.168.14.200:9200"]
pid.file: /var/log/kibana/kibana.log

Thanks for your time!

Can you provide the kibana logs for the failed start up

That's part of the problem no logs are produced (I configured it but nothing happens) and when I launch it with

/usr/share/kibana/bin/kibana

Logs are produced.

I just don't have any information produced

Ok I've find it.

by making copy of the kibana.yml and changing from kibana.yml.old to kibana.yml, The right changed and the user kibana was not allowed to read kibana.yml

I juts did a chmod and everythong went well