Comments (31)
This also seems to be affecting Linux Web Apps.
Kudu Sync failed
\n/opt/Kudu/Scripts/starter.sh "/home/site/deployments/tools/deploy.sh"
##[error]Failed to deploy web package to App Service.
##[error]Deployment Failed with Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
from webapps-deploy.
If anyone is still getting this error, here is the solution and a desctiption of what likely caused the problem.
Before GitHub actions were a thing, we used Kudo directly from the Deployment Center of the App Service. However, becase our solution had multiple projects, we had to set a PROJECT
configuration variable so Kudo would understand which project to deploy.
Since then, we have copied our app service configuration every time we set up a new site, including the PROJECT
configuration variable. This variable is not required when using GitHub Actions, but is still used in Kudo, which is still the underlying framework for deploying your app when using azure/webapps-deploy@v2
.
With the PROJECT
configuration variable set, Kudo will add it as a parameter as visible in the log:
Using the following command to generate deployment script: 'azure site deploymentscript -y --no-dot-deployment -r "C:\local\Temp\zipdeploy\extracted" -o "C:\home\site\deployments\tools" --basic --sitePath "C:\local\Temp\zipdeploy\extracted\YOUR-PROJECT-VARIABLE"'.
In conclusion, just remove the PROJECT
configuration variable from your App Service Configuration.
from webapps-deploy.
Closing this issue as its already fixed. Let us know if you are still facing issue, we will reopen this issue.
Seems that it is still happening.....
from webapps-deploy.
UPDATE
(not a permanent solution but for input)
After updating the /site/deployments/tools/deploy.cmd file from
call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 !IGNORE_MANIFEST_PARAM! -f "%DEPLOYMENT_SOURCE%"/XXXXXX -t "%DEPLOYMENT_TARGET%" -n "%NEXT_MANIFEST_PATH%" -p "%PREVIOUS_MANIFEST_PATH%" -i ".git;.hg;.deployment;deploy.cmd"
... to (removing the project name from the deployment source)
call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 !IGNORE_MANIFEST_PARAM! -f "%DEPLOYMENT_SOURCE%"-t "%DEPLOYMENT_TARGET%" -n "%NEXT_MANIFEST_PATH%" -p "%PREVIOUS_MANIFEST_PATH%" -i ".git;.hg;.deployment;deploy.cmd"
...it seams to find the file, but says it's being used by another process:
Package deployment using ZIP Deploy initiated.
Fetching changes.
Cleaning up temp folders from previous zip deployments and extracting pushed zip file D:\local\Temp\zipdeploy\kvnzzqpr.zip (65.91 MB) to D:\local\Temp\zipdeploy\extracted
The process cannot access the file because it is being used by another process.
##[error]Failed to deploy web package to App Service.
##[error]Deployment Failed with Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
##[error]Package deployment using ZIP Deploy failed. Refer logs for more details.
from webapps-deploy.
@aksm-ms, @N-Usha do you have an update on this?
from webapps-deploy.
@wmmihaa this looks like an issue with the Kudu APIs we use in action code, not the action code itself. Will check and update.
from webapps-deploy.
@wmmihaa are you still facing this issue?
from webapps-deploy.
I have not tried again. Has anything changed?
from webapps-deploy.
@sanchitmehta Can you please take a look at this issue? cc: @N-Usha @nadesu
from webapps-deploy.
@sanchitmehta Any update?
from webapps-deploy.
@ehamai - Can you please confirm if your team could help on this? or could you please help loop in the right product owners for the APIs under question? Thanks!
from webapps-deploy.
@sanchitmehta is this something you can help with please?\
from webapps-deploy.
@aksm-ms I am also getting the almost same error. Please help me with that.
https://stackoverflow.com/questions/65528704/github-azure-webapps-deployv2-package-deployment-using-zip-deploy-failed
from webapps-deploy.
There is similar issue on kudu team and they are working on the fix projectkudu/kudu#3169
from webapps-deploy.
@rohit-patel-ce21 from your stackoverflow issue it seems that you are getting different error. please enable debugging by setting ACTIONS_STEP_DEBUG = true in secrets.
@wmmihaa as confirmed with appservice team internally they have fixed original issue Error: Could not find a part of the path
. Please let us know if you are still facing this issue
from webapps-deploy.
Closing this issue as its already fixed. Let us know if you are still facing issue, we will reopen this issue.
from webapps-deploy.
@AmrutaKawade was this fixed? I'm getting the same error:
Run azure/webapps-deploy@v2
with:
app-name: *****
slot-name: xxx
publish-profile: ***
package: C:\Users\runneradmin\AppData\Local\Microsoft\dotnet/myapp
env:
DOTNET_ROOT: C:\Users\runneradmin\AppData\Local\Microsoft\dotnet
Package deployment using ZIP Deploy initiated.
Updating submodules.
Preparing deployment for commit id '*****'.
Generating deployment script.
Using cached version of deployment script (command: 'azure -y --no-dot-deployment -r "D:\local\Temp\zipdeploy\extracted" -o "D:\home\site\deployments\tools" --basic --sitePath "D:\local\Temp\zipdeploy\extracted\*****\*****.csproj"').
Running deployment command...
Command: "D:\home\site\deployments\tools\deploy.cmd"
Handling Basic Web Site deployment.
Creating app_offline.htm
KuduSync.NET from: 'D:\local\Temp\zipdeploy\extracted\*****\*****.csproj' to: 'D:\home\site\wwwroot'
Error: Could not find a part of the path 'D:\local\Temp\zipdeploy\extracted\*****\*****.csproj'.
Failed exitCode=1, command="kudusync" -v 50 -f "D:\local\Temp\zipdeploy\extracted\*****\*****.csproj" -t "D:\home\site\wwwroot" -n "D:\home\site\deployments\*****\manifest" -p "D:\Program Files (x86)\SiteExtensions\Kudu\91.21119.4922\bin\Scripts\firstDeploymentManifest" -i ".git;.hg;.deployment;deploy.cmd"
An error has occurred during web site deployment.
Error: Could not find a part of the path 'D:\local\Temp\zipdeploy\extracted\*****\*****.csproj'.\r\nD:\Program Files (x86)\SiteExtensions\Kudu\91.21119.4922\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"
Error: Failed to deploy web package to App Service.
Error: Deployment Failed with Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
from webapps-deploy.
I get the same error. I'm using ADO Pipeline. I try to deploy a Windows FunctionApp. Interesting is that this error occurs only when I try to deploy to a slot. No issue with deploying it to production.
from webapps-deploy.
I had the same problem. The issue appeared to be caused while having the deployment open in IDE (Visual Studio 2019 latest) at the same time as Github. Attempting to deploy codebase from GitHub when I hadn't finished last details (keyvault, username/password) for publish from V.S
from webapps-deploy.
I discovered for me that I was not using the right GitHub Action template. I was using the dotnet core app vs the ASP.NET MVC template on the docs below,
https://docs.microsoft.com/en-us/azure/app-service/deploy-github-actions?tabs=applevel#aspnet
Once I updated to using the ASP.NET MVC template everything worked correctly.
from webapps-deploy.
After the MS support also couldn't help me I decided to delete the ressource and recreated it...after this it worked....
from webapps-deploy.
This error is not resolved for me.
How do I do "In conclusion, just remove the PROJECT configuration variable from your App Service Configuration."?
I am trying to deploy on Azure App service.
from webapps-deploy.
Have a look in the Configuration
of your App Service. If you have an App setting called "PROJECT", remove it. This setting was previously used if you had more than one project in your solution but is now stated in the workflow.
There has been other cases where I see this issue which tend to point to diffferenses in Bootstrap versions where it tries to remove a LICENSE directory or file (can't remember which). If you see a similar error, just remove the file/directory from the console.
HTH
from webapps-deploy.
from webapps-deploy.
Then that is not the issue for you. In GitHub, navigate to the Action
menu and click the failed workflow and the again on the failed job. Scroll down to the failed step and copy the whole error message and paste it here.
For more detailed errors, cosider to "Re-run jobs" and select "Enable debug logging".
from webapps-deploy.
from webapps-deploy.
This is not resolved for me. None of the above suggestions helped in my case. Appreciate any help on this.
I am deploying a Sentiment Analysis model created using PyTorch & BERT through Flask API. Here is my repo for your reference - https://github.com/Praveen-Sudhakar/SentimentAnalysis
from webapps-deploy.
this is the error message that I am receiving:
Error: Failed to deploy web package to App Service.
Error: Deployment Failed with Error: Error: Failed to deploy web package to App Service.
from webapps-deploy.
Run azure/webapps-deploy@v[2](myrepo)
with:
app-name: myappname
slot-name: staging
publish-profile: ***
package: .
Package deployment using ZIP Deploy initiated.
Fetching changes.
Cleaning up temp folders from previous zip deployments and extracting pushed zip file D:\local\Temp\zipdeploy\zcdcn0[3](https://github.com/trilobyte-my/recafi/actions/runs/4626638465/jobs/8184273952#step:3:3)5.zip (58.5[4](https://github.com/trilobyte-my/recafi/actions/runs/4626638465/jobs/8184273952#step:3:4) MB) to D:\local\Temp\zipdeploy\extracted
Error: Failed to deploy web package to App Service.
Error: Deployment Failed, Package deployment using ZIP Deploy failed. Refer logs for more details.
Windows App Service.
Keep stuck at here, any solution?
from webapps-deploy.
ACTIONS_STEP_DEBUG = true
SECURITY WARNING: Some packages will dump plain text ENV vars in the log. Such as azure/webapps-deploy. Be careful using this!
from webapps-deploy.
Yes, It is happening , I still fail to deploy on any slot. I have tried all possible ways.
from webapps-deploy.
Related Issues (20)
- README doesn't have a v3 example or explanation of the differences HOT 4
- Add sample(s) for OIDC HOT 1
- Azure Web App deployment from .zip fails after successfully deploying the content HOT 2
- V3 using node.js 16 upgrade to node.js 20 seeing 16 is deprecated HOT 16
- Deploy to web app does not working for .NET 8 and Linux based deployment - azure/webapps-deploy@v3 HOT 4
- Microsoft Azure Build and deploy PHP app to Azure Web App: Laravel App - Unable to create lockable file HOT 2
- Deployment Faile***, Error: Resource azwb********-tot doesn't exist. HOT 5
- The new option Clean should have defaulted to false or been highlighted as a breaking change HOT 4
- Azure Web Application not updated, action still claims "Success" HOT 9
- Can't deploy to ACA-based Function App
- Cann't show submit messages, ONLY show OneDeploy
- Parameter ''using: node20' is not supported, use 'docker', 'node12' or 'node16' instead.'
- nodes
- util_1.promisify is not a function HOT 4
- Long deployment urls are cut off for slots HOT 1
- update
- Deploying Web Apps with Sidecar Containers HOT 2
- Central Directory corrupt error when deploying zip with WEBSITE_RUN_FROM_PACKAGE = 1 on linux
- Please upgrade the SQlite version on the default Python images
- Temp files to delete
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webapps-deploy.