-
Notifications
You must be signed in to change notification settings - Fork 523
Kestrel fails to respond when used with HAProxy #734
Comments
Are you using mono? |
Im using the official microsoft/aspnet docker image as my base, so no (unless there is some dnx mono magic that I havent understood yet?) FROM microsoft/aspnet
ADD . /app
WORKDIR /app
RUN dnu restore
EXPOSE 5000/tcp
ENTRYPOINT ["dnx", "web", "--server.urls", "http://0.0.0.0:5000"] (The image exists at https://hub.docker.com/r/rogeralsing/aspnetcoredemo/ |
I found similar questions regarding HAProxy and Netty. Can this be the same problem they saw in Netty?
|
Same thing in NGINX, it's already fixed, but there's been no release containing the fix. |
@paralin I think your right that this is the same issue. @rogeralsing Can you try enabling HAProxy's http-keep-alive option or using the nightly packages from the https://www.myget.org/F/aspnetcidev/api/v3/index.json NuGet feed? Doing either should fix the issue. Note: The Microsoft.AspNet.* packages have been renamed to Microsoft.AspNetCore.*. |
Thanks, are there any pointers to how to set VS.NET up to use the new nuget feed? |
@rogeralsing I used the haproxy image that tutum (no docker) created when I hit the same issue. It is a haproxy cfg setting / config somewhere that is beyond what I could find documented. But this docker image fixed it for me. https://github.com/tutumcloud/haproxy Here is my post: http://www.tattoocoder.com/legion-of-heroes-haproxy-nginx-angular2-aspnetcore-redis-docker/ |
@rogeralsing Running the rc2 with dnx might not work atm. @davidfowl might know better. If you want to use rc2 bits, you probably are going to need to use the same version of the dotnet cli we're using to build rc2. Currently that's 1.0.0-beta-002279, but that can change daily. It might be easier to continue using rc1 for now and enabling the http-keepalive option if that works. |
@rogeralsing You can find the current CLI versions we're using for each OS in the |
I'm still seeing this in RC2 |
@mikeharder Yes :) |
I am trying to use Asp.NET Core with Rancher Lab's docker orchestration.
If I just deploy my dockerised asp.net core container in my rancher cluster, everything works fine.
The service responds as expected.
But, if I add a Rancher load balancer (HA Proxy) infront of it.
I get the following errors when processing requests.
The request eventually goes through, but takes several seconds and there are multiple errors appearing in the logs before it goes through, so my guess is that HaProxy retries and retries untill it succeeds... but the question then is why does it fail in the first place?
Placing the same predefined balancer infront of any other web service works fine.
e.g. any of my Go lang services.
So my guess is that the problem in Kestrel
The text was updated successfully, but these errors were encountered: