Jordi Chacón
Jordi Chacón

Reputation: 1737

Error when deploying .NET Core webapp to Azure

I am a complete beginner on the .NET world trying to get my first dummy .NET Core webapp to run on Azure App Service.

The code can be found here: https://github.com/jordi-chacon/bcn_pollution

My development machine runs Ubuntu, so I am using Visual Studio Code.

I currently have my .NET Core webapp running on localhost:5000 just fine and now I want it to run on Azure App Service.

I have successfully configured Continuous Deployment on my App Service to fetch the code from Github.

Then Azure tried to deploy my webapp but it failed with the following error:

Using the following command to generate deployment script: 'azure site deploymentscript -y --no-dot-deployment -r "D:\home\site\repository" -o "D:\home\site\deployments\tools" --aspNet5 "D:\home\site\repository\project.json" --aspNet5Version "1.0.0-rc1-final" --aspNet5Runtime "CLR" --aspNet5Architecture "x86"'.
Project file path: .\project.json
Generating deployment script for ASP.NET 5 Application
Generated deployment script files
Command: "D:\home\site\deployments\tools\deploy.cmd"
Handling ASP.NET 5 Web Application deployment.
Downloading dnx-clr-win-x86.1.0.0-rc1-final from https://www.nuget.org/api/v2
Unable to download package: An exception occurred during a WebClient request.
At C:\Program Files 
(x86)\SiteExtensions\Kudu\50.41223.1987\bin\scripts\dnvm.ps1:694 char:13
+             throw "Unable to download package: {0}" -f 
$Global:downloadData.Erro ...
+             
Failed exitCode=1, command=PowerShell -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';$CmdPathFile='"D:\local\UserProfile\.dnx\temp-set-envvars.cmd"';& 'C:\Program Files (x86)\SiteExtensions\Kudu\50.41223.1987\bin\scripts\dnvm.ps1' " install 1.0.0-rc1-final -arch x86 -r CLR
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Unable to downl...Client requ 
An error has occurred during web site deployment.
   est.:String) [], RuntimeException
   + FullyQualifiedErrorId : Unable to download package: An exception occurred during a WebClient request.

Anyone knows what I am doing wrong? Thanks!

Upvotes: 0

Views: 558

Answers (1)

Xiaomin Wu
Xiaomin Wu

Reputation: 3777

I guess you are hitting not enough disk space issue. https://github.com/projectkudu/kudu/issues/1682

I tried your code, and repro the deployment failure.

when navigate to https://{site name}.scm.azurewebsites.net, i see below message

Parser Error Message: There is not enough space on the disk.

by default free site has 1 GB of disk space, but seems like it is an known issue that asp.net 5 application kind of require a lots of dependency and easily go over the limit. And they (Asp.net 5 folks) are working on addressing the issue.

walk-around is to deploy to a Basic or Standard site

Upvotes: 3

Related Questions