-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Unreliable Zip Deploy #8522
Comments
We are getting in touch with the Azure App service team to find the root cause for this issue. Will keep this thread updated accordingly. |
@jdadojr CAn you share detailed logs at RM_Customer_Queries@microsoft.com for further investigation. |
Hello everyone, any update regarding this issue. I have the same error! In advance, thanks! |
@sofipacifico CAn you share detailed logs at RM_Customer_Queries@microsoft.com |
Looks like it is solved |
We are working on making these calls more reliable. Closing the issue now, please fell free to re-open if failure is seen again. |
Hello, I am still having problem: 2019-02-21T13:24:00.7162377Z ##[section]Starting: Deploy Azure App Service |
Just FYI - I was having same problem with tomcat runtime. Java SE runtime works tho. |
Same problem on Node 10.14 deployment. Right now my solution is to do the npm install and build in post-deployment script.
|
@AltarBeastiful , Can you post the issue here for Zip deploy failures? |
Nevermind, tried again and it worked. Will post error on the correct repo if it happens again. |
It hapened again on different files of then node_modules, |
same problem here |
Troubleshooting
Text logs below
Environment
Server - Azure Release Pipelines
Agent - Private:
Issue Description
Unreliable Release Zip Deployment
Task logs
1st Try
2018-10-08T16:51:55.5416494Z ##[section]Starting: Azure App Service Deploy: apiTfcAppSvr
2018-10-08T16:51:55.5425184Z ==============================================================================
2018-10-08T16:51:55.5425297Z Task : Azure App Service Deploy
2018-10-08T16:51:55.5425447Z Description : Update Azure App Services on Windows, Web App on Linux with built-in images or Docker containers, ASP.NET, .NET Core, PHP, Python or Node.js based Web applications, Function Apps, Mobile Apps, API applications, Web Jobs using Web Deploy / Kudu REST APIs
2018-10-08T16:51:55.5425590Z Version : 3.4.10
2018-10-08T16:51:55.5425656Z Author : Microsoft Corporation
2018-10-08T16:51:55.5425749Z Help : More information
2018-10-08T16:51:55.5425851Z ==============================================================================
2018-10-08T16:51:55.9924165Z Got connection details for Azure App Service:'apiTfcAppSvr'
2018-10-08T16:51:57.6759705Z Package deployment using ZIP Deploy initiated.
2018-10-08T16:56:24.8137440Z Updating submodules.
2018-10-08T16:56:24.8138480Z Preparing deployment for commit id '0cb04468b2'.
2018-10-08T16:56:24.8138897Z Generating deployment script.
2018-10-08T16:56:25.4741472Z Using cached version of deployment script (command: 'azure -y --no-dot-deployment -r "/tmp/zipdeploy/extracted" -o "/home/site/deployments/tools" --basic --sitePath "/tmp/zipdeploy/extracted"').
2018-10-08T16:56:25.4742732Z Running deployment command...
2018-10-08T16:56:25.9427622Z Command: "/home/site/deployments/tools/deploy.sh"
2018-10-08T16:56:25.9428389Z Handling Basic Web Site deployment.
2018-10-08T16:56:25.9429061Z Kudu sync from: '/tmp/zipdeploy/extracted' to: '/home/site/wwwroot'
2018-10-08T16:56:25.9429431Z Ignoring: .git
2018-10-08T16:56:25.9430021Z Copying file: 'node_modules/.bin/json2yaml'
2018-10-08T16:56:25.9430556Z Copying file: 'node_modules/.bin/mkdirp'
2018-10-08T16:56:25.9431431Z Copying file: 'node_modules/.bin/needle'
2018-10-08T16:56:25.9431934Z Copying file: 'node_modules/.bin/node-pre-gyp'
2018-10-08T16:56:25.9432441Z Copying file: 'node_modules/.bin/nopt'
2018-10-08T16:56:25.9432935Z Copying file: 'node_modules/.bin/pbjs'
2018-10-08T16:56:25.9433877Z Copying file: 'node_modules/.bin/pbts'
2018-10-08T16:56:25.9434897Z Copying file: 'node_modules/.bin/pino'
2018-10-08T16:56:25.9435557Z Error: ENOENT: no such file or directory, open '/home/site/wwwroot/node_modules/.bin/pbjs'
2018-10-08T16:56:25.9435988Z An error has occurred during web site deployment.
2018-10-08T16:56:25.9436321Z Kudu Sync failed
2018-10-08T16:56:25.9436632Z \n/opt/Kudu/bin/Scripts/starter.sh "/home/site/deployments/tools/deploy.sh"
2018-10-08T16:56:25.9437140Z App container will begin restart within 10 seconds.
2018-10-08T16:56:25.9508983Z ##[error]Failed to deploy web package to App Service.
2018-10-08T16:56:25.9518657Z ##[error]Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
2018-10-08T16:56:29.1741942Z Successfully updated deployment History at https://apitfcappsvr-staging.scm.azurewebsites.net/api/deployments/331539017786341
2018-10-08T16:56:29.2047936Z ##[section]Finishing: Azure App Service Deploy: apiTfcAppSvr
2nd Try
2018-10-08T17:14:43.1645601Z ##[section]Starting: Azure App Service Deploy: apiTfcAppSvr
2018-10-08T17:14:43.1654021Z ==============================================================================
2018-10-08T17:14:43.1654113Z Task : Azure App Service Deploy
2018-10-08T17:14:43.1654241Z Description : Update Azure App Services on Windows, Web App on Linux with built-in images or Docker containers, ASP.NET, .NET Core, PHP, Python or Node.js based Web applications, Function Apps, Mobile Apps, API applications, Web Jobs using Web Deploy / Kudu REST APIs
2018-10-08T17:14:43.1654467Z Version : 3.4.10
2018-10-08T17:14:43.1654520Z Author : Microsoft Corporation
2018-10-08T17:14:43.1654600Z Help : More information
2018-10-08T17:14:43.1654684Z ==============================================================================
2018-10-08T17:14:43.5861849Z Got connection details for Azure App Service:'apiTfcAppSvr'
2018-10-08T17:14:45.7664407Z Package deployment using ZIP Deploy initiated.
2018-10-08T17:20:36.1862935Z Updating submodules.
2018-10-08T17:20:36.1864555Z Preparing deployment for commit id '69319fe338'.
2018-10-08T17:20:36.1864892Z Generating deployment script.
2018-10-08T17:20:36.7130125Z Using cached version of deployment script (command: 'azure -y --no-dot-deployment -r "/tmp/zipdeploy/extracted" -o "/home/site/deployments/tools" --basic --sitePath "/tmp/zipdeploy/extracted"').
2018-10-08T17:20:36.7131070Z Running deployment command...
2018-10-08T17:20:37.3864686Z Command: "/home/site/deployments/tools/deploy.sh"
2018-10-08T17:20:37.3865061Z Handling Basic Web Site deployment.
2018-10-08T17:20:37.3865632Z Kudu sync from: '/tmp/zipdeploy/extracted' to: '/home/site/wwwroot'
2018-10-08T17:20:37.3866030Z Ignoring: .git
2018-10-08T17:20:37.3866607Z Copying file: 'node_modules/.bin/sshpk-verify'
2018-10-08T17:20:37.3867129Z Copying file: 'node_modules/.bin/uuid'
2018-10-08T17:20:37.3867683Z Copying file: 'node_modules/.bin/yaml2json'
2018-10-08T17:20:37.3868195Z Copying file: 'node_modules/@firebase/app/package.json'
2018-10-08T17:20:37.3868776Z Copying file: 'node_modules/@firebase/app-types/package.json'
2018-10-08T17:20:37.3869364Z Copying file: 'node_modules/@firebase/database/package.json'
2018-10-08T17:20:37.3870320Z Copying file: 'node_modules/@firebase/database/node_modules/@firebase/util/package.json'
2018-10-08T17:20:37.3871292Z Copying file: 'node_modules/@firebase/database/node_modules/tslib/package.json'
2018-10-08T17:20:37.3871959Z Copying file: 'node_modules/@firebase/database-types/package.json'
2018-10-08T17:20:37.3872604Z Copying file: 'node_modules/@firebase/logger/package.json'
2018-10-08T17:20:37.3873292Z Copying file: 'node_modules/@firebase/util/package.json'
2018-10-08T17:20:37.3874293Z Copying file: 'node_modules/@google-cloud/common/package.json'
2018-10-08T17:20:37.3874839Z Copying file: 'node_modules/@google-cloud/common/node_modules/.bin/gp12-pem'
2018-10-08T17:20:37.3875366Z Copying file: 'node_modules/@google-cloud/common/node_modules/.bin/mime'
2018-10-08T17:20:37.3875947Z Copying file: 'node_modules/@google-cloud/common/node_modules/google-auth-library/package.json'
2018-10-08T17:20:37.3876536Z Copying file: 'node_modules/@google-cloud/common/node_modules/google-p12-pem/package.json'
2018-10-08T17:20:37.3877081Z Copying file: 'node_modules/@google-cloud/common/node_modules/gtoken/package.json'
2018-10-08T17:20:37.3877627Z Copying file: 'node_modules/@google-cloud/common/node_modules/is-stream-ended/package.json'
2018-10-08T17:20:37.3878464Z Copying file: 'node_modules/@google-cloud/common/node_modules/mime/package.json'
2018-10-08T17:20:37.3879219Z Copying file: 'node_modules/@google-cloud/common/node_modules/request/package.json'
2018-10-08T17:20:37.3880004Z Copying file: 'node_modules/@google-cloud/common/node_modules/split-array-stream/license'
2018-10-08T17:20:37.3881581Z Copying file: 'node_modules/@google-cloud/common/node_modules/split-array-stream/package.json'
2018-10-08T17:20:37.3882298Z Copying file: 'node_modules/@google-cloud/common/node_modules/split-array-stream/readme.md'
2018-10-08T17:20:37.3883251Z Copying file: 'node_modules/@google-cloud/common/node_modules/split-array-stream/build/src/index.d.ts'
2018-10-08T17:20:37.3884010Z Copying file: 'node_modules/@google-cloud/common/node_modules/split-array-stream/build/src/index.js'
2018-10-08T17:20:37.3884832Z Copying file: 'node_modules/@google-cloud/common/node_modules/split-array-stream/build/src/index.js.map'
2018-10-08T17:20:37.3885380Z Copying file: 'node_modules/@google-cloud/common/node_modules/stream-events/package.json'
2018-10-08T17:20:37.3885896Z Copying file: 'node_modules/@google-cloud/firestore/package.json'
2018-10-08T17:20:37.3886434Z Copying file: 'node_modules/@google-cloud/firestore/node_modules/safe-buffer/package.json'
2018-10-08T17:20:37.3887751Z Copying file: 'node_modules/@google-cloud/pubsub/package.json'
2018-10-08T17:20:37.3888358Z Copying file: 'node_modules/@google-cloud/pubsub/node_modules/.bin/gp12-pem'
2018-10-08T17:20:37.3888896Z Copying file: 'node_modules/@google-cloud/pubsub/node_modules/.bin/mime'
2018-10-08T17:20:37.3889489Z Copying file: 'node_modules/@google-cloud/pubsub/node_modules/.bin/pbjs'
2018-10-08T17:20:37.3890712Z Copying file: 'node_modules/@google-cloud/pubsub/node_modules/.bin/pbts'
2018-10-08T17:20:37.3891570Z Error: ENOENT: no such file or directory, utime '/home/site/wwwroot/node_modules/@google-cloud/pubsub/node_modules/.bin/pbts'
2018-10-08T17:20:37.3892034Z An error has occurred during web site deployment.
2018-10-08T17:20:37.3892368Z Kudu Sync failed
2018-10-08T17:20:37.3892691Z \n/opt/Kudu/bin/Scripts/starter.sh "/home/site/deployments/tools/deploy.sh"
2018-10-08T17:20:37.3893065Z App container will begin restart within 10 seconds.
2018-10-08T17:20:37.3950740Z ##[error]Failed to deploy web package to App Service.
2018-10-08T17:20:37.3959700Z ##[error]Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
2018-10-08T17:20:42.1947884Z Successfully updated deployment History at https://apitfcappsvr-staging.scm.azurewebsites.net/api/deployments/341539019237947
2018-10-08T17:20:42.2374520Z ##[section]Finishing: Azure App Service Deploy: apiTfcAppSvr
3rd Try
It succeeds
..
..
..
2018-10-08T17:59:50.0599136Z Copying file: 'node_modules/grpc/node_modules/npm-packlist/package.json'
2018-10-08T17:59:50.0599811Z Omitting next output lines...
2018-10-08T17:59:50.0600205Z Processed 505 files...
2018-10-08T17:59:50.0600581Z Processed 1355 files...
2018-10-08T17:59:50.0600932Z Processed 2119 files...
2018-10-08T17:59:50.0601556Z Processed 2827 files...
2018-10-08T17:59:50.0601938Z Processed 3500 files...
2018-10-08T17:59:50.0630476Z Processed 4224 files...
2018-10-08T17:59:50.0630995Z Processed 4895 files...
2018-10-08T17:59:50.0631375Z Finished successfully.
2018-10-08T17:59:50.0631825Z Running post deployment command(s)...
2018-10-08T17:59:50.0632225Z Deployment successful.
2018-10-08T17:59:50.0632587Z App container will begin restart within 10 seconds.
2018-10-08T17:59:50.0632969Z Successfully deployed web package to App Service.
As you can see, the 2nd try sort of able to continue where the first try failed ( at pbts ) .
Actually, I have done about 8 tries on this redeployment before things go right.
Before, about 10 tries..
Error logs
2018-10-08T16:56:25.9435557Z Error: ENOENT: no such file or directory, open '/home/site/wwwroot/node_modules/.bin/pbjs'
2018-10-08T16:56:25.9435988Z An error has occurred during web site deployment.
2018-10-08T16:56:25.9436321Z Kudu Sync failed
2018-10-08T16:56:25.9436632Z \n/opt/Kudu/bin/Scripts/starter.sh "/home/site/deployments/tools/deploy.sh"
2018-10-08T16:56:25.9437140Z App container will begin restart within 10 seconds.
2018-10-08T16:56:25.9508983Z ##[error]Failed to deploy web package to App Service.
2018-10-08T16:56:25.9518657Z ##[error]Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
The text was updated successfully, but these errors were encountered: