-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az webapp deploy fails with Kudu Sync error #30955
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botPossible-SolutionService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Similar-IssueWeb Appsaz webappaz webappact-observability-squadapp-service-deploymentbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botPossible-SolutionService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Similar-IssueWeb Appsaz webappaz webappact-observability-squadapp-service-deploymentbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Describe the bug
Created a Linux App Service plan, using:
Having set some variables, created a Web App using:
Attempted to deploy the web app using:
The build fails, since the Python code in
app.zipincludes one or more subdirectories. After some investigation on the App Service Plan, the deployment process tries to create directories with a backslash. This does not work on Linux. The result is thatbecomes
which is a single file on Linux. The
routesdirectory is not created. If all subdirectories are removed, the deployment works. If one or more subdirectories are included, Kudu fails to create them and the deployment crashes. Kudu appears to be using a non-portable mechanism for creating directories that may work on Windows but does not work on Linux.Related command
az webapp deploy
Errors
The error message is collected by tailing the Web App log during the deployment process.
Issue script & Debug output
Too much sensitive information.
Expected behavior
The web app should deploy correctly, such that the directories that are within the .zip file are created on the App Service Plan.
Environment Summary
Additional context
When the web app is run locally or using Docker, it works as normal. It is possible to deploy it to the Linux App Service Plan using a Docker image, whereas the zip deployment fails as noted in this bug report.