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 displaysReading 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