-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to deploy web package to App Service #213
Comments
I am also seeing this behaviour (this year, as it was deploying fine last year up until mid December). Only via my GitHub Actions CI/CD though. Deployment via the Azure CLI & extension in VSCode still works and is my workaround for the meantime to deploy functions. Although I still had to rollback my extension versions to get that to work lol see the accepted answer there if you need: https://learn.microsoft.com/en-us/answers/questions/1462401/azure-functions-deployment-error-number-of-entries?source=docs I have both SCM_DO_BUILD_DURING_DEPLOYMENT and ENABLE_ORYX_BUILD set to defaults (off). But turning them on made no difference. I also tried specifying minor versions of this repo to no avail. This is my log during the final step of this package execution:
EDIT: @craigomatic if it helps, my alternative was to use the webapp-deploy azure package instead, as both achieve essentially the same thing. Note: I am using a V4 function app with Here's my new GH Action .yml file:
The ZIP file gets uploaded to /data/SitePackages as a ZIP which then triggered the server to restart and copy the ZIp contents over to /site/wwwroot. My pipeline is now working fine. |
Thanks for the workaround - I will add this to the backlog, fortunately it started working again for now. |
Think this is still a problem. Trying to automate my deployments through actions today and seeing this. Works fine when manually publishing through VS. |
I almost the same error message with a minimally different stack trace, possibly just because of a newer It was because the ZIP file was too big. In my case, the # Before: deployment fails, because devDependencies are included in the ZIP
- run: |
npm ci
npm run build
- uses: Azure/functions-action@v1
# After: deployment works, because devDependencies are not included anymore
- run: |
npm ci
npm run build
npm ci --omit=dev
- uses: Azure/functions-action@v1 Here's the error message I had:
|
I'm encountering an issue while deploying my Java-based Azure Function App using GitHub Actions. The deployment fails with a 500 Internal Server Error during the ZIP Deploy step. Using RBAC for authentication, GitHub Action will perform resource validation.
Successfully acquired site configs from function app!
Detected function app sku: Dedicated
Successfully acquired app settings from function app (RBAC)!
Detected function app language: Java
Will archive ./lastfunczip/target/azure-functions/cig-loy-tx-audit into /home/runner/work/_temp/temp_web_package_36288700132132545.zip as function app content
Will use https://<scmsite>/api/zipdeploy to deploy since RBAC Azure credential is detected.
Validating deployment package for functions app before Zip Deploy (RBAC)
Package deployment using ZIP Deploy initiated.
Error: Failed to deploy web package to App Service.
Error: Execution Exception (state: PublishContent) (step: Invocation)
Error: When request Azure resource at PublishContent, zipDeploy : Failed to use /home/runner/work/_temp/temp_web_package_3628870013[21](https://github.com/MGMResorts/cig-loy-tx-audt/actions/runs/11393007866/job/31701032678#step:10:22)32545.zip as ZipDeploy content
Error: Failed to deploy web package to App Service.
Internal Server Error (CODE: 500)
Error: Error: Failed to deploy web package to App Service.
Internal Server Error (CODE: 500)
at Kudu.<anonymous> (/home/runner/work/_actions/Azure/functions-action/v1/lib/appservice-rest/Kudu/azure-app-kudu-service.js:[23](https://github.com/MGMResorts/cig-loy-tx-audt/actions/runs/11393007866/job/31701032678#step:10:24)8:41)
at Generator.next (<anonymous>)
at fulfilled (/home/runner/work/_actions/Azure/functions-action/v1/lib/appservice-rest/Kudu/azure-app-kudu-service.js:5:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Error: Deployment Failed! |
These are app specific issues, so please open a support ticket from Azure Portal if the issue still exists. |
I've started seeing these types of issue with some frequency. My GH action had been functioning earlier today and has stopped working in the past hour or so, blocking deployment with the following error in the logs:
Some of the jobs I have retried a few times and of those, some were then successful.
Not sure if there is a better place to report this?
The text was updated successfully, but these errors were encountered: