Docker kibana http://localhost:5601/ ERR_EMPTY_RESPONSE

my local kibana is well by my config , but when i config in docker , not work.

my steps:
(1) docker pull kibana:5.1.1
(2) docker run -d kibana:5.1.1, exec int to container
(3) sudo to user kibana
(4) chown -R kibana:kibana /usr/share/kibana/optimize/
(5) /usr/share/kibana/bin/kibana-plugin install x-pack
(6) exit, docker commit this container to B image
(7) copy a config file to PWD, and edict it, append "xpack.security.enabled: false
xpack.graph.enabled: false" and rewrite elasticsearch.url
(7) docker run --name xpack-kibana -p 5601:5601 -d -v "$PWD/kibana.yml":/etc/kibana/kibana.yml kibana_x-pack:5.1.1

then,,,,,
log is very well

{"type":"log","@timestamp":"2016-12-23T08:59:31Z","tags":["status","plugin:kibana@5.1.1","info"],"pid":8,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2016-12-23T08:59:31Z","tags":["status","plugin:elasticsearch@5.1.1","info"],"pid":8,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2016-12-23T08:59:31Z","tags":["status","plugin:xpack_main@5.1.1","info"],"pid":8,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2016-12-23T08:59:31Z","tags":["status","plugin:elasticsearch@5.1.1","info"],"pid":8,"state":"green","message":"Status changed from yellow to green - Kibana index ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2016-12-23T08:59:31Z","tags":["license","info","xpack"],"pid":8,"message":"Imported license information from Elasticsearch: mode: trial | status: active | expiry date: 2017-01-19T10:08:50+00:00"}
{"type":"log","@timestamp":"2016-12-23T08:59:31Z","tags":["status","plugin:monitoring@5.1.1","info"],"pid":8,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Monitoring Health Check","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2016-12-23T08:59:31Z","tags":["status","plugin:xpack_main@5.1.1","info"],"pid":8,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2016-12-23T08:59:31Z","tags":["reporting","warning"],"pid":8,"message":"Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2016-12-23T08:59:31Z","tags":["status","plugin:reporting@5.1.1","info"],"pid":8,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2016-12-23T08:59:31Z","tags":["status","plugin:profiler@5.1.1","info"],"pid":8,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2016-12-23T08:59:33Z","tags":["status","plugin:monitoring@5.1.1","info"],"pid":8,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Monitoring Health Check"}
{"type":"log","@timestamp":"2016-12-23T08:59:33Z","tags":["status","plugin:console@5.1.1","info"],"pid":8,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2016-12-23T08:59:33Z","tags":["status","plugin:timelion@5.1.1","info"],"pid":8,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2016-12-23T08:59:33Z","tags":["listening","info"],"pid":8,"message":"Server running at http://localhost:5601"}
{"type":"log","@timestamp":"2016-12-23T08:59:33Z","tags":["status","ui settings","info"],"pid":8,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}

but http://localhost:5601/ ERR_EMPTY_RESPONSE

inside your docker image can you netstat -natp to see if kibana is listening on the port correctly ?

thank your for reply, i have solved it. i forgot config server.host: "0.0.0.0",now is very well ,thank you very much

elastic 2.x add this set, but i don't know kibana must set the same config, maybe doc should show this

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