locked
Cannot deploy twice in Azure App Service linux RRS feed

  • Question

  • Hi,

    App is in .net core 3.1, build and published via Azure DevOps, deployed via Azure DevOps to an Azure App Service Linux. This is a self contained package targetting linux-x64.

    App deploys fine on a fresh app service.

    Second deployment fails with little details:

    2019-12-18T09:57:04.7629017Z Package deployment using ZIP Deploy initiated.
    2019-12-18T10:17:29.2425405Z Fetching changes.
    2019-12-18T10:17:30.2885868Z Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/3628dba6-c24e-4143-842e-185a26e3abaf.zip (117.81 MB) to /tmp/zipdeploy/extracted
    2019-12-18T10:17:30.2886618Z An unknown error has occurred. Check the diagnostic log for details.
    2019-12-18T10:17:30.2967444Z ##[error]Failed to deploy web package to App Service.
    2019-12-18T10:17:30.2980136Z ##[error]Error: Package deployment using ZIP Deploy failed. Refer logs for more details.

    When looking at the deployment logs:

    [{"log_time":"2019-12-18T10:17:32.6077501Z","id":"558d345c-4d53-4cba-b06e-5bbb2c2d7fe0","message":"Deployment failed.","type":2,"details_url":null}]

    What can I do to fix the situation? Thanks!

    Wednesday, December 18, 2019 11:33 AM

All replies

  • Thanks for asking question! Could you please confirm on which App Service plan you are using? Also you may check the Kudu Console to look at the files in your wwwroot folder. It lets you easily download everything in that folder as a zip file, so that you can analyze it locally.

    You may refer to might be helpful: https://github.com/projectkudu/kudu/wiki/Deployment-vs-runtime-issues

    Thursday, December 19, 2019 10:43 AM
  • Hi,

    I use a S1 App Service Plan with Linux.

    In wwwroot folder, via Kudu, I see the files deployed the first time, nothing more.

    Regards
    Francois

    Thursday, December 19, 2019 9:43 PM
  • Thanks for the response! If I have understood right on wwwroot folder, via Kudu only first deployment files are there and not Second one. If so, could you please take a look on the deployment script of Second one.

    If the issue persists you may send an email to AzCommunity[at]Microsoft[dot]com referencing this issue, we would like to work closer with you on this matter.

    Friday, December 20, 2019 7:33 AM
  • Hi,

    By 2nd deployment I mean the 2nd time I deploy a package, like a new build of the same app, using the same pipeline/scripts.

    Deployment fails with little details. See picture in first post.

    Today it is ok, I did not change anything anywhere. This is bad for confidence.

    Thanks!


    • Edited by fb33 Friday, December 20, 2019 11:35 AM typo
    Friday, December 20, 2019 11:34 AM
  • Thanks for the clarification. Request you to send an email to AzCommunity[at]Microsoft[dot]com referencing this issue, we would like to work closer with you on this matter.


    Saturday, December 21, 2019 5:48 PM