Login is currently dissabled. Administrator should consult the Kibana Log

I'M unable to start Kibana. The Main pages display "Login Is currently Disable. Administrator should consult kibana log".
The setup is installed with X-pack.
I have disable the security in Elasticsearch.yml and Kibana.yml. Below is my yml file.

elasticsearch.yml under /etc/elasticsearch
< cluster.name: elasticsearch
node.name: POCdata-0
path.logs: /var/log/elasticsearch
path.data: /datadisks/disk1/elasticsearch/data
discovery.zen.ping.unicast.hosts: ["POCdata-0:9300","POCdata-1:9300","POCdata-2:9300"]
node.master: true
node.data: true
discovery.zen.minimum_master_nodes: 2
network.host: [site, local]
node.max_local_storage_nodes: 1
bootstrap.memory_lock: true
xpack.security.enabled: false />

and when I run curl 'http://localhost:9200/', it gives response status as 401, even after restarting the service ( sudo service elasticsearch restart)
{"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication token for REST request [/]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}}],"type":"security_exception","reason":"missing authentication token for REST request [/]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}},"status":401}

Do I need to disable security, in any other place?

Kibana.yml under /etc/kibana

elasticsearch.url: "http://POCdata-0:9200"
server.host: 10.0.0.5
server.port: 5601
logging.dest: /var/log/kibana.log
logging.silent: false
elasticsearch.username: elastic
elasticsearch.password: '*********'
#xpack.security.encryptionKey: "teit9eishem7jah5eveed3oh3choog9Fo3iavii0acichoo4Iejath7ao1ohw6xe"
#xpack.reporting.encryptionKey: "Agh6ku7Pahcicae3We7vuShoChicu2thei0hahqu1vohTeyah7gah3VishooNebu"
logging.dest: /var/log/kibana.log
xpack.security.enabled: false
xpack.monitoring.elasticsearch.username: kibana
xpack.monitoring.elasticsearch.password : '*********'

And when I run the cmd - curl -u kibana:'********' 'http://10.0.0.5:5601'
out put is -
/
Script tag.
var hashRoute = '/app/kibana';
var defaultRoute = '/app/kibana';

var hash = window.location.hash;
if (hash.length) {
window.location = hashRoute + hash;
} else {
Not sure where it is trying to
window.location = defaultRoute;
}
*/

Did toi disable security in elasticsearch as well?

Yes. I did.
elasticsearch.yml

node.name: POCdata-0
path.logs: /var/log/elasticsearch
path.data: /datadisks/disk1/elasticsearch/data
discovery.zen.ping.unicast.hosts: ["POCdata-0:9300","POCdata-1:9300","POCdata-2:9300"]
node.master: true
node.data: true
discovery.zen.minimum_master_nodes: 2
network.host: [site, local]
node.max_local_storage_nodes: 1
bootstrap.memory_lock: true
xpack.security.enabled: false

What gives:

curl POCdata-0:9200
curl POCdata-1:9200
curl POCdata-2:9200

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