5
votes

I'm deploying the Linux based ASP.NET core app using Azure Web App, exactly same thing follow which mention in this blog post.

But when i accessing the hosted URL getting error - Service Unavailable

Not sure what is causing the issue to run application.

Here is log info which i get from kudu services.

2018-01-04 12:20:05.716 ERROR - Container dotnetlinuxapp_1 for site dotnetlinuxapp has exited, failing site start 2018-01-04 12:20:18.304 INFO - Starting container for site 2018-01-04 12:20:18.305 INFO - docker run -d -p 24936:8080 --name dotnetlinuxapp_1 -e WEBSITE_SITE_NAME=DotNetLinuxApp -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_INSTANCE_ID=fdcd5b5339be6bb353a84764edb2155ae6bb8d934d2d889b883ef65bcb729a44 -e HTTP_LOGGING_ENABLED=1 appsvc/dotnetcore:1.1.2_1709181723 /home/site/wwwroot/Meetup.Web.dll 2018-01-04 12:20:19.646 ERROR - Container dotnetlinuxapp_1 for site dotnetlinuxapp has exited, failing site start

1
Sounds like there's something wrong with the docker image. Not enough here to diagnose, though.Chris Pratt
@ChrisPratt, this is how i set the path for docker container in Webapp - pasteboard.co/H1nexaM.png and rest will manage by webappJatin Parmar
Have you checked this similar issue?Bruce Chen

1 Answers

5
votes

I have reviewed your issue and found that you are referring blog have not latest information and cause of that you are facing this issue.

Please append "dotnet " in starting of text which you are entering into startup file. "dotnet" it will take as command. so your startup file become like...

dotnet /home/site/wwwroot/{yourDLLName}.dll

enter image description here

Definitely it will resolve your issue, Cheers !

Hope This Helps !