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

ECONNRESET trying azure deploy webapp VS Code #2194

Closed
brandonr1 opened this issue Apr 3, 2022 · 8 comments
Closed

ECONNRESET trying azure deploy webapp VS Code #2194

brandonr1 opened this issue Apr 3, 2022 · 8 comments

Comments

@brandonr1
Copy link

brandonr1 commented Apr 3, 2022

Using VS Code, on my webapp's publish folder I select "Deploy to web app", after running for a while it reports ECONNRESET in the lower right popup. I've logged out/in, rebooted, you name it. After searching it appears v1.66 is the cause that many others are running into here. I was literally deploying fine yesterday then it just broke in an instance. Is it VS Code, an Azure extension, ??

Webapp I'm using is based off a basic asp.net core 3.1 project used as an example.

Very annoying, but I ended up using az webapp up to get my updated code deployed. Which also seems to have the problem that the runtime cannot be discovered when I run from my publish folder. If I run from the project folder it zips all my files and pushes it, which of course fails on the server ( also puts my source publicly viewable...). To get it to work I copied the csproj file into the publish folder and that satisfied az webapp enough to zip and push the right files. So, az webapp up needs to honor --runtime as well ( that seems to be a bug currently?)

Similar?
microsoft/vscode#146577
#2191

@brandonr1 brandonr1 changed the title ECONNRESET trying azure deploy webapp ECONNRESET trying azure deploy webapp VS Code Apr 4, 2022
@sujeetjaiswara
Copy link

Same here,

@foramkumar-parekh
Copy link

I am also facing the same issue.

@nturinski
Copy link
Member

It's most likely related to this issue: microsoft/vscode-azurefunctions#2844

VS Code 1.66 upgraded to Node 16 which has been causing deployment issues for both Functions and App Service. Unfortunately, the only current known workaround is to downgrade VS Code to 1.65.x. We're currently investigating a proper fix.

@NicoHoch
Copy link

NicoHoch commented Apr 4, 2022

Is this error related to the issue?
22:56:44: Error: request to https://blckt.scm.azurewebsites.net/api/zipdeploy?isAsync=true&author=VS%20Code failed, reason: socket hang up

@alexweininger
Copy link
Member

Until a fix is released in VS Code stable (hopefully the next major release), here are some options:

  1. Wait for the fix to come in VS Code Insiders
  2. Deploy via Azure CLI
  3. Downgrade your Azure App Service extension version to v0.21.1 (Mar 04, 2021), we used a different zip deploy method which seems to be working still. Note: it might not work in environments like WSL or Codespaces, which is why we changed our deploy in v0.21.2 (Mar 09, 2021).
  4. Downgrade to the VS Code February 2022 release, where zip deploy is working as discussed and confirmed above.

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

See this issue, and specifically this comment for more information.

@alexweininger
Copy link
Member

Closing as a duplicate of #2191. Follow along there, or the corresponding Azure Functions issue for further updates and discussion.

@brandonr1
Copy link
Author

It's most likely related to this issue: microsoft/vscode-azurefunctions#2844

VS Code 1.66 upgraded to Node 16 which has been causing deployment issues for both Functions and App Service. Unfortunately, the only current known workaround is to downgrade VS Code to 1.65.x. We're currently investigating a proper fix.

Thanks, at the moment using az webapp up is handling things, although in a less than ideal manner.

@alexweininger
Copy link
Member

Fix has been released in version https://github.com/microsoft/vscode-azureappservice/releases/tag/v0.23.2 of the extension.

@microsoft microsoft locked and limited conversation to collaborators May 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants