-
Notifications
You must be signed in to change notification settings - Fork 94
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
Deployment to Azure Web App is failed, reason: read ECONNRESET #2191
Comments
Same here |
I'm getting this as logs on app service 2022-04-01T04:48:17 Startup Request, url: /api/zipdeploy?isAsync=true&author=VS%20Code, method: POST, type: request, pid: 65,1,5, ScmType: None |
Using this issue as a catch-all for ECONNRESET errors when attempting to deploy a zip in the App Service extension. Until a fix is released in VS Code stable (hopefully the next major release), here are some options:
Here's some information on the bug we suspect is causing the issue with zip deploy. We suspect that it was a regression in the libuv library caused by libuv/libuv@ce15b84, which was included in Node.JS See this issue, and specifically this comment for more information. The Azure Functions and App Service extensions use the same code to zip deploy, so Azure Functions is facing the same issue. |
I downgraded my VS Code from latest to 1.64 and after that deployment is working fine. |
Hi everyone, I believe to have found a fix for the ECONNRESET error on deployment. If anyone can help verify the fix for me that would be a big help! Steps to install extension development build:
Once installed, attempt to deploy your app as normal. Report back and let us know if deployment succeeded/failed. Thanks! |
Hi @alexweininger, Thank you for sharing the link for the fix. Unfortunately, I cannot validate it because I have no permission to download it. |
@Zvenigora could you try this link? The .vsix is inside the vsix folder. |
Hi @alexweininger, It works, thank you. Old Environment: Result: Socket hang up after 16 minutes. New Environment: Result: Deployment successful |
@Zvenigora thank you for verifying the fix! |
@alexweininger The latest fix worked for me. Thanks! |
@faceoffers28 Awesome, thanks! ❤️ |
@alexweininger Some items don't appear to be copying over to Azure. What did you change? My project is working locally as expected. When I deploy to Azure using VSC, some items that were there before are now missing. |
@faceoffers28 Nothing in terms of what files are deployed should have changed. The only change is microsoft/vscode-azuretools#1114 |
Just wanted to comment that I have also verified that this latest build fixes the issue, thanks. |
Fix has been released in version https://github.com/microsoft/vscode-azureappservice/releases/tag/v0.23.2 of the extension. Huge thanks to everyone who helped verify the fix! ❤️ |
Deployment to Azure App Service works in VS Code 1.65.2 and it fails in VS Code 1.66.0. Downgrading to version 1.65.2 restores the function.
Steps:
Login to Azure.
Open Explorer tab.
Right-click on the deployment package and select Deploy to Web App...
Optionally select the Web App and file folder.
Confirm the dialog 'Are you sure you want to deploy to "..."? This will overwrite any previous deployment and cannot be undone'. Select 'Deploy' button.
VS Code starts the deployment.
Check the output tab.
Actual logs in output tab (ver. 1.66.0)
12:58:09 PM uat-vwusasurvey-staging: Starting deployment...
12:58:11 PM uat-vwusasurvey-staging: Creating zip package...
12:58:50 PM uat-vwusasurvey-staging: Zip package size: 49.5 MB
1:03:38 PM: Error: request to https://uat-vwusasurvey-staging.scm.azurewebsites.net/api/zipdeploy?isAsync=true&author=VS%20Code failed, reason: read ECONNRESET
Expected logs in the output tab (ver 1.65.2)
11:00:28 a.m. uat-vwusasurvey-staging: Starting deployment...
11:00:30 a.m. uat-vwusasurvey-staging: Creating zip package...
11:01:37 a.m. uat-vwusasurvey-staging: Zip package size: 49.6 MB
11:01:38 a.m. uat-vwusasurvey-staging: Fetching changes.
11:01:38 a.m. uat-vwusasurvey-staging: Cleaning up temp folders from previous zip deployments and extracting pushed zip file C:\local\Temp\zipdeploy\ofydv0ab.zip (47.29 MB) to C:\local\Temp\zipdeploy\extracted
11:01:46 a.m. uat-vwusasurvey-staging: Updating submodules.
11:01:46 a.m. uat-vwusasurvey-staging: Preparing deployment for commit id '7a3cb5db76'.
11:01:47 a.m. uat-vwusasurvey-staging: Generating deployment script.
The text was updated successfully, but these errors were encountered: