Elastic Search can't setup password for Kibana

[2019-08-14T10:10:58,751][INFO ][o.e.n.Node               ] [DESKTOP-6CO7VPM] started
[2019-08-14T10:11:01,696][INFO ][o.e.c.r.a.AllocationService] [DESKTOP-6CO7VPM] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.kibana_task_manager][0]] ...]).
[2019-08-14T10:11:08,325][INFO ][o.e.c.m.MetaDataCreateIndexService] [DESKTOP-6CO7VPM] [.monitoring-es-7-2019.08.14] creating index, cause [auto(bulk api)], templates [.monitoring-es], shards [1]/[0], mappings [_doc]
[2019-08-14T10:56:42,064][INFO ][o.e.n.Node               ] [DESKTOP-6CO7VPM] stopping ...
[2019-08-14T10:56:42,119][INFO ][o.e.x.w.WatcherService   ] [DESKTOP-6CO7VPM] stopping watch service, reason [shutdown initiated]
[2019-08-14T10:56:42,152][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [DESKTOP-6CO7VPM] [controller/16552] [Main.cc@150] Ml controller exiting
[2019-08-14T10:56:42,157][INFO ][o.e.x.m.p.NativeController] [DESKTOP-6CO7VPM] Native controller process has stopped - no new native processes can be started
[2019-08-14T10:56:43,165][INFO ][o.e.n.Node               ] [DESKTOP-6CO7VPM] stopped
[2019-08-14T10:56:43,166][INFO ][o.e.n.Node               ] [DESKTOP-6CO7VPM] closing ...
[2019-08-14T10:56:43,194][INFO ][o.e.n.Node               ] [DESKTOP-6CO7VPM] closed

Your node started at 10:10:58 and then stopped at 10:56:42.

Given your error above :

Connection failure to: http://127.0.0.1:9200/_security/_authenticate?pretty failed: Connection refused: connect
ERROR: Failed to connect to elasticsearch at http://127.0.0.1:9200/_security/_authenticate?pretty. Is the URL correct and elasticsearch running?

it looks like you ran the command after 10:56:42 when elasticsearch was already stopped. Is this the case?

p.s note that this is not the error message that you originally reported getting.

1 Like