Can't disable security

If I set (in elasticsearch.yml and kibana.yml):
xpack.security.enabled: false
than call
sudo service elasticsearch restart
sudo service elasticsearch status

sudo service kibana restart
sudo service kibana status

and dont work url http://localhost:5601/

If I set true for xpack.security.enabled (in elasticsearch.yml and kibana.yml):
image
image

We see that for kibana other screen, and url http://localhost:5601/ is work
image

What am I doing wrong?

ES+Kibana
Version: 5.5.1

2 Likes

Please provide your configuration files and the relevant sections of your log files (as text not screenshots). It's impossible for us to know what is wrong based on a single browser error.

Hi Tim
Log from Kibana:

{"type":"log","@timestamp":"2017-08-05T07:39:59Z","tags":["fatal"],"pid":29620,"level":"fatal","message":"EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'","error":{"message":"EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'","name":"Error","stack":"Error: EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'\n    at Error (native)","code":"EACCES"}}
{"type":"log","@timestamp":"2017-08-05T07:40:03Z","tags":["fatal"],"pid":29632,"level":"fatal","message":"EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'","error":{"message":"EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'","name":"Error","stack":"Error: EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'\n    at Error (native)","code":"EACCES"}}

Elasticsearch answer:

    {
      "name" : "cAAJzVx",
      "cluster_name" : "elasticsearch",
      "cluster_uuid" : "xWOhO3aZRMC8wxpcmWmpsQ",
      "version" : {
        "number" : "5.5.1",
        "build_hash" : "19c13d0",
        "build_date" : "2017-07-18T20:44:24.823Z",
        "build_snapshot" : false,
        "lucene_version" : "6.6.0"
      },
      "tagline" : "You Know, for Search"
    }

permission:
for /usr/share/kibana
image
for internal folders in /usr/share/kibana
image

I looked at the forums but I do not understand how to treat it. It seems the rights are set correctly.

Fix it:
sudo -i chown -R kibana:kibana /usr/share/kibana/optimize/bundles

3 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.