Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Deployment with azure/webapps-deploy@v3 Fails to Update Code in App Service #449

Open

Description

@carson-nr

Description

When using azure/webapps-deploy@v3 in a GitHub Actions workflow file (auto-generated by Azure when configuring an App Service to receive deployments from a specific branch), the initial deployment succeeds as expected, updating the code in the App Service. However, subsequent deployments exhibit the following issues:

  1. The workflow run completes successfully according to both GitHub Actions and the Azure Deployment logs.
  2. The reported runtime for subsequent deployments is approximately one-third of the initial deployment time.
  3. Despite the success indications, the code in the App Service is not updated. This can be verified by examining the App Service editor, which shows the old code.

Downgrading the action to azure/webapps-deploy@v2 resolves the issue. After downgrading, multiple deployments can be triggered successfully, and the code changes are correctly applied to the App Service.

Deleting the deployment connection from the Azure side and then recreating it also temporarily resolves the issue. The deployment will succeed on the first push after recreating the connection, but subsequent pushes fail to update the app code.

Environment Details

  • App Service Type: Node.js
  • Issue Onset: Began within the past 24 hours
  • Generated Workflow File: Created automatically by Azure when configuring deployment from a GitHub branch

Steps to Reproduce

  1. Configure an Azure App Service to deploy from a GitHub repository branch.
  2. Use the auto-generated workflow, which specifies azure/webapps-deploy@v3.
  3. Push changes to the specified branch to trigger a deployment.
  4. Verify that the initial deployment succeeds and updates the App Service code.
  5. Push subsequent changes to the branch to trigger another deployment.
  6. Observe that the workflow reports success, but the App Service code is not updated.

Workaround

  • Downgrade the action to azure/webapps-deploy@v2 in the workflow file.

  • Alternatively, delete the deployment connection in Azure and recreate it. Note that this resolves the issue temporarily, with the deployment succeeding on the first push only.

Expected Behavior

  • Each deployment, whether initial or subsequent, should correctly update the code in the App Service.

Actual Behavior

  • Only the initial deployment updates the code. Subsequent deployments report success but fail to apply code changes.

Additional Information

  • This issue appears to have started recently, suggesting a possible regression or change in azure/webapps-deploy@v3.
  • Logs from both GitHub Actions and Azure Deployment indicate success, despite the code not being updated.

Request

Please investigate this issue and provide a resolution or guidance. If additional information or testing is required, I’m happy to assist.

Activity

  1. ShilpiRachna1 commented on Feb 25, 2025

    @ShilpiRachna1
    Contributor

    Can you please share the app name?

  2. davidm-glitch commented on Mar 3, 2025

    @davidm-glitch

    Hello,
    I am facing the same issue with v3.

    This is my Github Action

    -  name: 'Deploy to Azure WebApp'
        uses: azure/webapps-deploy@v3
        with:
            app-name: ${{ vars.AZURE_WEBAPP_NAME }}
            publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
            package: '.'
            target-path: '/site/wwwroot/v2'
            clean: false
            restart: false
    

    The Output from the Action is this:

    Package deployment using OneDeploy initiated.
    {
      id: '0050d1b[2](***#step:9:2)-4729-486d-bf19-2a159[3](***#step:9:3)0aaf35',
      status: [4](***/actions/runs/13628466756/job/38090883845#step:9:4),
      status_text: '',
      author_email: 'N/A',
      author: 'N/A',
      deployer: 'OneDeploy',
      message: 'OneDeploy',
      progress: '',
      received_time: '202[5](***/job/38090883845#step:9:5)-03-02T12:01:39.9144454Z',
      start_time: '2025-03-02T12:01:41.[6](***/job/38090883845#step:9:6)32205Z',
      end_time: '2025-03-02T12:08:51.[7](***/job/38090883845#step:9:7)51652Z',
      last_success_end_time: '2025-03-02T12:0[8](***/job/38090883845#step:9:8):51.751652Z',
      complete: true,
      active: true,
      is_temp: false,
      is_readonly: true,
      url: 'https://***-dev.scm.azurewebsites.net/api/deployments/0050d1b2-472[9](***#step:9:9)-486d-bf19-2a15930aaf35',
      log_url: 'https://***-dev.scm.azurewebsites.net/api/deployments/0050d1b2-4729-486d-bf19-2a15930aaf35/log',
      site_name: '***-dev',
      build_summary: { errors: [], warnings: [] }
    }
    Deploy logs can be viewed at https://***-dev.scm.azurewebsites.net/api/deployments/0050d1b2-4729-486d-bf19-2a[15](***/job/38090883845#step:9:16)930aaf35/log
    Successfully deployed web package to App Service.
    App Service Application URL: https://***-dev.azurewebsites.net
    

    It says that the deployment was successful. This is indeed right, because the given deployment ID is the same every time and the deploy with this ID was succesfull (the first one). Everytime I trigger the action it gehts the same deployment ID but there are no changes to the files on the server.
    Also no new Logs in the azure deployment center.

  3. bradyclifford commented on Apr 2, 2025

    @bradyclifford

    It seems to however not be a problem with az webapp deploy.

    Relates to #404

  4. timlaughlin commented on May 23, 2025

    @timlaughlin

    I didn't realize this might be specific to Umbraco but definitely having this same issue with new workflow files generated in the azure portal.

  5. carson-nr commented on Apr 4, 2026

    @carson-nr
    Author

    I think this might be a race condition with how "latest" gets resolved during polling.

    The 202 response from /api/publish?async=true sets the Location header to /api/deployments/latest instead of a unique deployment ID. OneDeploy saves the artifact inside the deployment lock but releases it before the deployment record is created. If the client polls before that record exists, the server finds no in-progress deployment and returns the previous successful one. The client sees SUCCESS and exits.

    v2 avoids this because ZipDeploy creates the deployment record while still holding the lock. az webapp deploy avoids it because the ARM proxy assigns a unique DeploymentTrackingId instead of relying on "latest."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions