Login is currently disabled. Administrators should consult the Kibana logs for more details

Hello, after installed x-pack in elasticsearch and kibana, I start both. And I arrived on this error

.

There is kibana's logs.

log [11:13:58.020] [info][status][plugin:kibana@6.1.3] Status changed from uninitialized to green - Ready log [11:13:58.052] [info][status][plugin:elasticsearch@6.1.3] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:13:58.070] [info][status][plugin:xpack_main@6.1.3] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:13:58.076] [info][status][plugin:graph@6.1.3] Status changed from uninitialized to yellow - Waiting for Elasticsearch log [11:13:58.083] [error][status][plugin:xpack_main@6.1.3] Status changed from yellow to red - Authentication Exception log [11:13:58.084] [error][status][plugin:graph@6.1.3] Status changed from yellow to red - Authentication Exception log [11:13:58.084] [error][status][plugin:elasticsearch@6.1.3] Status changed from yellow to red - Authentication Exception log [11:13:58.090] [info][status][plugin:monitoring@6.1.3] Status changed from uninitialized to green - Ready log [11:13:58.101] [warning][license][xpack] License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. [security_exception] missing authentication token for REST request [/_xpack], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } } :: {"path":"/_xpack","statusCode":401,"response":"{\"error\":{\"root_cause\":[{\"type\":\"security_exception\",\"reason\":\"missing authentication token for REST request [/_xpack]\",\"header\":{\"WWW-Authenticate\":\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"}}],\"type\":\"security_exception\",\"reason\":\"missing authentication token for REST request [/_xpack]\",\"header\":{\"WWW-Authenticate\":\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"}},\"status\":401}","wwwAuthenticateDirective":"Basic realm=\"security\" charset=\"UTF-8\""} log [11:13:58.102] [error][status][plugin:xpack_main@6.1.3] Status changed from red to red - [security_exception] missing authentication token for REST request [/_xpack], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } } log [11:13:58.102] [error][status][plugin:graph@6.1.3] Status changed from red to red - [security_exception] missing authentication token for REST request [/_xpack], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } } log [11:14:00.299] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml log [11:14:00.303] [error][status][plugin:reporting@6.1.3] Status changed from uninitialized to red - [security_exception] missing authentication token for REST request [/_xpack], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } } log [11:14:00.328] [error][status][plugin:security@6.1.3] Status changed from uninitialized to red - [security_exception] missing authentication token for REST request [/_xpack], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } } log [11:14:00.330] [warning][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml log [11:14:00.334] [warning][security] Session cookies will be transmitted over insecure connections. This is not recommended. log [11:14:00.355] [error][status][plugin:searchprofiler@6.1.3] Status changed from uninitialized to red - [security_exception] missing authentication token for REST request [/_xpack], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } } log [11:14:00.359] [error][status][plugin:ml@6.1.3] Status changed from uninitialized to red - [security_exception] missing authentication token for REST request [/_xpack], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } } log [11:14:00.389] [error][status][plugin:tilemap@6.1.3] Status changed from uninitialized to red - [security_exception] missing authentication token for REST request [/_xpack], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } } log [11:14:00.391] [error][status][plugin:watcher@6.1.3] Status changed from uninitialized to red - [security_exception] missing authentication token for REST request [/_xpack], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } } log [11:14:00.407] [info][status][plugin:grokdebugger@6.1.3] Status changed from uninitialized to green - Ready log [11:14:00.411] [info][status][plugin:dashboard_mode@6.1.3] Status changed from uninitialized to green - Ready log [11:14:00.418] [error][status][plugin:logstash@6.1.3] Status changed from uninitialized to red - [security_exception] missing authentication token for REST request [/_xpack], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } } log [11:14:00.438] [info][status][plugin:apm@6.1.3] Status changed from uninitialized to green - Ready log [11:14:00.441] [info][status][plugin:license_management@6.1.3] Status changed from uninitialized to green - Ready log [11:14:00.445] [info][status][plugin:console@6.1.3] Status changed from uninitialized to green - Ready log [11:14:00.455] [info][status][plugin:metrics@6.1.3] Status changed from uninitialized to green - Ready log [11:14:00.575] [info][status][plugin:timelion@6.1.3] Status changed from uninitialized to green - Ready log [11:14:00.580] [info][listening] Server running at http://localhost:5601 log [11:14:28.119] [warning][license][xpack] License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. [security_exception] missing authentication token for REST request [/_xpack], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } } :: {"path":"/_xpack","statusCode":401,"response":"{\"error\":{\"root_cause\":[{\"type\":\"security_exception\",\"reason\":\"missing authentication token for REST request [/_xpack]\",\"header\":{\"WWW-Authenticate\":\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"}}],\"type\":\"security_exception\",\"reason\":\"missing authentication token for REST request [/_xpack]\",\"header\":{\"WWW-Authenticate\":\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"}},\"status\":401}","wwwAuthenticateDirective":"Basic realm=\"security\" charset=\"UTF-8\""}
Could someone help me?
Thanks

hi @Phoeniciak,

Can you tell me you are using localhost or clustering mean you have give ip addresses to your elasticsearch kibana and logstash ?

if you have given ip then can you change in kibana.yml file ?

I'm using localhost

The solution is to delete the # before #xpack.security.enable

In which file, kibana.yml or elasticsearch.yml?

In both

Was it by default set to true or false?

Would be great to know if this got solved. Having the same issue after uninstalling x-pack (a long time ago) and now re-installing. Cannot set any passwords with command line or APIs

1 Like

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