az webapp deploy fails with Kudu Sync error #30955
Labels
app-service-deployment
app-service-general
Auto-Assign
Auto assign by bot
Auto-Resolve
Auto resolve by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
This issue is responsible by Azure service team.
Web Apps
az webapp
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.zip
includes 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
routes
directory 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
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.
The text was updated successfully, but these errors were encountered: