Giter VIP home page Giter VIP logo

Comments (31)

MrThePlague avatar MrThePlague commented on September 17, 2024 6

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.

wmmihaa avatar wmmihaa commented on September 17, 2024 6

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.

VasilisZenergi avatar VasilisZenergi commented on September 17, 2024 1

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.

wmmihaa avatar wmmihaa commented on September 17, 2024

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.

wmmihaa avatar wmmihaa commented on September 17, 2024

@aksm-ms, @N-Usha do you have an update on this?

from webapps-deploy.

aksm-ms avatar aksm-ms commented on September 17, 2024

@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.

aksm-ms avatar aksm-ms commented on September 17, 2024

@wmmihaa are you still facing this issue?

from webapps-deploy.

wmmihaa avatar wmmihaa commented on September 17, 2024

I have not tried again. Has anything changed?

from webapps-deploy.

aksm-ms avatar aksm-ms commented on September 17, 2024

@sanchitmehta Can you please take a look at this issue? cc: @N-Usha @nadesu

from webapps-deploy.

aksm-ms avatar aksm-ms commented on September 17, 2024

@sanchitmehta Any update?

from webapps-deploy.

N-Usha avatar N-Usha commented on September 17, 2024

@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.

ehamai avatar ehamai commented on September 17, 2024

@sanchitmehta is this something you can help with please?\

from webapps-deploy.

rohit-patel-ce21 avatar rohit-patel-ce21 commented on September 17, 2024

@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.

AmrutaKawade avatar AmrutaKawade commented on September 17, 2024

There is similar issue on kudu team and they are working on the fix projectkudu/kudu#3169

from webapps-deploy.

AmrutaKawade avatar AmrutaKawade commented on September 17, 2024

@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.

AmrutaKawade avatar AmrutaKawade commented on September 17, 2024

Closing this issue as its already fixed. Let us know if you are still facing issue, we will reopen this issue.

from webapps-deploy.

vonbv avatar vonbv commented on September 17, 2024

@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.

MalteToenjes avatar MalteToenjes commented on September 17, 2024

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.

willdave865 avatar willdave865 commented on September 17, 2024

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.

SteveWinward avatar SteveWinward commented on September 17, 2024

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.

MalteToenjes avatar MalteToenjes commented on September 17, 2024

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.

Dr-Abishek avatar Dr-Abishek commented on September 17, 2024

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.

wmmihaa avatar wmmihaa commented on September 17, 2024

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.

Dr-Abishek avatar Dr-Abishek commented on September 17, 2024

from webapps-deploy.

wmmihaa avatar wmmihaa commented on September 17, 2024

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.

Dr-Abishek avatar Dr-Abishek commented on September 17, 2024

from webapps-deploy.

Praveen-Sudhakar avatar Praveen-Sudhakar commented on September 17, 2024

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.

ZahidSafi avatar ZahidSafi commented on September 17, 2024

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.

DoubleTime avatar DoubleTime commented on September 17, 2024
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.

NoCopy avatar NoCopy commented on September 17, 2024

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.

assilabdulrahim avatar assilabdulrahim commented on September 17, 2024

Yes, It is happening , I still fail to deploy on any slot. I have tried all possible ways.

from webapps-deploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.