az webapp up ZIP deployment fails, possibly due to yarn install
See original GitHub issueThis 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:
- Created a year ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top GitHub Comments
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…
Please update to the latest CLI version and confirm if this is still an issue.