Kibana in docker not returning http body to windows

I am running a Docker Swarm with one Linux host and one Windows host. I have created a network across the two hosts and am running ElasticSearch and Kibana on the Linux host and nginx on the Window host.

I am having an issue where in nginx all requests to /app/kibana are hanging and I have no idea why

Here is what I have discovered so far...

  • Running curl http://kibana:5601 in the elasticsearch container returns the redirect to /app/kibana
  • Running Invoke-WebRequest -UseBasicParsing -Uri http://kibana:5601 in the nginx container returns the redirect to /app/kibana
  • Running curl http://kibana:5601/app/kibana in the elasticsearch container returns a bunch of html

All good so far...

  • Running Invoke-WebRequest -UseBasicParsing -Uri http://kibana:5601/app/kibana in the nginx container just displays Reading response stream... (Number of bytes read: 0) until it times out

How can it not return a response but only to windows and only for that address?

Looking at the Kibana log I can see that it thinks the request has succeeded

{"type":"response","@timestamp":"2017-06-18T17:32:43Z","tags":[],"pid":1,"method":"get","statusCode":200,"req":{"url":"/app/kibana","method":"get","headers":{"user-agent":"Mozilla/5.0 (Windows NT; Windows NT 10.0; en-US) WindowsPowerShell/5.1.14393.1198","host":"kibana:5601"},"remoteAddress":"172.30.0.11","userAgent":"172.30.0.11"},"res":{"statusCode":200,"responseTime":11,"contentLength":9},"message":"GET /app/kibana 200 11ms - 9.0B"}

  • Running Invoke-WebRequest -UseBasicParsing -Uri http://kibana:5601/app/kibana -Method Head to just get the headers, works without any problem and gives a 200 reponse

Hi Michael,

What version of Kibana and Elasticsearch are you running?

This is an interesting set up. I think most people would run Elasticsearch in one Docker container and Kibana with nginx together in another container. The object is usually to have Kibana configured to only listen on localhost and nginx to be a proxy to the outside world.

Have you tried running nginx in the same container as Kibana just as an intermediate step? That would eliminate any docker networking issues.

Can you post your nginx config and your kibana.yml changes? Maybe something like
grep -v "^#" /etc/kibana/kibana.yml to just get the interesting parts?

Thanks,
Lee

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