Skip to content
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

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

Closed
Nikostito opened this issue Mar 22, 2022 · 9 comments
Closed

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

Nikostito opened this issue Mar 22, 2022 · 9 comments
Assignees
Labels
App Services az appservice app-service-webapp-up Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team. Web Apps az webapp

Comments

@Nikostito
Copy link

Nikostito commented Mar 22, 2022

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.
@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Network az network vnet/lb/nic/dns/etc... labels Mar 22, 2022
@ghost ghost added this to the Backlog milestone Mar 22, 2022
@ghost ghost assigned kairu-ms Mar 22, 2022
@ghost ghost added Auto-Assign Auto assign by bot Storage az storage labels Mar 22, 2022
@ghost ghost assigned evelyn-ys Mar 22, 2022
@ghost ghost added App Services az appservice CXP Attention This issue is handled by CXP team. Web Apps az webapp ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group labels Mar 22, 2022
@ghost ghost assigned zhoxing-ms Mar 22, 2022
@ghost ghost added the Portal az portal label Mar 22, 2022
@ghost ghost assigned jsntcy Mar 22, 2022
@ghost ghost added the Installation label Mar 22, 2022
@ghost ghost assigned jiasli Mar 22, 2022
@yonzhan yonzhan removed Storage az storage Network az network vnet/lb/nic/dns/etc... ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group Installation Portal az portal labels Mar 22, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Mar 22, 2022

route to CXP team

@Nikostito
Copy link
Author

It is more than 24h that this paid service is down. An update to this issue would be helpful..

@panchagnula
Copy link
Contributor

panchagnula commented Mar 24, 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.

@SatishBoddu-MSFT SatishBoddu-MSFT removed their assignment Mar 30, 2022
@SatishBoddu-MSFT SatishBoddu-MSFT added Service Attention This issue is responsible by Azure service team. and removed CXP Attention This issue is handled by CXP team. labels Mar 30, 2022
@ghost
Copy link

ghost commented Mar 30, 2022

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI.

Issue Details

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.
Author: Nikostito
Assignees: -
Labels:

Web Apps, Service Attention, App Services, customer-reported, Auto-Assign

Milestone: Backlog

@Nikostito
Copy link
Author

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

@seligj95
Copy link
Contributor

seligj95 commented Dec 9, 2022

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

@azieh
Copy link

azieh commented Dec 23, 2022

@seligj95 I have the latest Azure CLI(2.43.0) version on macOS and I faced the same issue.

@btardif
Copy link
Member

btardif commented Jun 28, 2023

@seligj95 since this is happening on the worker, this is not a CLI issue, we suspect this might be networking related (can't reach YARN because of Firewall? or other network config blocking this.)

@seligj95
Copy link
Contributor

seligj95 commented Feb 3, 2025

Closing this as this is not a CLI issue and not able to repro on my side

@seligj95 seligj95 closed this as completed Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Services az appservice app-service-webapp-up Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team. Web Apps az webapp
Projects
None yet
Development

No branches or pull requests