question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az webapp up ZIP deployment fails, possibly due to yarn install

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az webapp up

Errors:

Zip deployment failed. {'id': '--reducted--', 'status': 3, 'status_text': '', 'author_email': 'N/A', 'author': 'N/A', 'deployer': 'Push-Deployer', 'message': 'Created via a push deployment', 'progress': '', 'received_time': '2022-03-22T13:25:11.8307031Z', 'start_time': '2022-03-22T13:25:13.4592966Z', 'end_time': '2022-03-22T13:25:25.030289Z', 'last_success_end_time': None, 'complete': True, 'active': False, 'is_temp': False, 'is_readonly': True, 'url': 'https://acczznextjs.scm.azurewebsites.net/api/deployments/latest', 'log_url': 'https://acczznextjs.scm.azurewebsites.net/api/deployments/latest/log', 'site_name': '--reducted--'}. Please run the command az webapp log deployment show -n "--reducted--" -g "--reducted--"

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here…
  • az webapp up --name {} --runtime {}

Expected Behavior

The webapp should be uploaded via zip and the AppService should start. Was working fine until 21 of March 2022.

From the log I attached below is seems like zip upload is successfull but yarn install fails!

Environment Summary

macOS-12.1-arm64-arm-64bit, Darwin 21.2.0
Python 3.10.2
Installer: HOMEBREW

azure-cli 2.33.0 *

Extensions:
storage-preview 0.8.0

Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0

Additional Context

Here’s a log I manged to get from Azure VsCode Plugin (Az Portal shows no logs whatsoever) It seems to me that zip file gets uploaded correctly but then yarn install fails. Again this command is part of a workflow which was working fine for 3 weeks now. Latest deployment was performed yesterday (21 of March 2022), so it is probably a change that happened on 22 of March that broke this. Also, in this issue thread, #11261 , users experience the same behaviour. Last mention was 4 days ago, but the issue is closed.

2022-03-22T13:55:31.995Z - Running 'yarn install --prefer-offline'... 2022-03-22T13:55:32.207Z - yarn install v1.22.10 2022-03-

22T13:55:32.345Z - warning package.json: No license field 2022-03-22T13:55:32.394Z - warning No license field 
2022-03-22T13:55:32.403Z - [1/4] Resolving packages... 
2022-03-22T13:55:32.837Z - [2/4] Fetching packages... 2022-03-
22T13:56:07.040Z - info There appears to be trouble with your network connection. Retrying... 
2022-03-22T13:56:40.197Z - info There appears to be trouble with your network connection. Retrying... 
2022-03-22T13:57:04.141Z - info There appears to be trouble with your network connection. Retrying... 
2022-03-22T13:57:13.324Z - info There appears to be trouble with your network connection. Retrying... 
2022-03-22T13:57:46.439Z - info There appears to be trouble with your network connection. Retrying... 
2022-03-22T13:58:00.837Z - info There appears to be trouble with your network connection. Retrying... 
2022-03-22T13:58:12.810Z - info There appears to be trouble with your network connection. Retrying... 
2022-03-22T13:58:33.745Z - error An unexpected error occurred: "https://registry.yarnpkg.com/date-fns/-/date-fns-2.28.0.tgz: ESOCKETTIMEDOUT". 
2022-03-22T13:58:33.760Z - info If you think this is a bug, please open a bug report with the information provided in "/tmp/8da0c0b9f0223ca/yarn-error.log". 
2022-03-22T13:58:33.789Z - info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 
2022-03-22T13:58:34.027Z - info There appears to be trouble with your network connection. Retrying... 
2022-03-22T13:59:28.608Z - info There appears to be trouble with your network connection. Retrying... 
2022-03-22T14:01:01.529Z - warning package.json: No license field\nwarning No license field\nerror An unexpected error occurred: "https://registry.yarnpkg.com/date-fns/-/date-fns-2.28.0.tgz: ESOCKETTIMEDOUT".\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform nodejs --platform-version 16 -i /tmp/8da0c0b9f0223ca -p compress_node_modules=tar-gz --log-file /tmp/build-debug.log 
2022-03-22T14:01:02.097Z - Deployment Failed.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Nikostitocommented, Mar 31, 2022

@Nikostito I would recommend creating a support case as well , since this is a paid service & the feature team can look at the runtime failure in the deployment. This is not a CLI command issue, specifically, so we won’t be able to resolve this.

If I do my deployment, through vscode which does the deployment though azure cli v1.0 (azure site deploymentscript command) the deployment zip uploads fine. The problem exists with azure cli v2.0 (az command). Please give the proper attention to this issue. There are another 6 open issues here on github outlining the same problem…

0reactions
seligj95commented, Dec 9, 2022

Please update to the latest CLI version and confirm if this is still an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

az webapp up ZIP deployment fail
az webapp up ZIP deployment fail. I am trying to deploy a ReactJS web app to Azure and keep getting the following errors....
Read more >
Fixing an Azure web app zip deployment issue - Blimped
My Azure DevOps pipeline recently stopped zipdeploying to Azure App Service. This is how I fixed it.
Read more >
Using modern Yarn for deployment with Node.js on Azure App ...
This blog post covers how to use Yarn versions 3.x for deployment on Azure ... In this are .zip files related to the...
Read more >
Deploying an ASP.Net website to Azure via CircleCI
These days, setting up a deployment pipeline is something I do with every project ... apt update && apt install yarn -yq apt...
Read more >
How to set up automated deployment of a Linux function ...
Azure Functions is a serverless platform, and so you should not worry about servers when deploying your code there.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found