Azure/app-service-linux-docs

No response from server Early Access .NET 5 web-api with linux runtime

Closed this issue · 1 comments

Hi!

My team tried to deploy a close to "dotnet new webapi" Azure webapp by using the deployment center and wizard for github actions workflow. The deployment got green lights across the board, but the app does not respond to requests at all.

To my understanding will the "early access .NET 5" run our app in docker when we have specified ubuntu-latest.
Checking the logs in kudu I can see that the docker container has started and is "ready to serve requests".

2021-01-12T10:35:10.992Z INFO - f6bb7f26fd80 Pull complete
2021-01-12T10:35:12.205Z INFO - Digest: sha256:
2021-01-12T10:35:12.205Z INFO - Status: Downloaded newer image for mcr.microsoft.com/appsvc/dotnetcore:5.0_20201109.1
2021-01-12T10:35:12.289Z INFO - Pull Image successful, Time taken: 2 Minutes and 27 Seconds
2021-01-12T10:35:13.325Z INFO - Starting container for site
2021-01-12T10:35:13.325Z INFO - docker run -d -p 4117:8080 --name dev-XXX-api_0_394a7adf -e WEBSITE_SITE_NAME=dev-XXX-api -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=dev-XXX-api.azurewebsites.net -e WEBSITE_INSTANCE_ID=appsvc/dotnetcore:5.0_20201109.1

2021-01-12T10:35:13.325Z INFO - Logging is not enabled for this container.
Please use https://aka.ms/linux-diagnostics to enable logging to see container logs here.
2021-01-12T10:35:27.608Z INFO - Initiating warmup request to container dev-XXX-api_0_394a7adf for site dev-XXX-api
2021-01-12T10:35:39.253Z INFO - Container dev-XXX-api_0_394a7adf for site dev-XXX-api initialized successfully and is ready to serve requests.
2021-01-12T10:54:48.711Z INFO - 5.0_20201109.1 Pulling from appsvc/dotnetcore
2021-01-12T10:54:48.712Z INFO - Digest: sha256:
2021-01-12T10:54:48.713Z INFO - Status: Image is up to date for mcr.microsoft.com/appsvc/dotnetcore:5.0_20201109.1
2021-01-12T10:54:48.719Z INFO - Pull Image successful, Time taken: 0 Minutes and 0 Seconds
2021-01-12T10:54:48.962Z INFO - Starting container for site
2021-01-12T10:54:48.962Z INFO - docker run -d -p 8432:8080 --name dev-XXX-api_1_43f6e08b -e WEBSITE_SITE_NAME=dev-XXX-api -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=dev-XXX-api.azurewebsites.net -e WEBSITE_INSTANCE_ID= appsvc/dotnetcore:5.0_20201109.1

2021-01-12T10:54:48.963Z INFO - Logging is not enabled for this container.
Please use https://aka.ms/linux-diagnostics to enable logging to see container logs here.
2021-01-12T10:54:53.098Z INFO - Initiating warmup request to container dev-XXX-api_1_43f6e08b for site dev-XXX-api
2021-01-12T10:55:03.484Z INFO - Container dev-XXX-api_1_43f6e08b for site dev-XXX-api initialized successfully and is ready to serve requests.

The webapp seems to receive the incoming requests. We have configured application insights in startup.cs and the request are registered in AI. But all requests are responded with 404 according to AI. From the browser perspective it seems more like a request timeout.

What more can we look for to identify the problem?

Our swagger init in startup.cs was enclosed in the isDevelopment enclosure. 😅 The deployment is ofc set to Release.
And we where not smart enough to test the actual controller endpoints. 🤦‍♂️