-
Notifications
You must be signed in to change notification settings - Fork 136
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 hung in Visual Studio Codespaces & WSL #2108
Comments
Thanks for reporting @chunliu Is this problem recurring? Have you tried just deploying your project to the create function app? Sometimes there are just hiccups in the deploying command and re-trying will resolve the issue. If it's getting hung up at the zipping step, perhaps your project is really large? |
@nturinski we should try deploying in Codespaces ourselves before labeling this issue "needs more info" (I assume you haven't tried it). I could totally see us having problems specific to Codespaces |
@nturinski the problem keeps happening with Codespaces. It happened with a new project created by the extension so the project is not large. No matter if it is an existing function app or a new one created by the extension, the deployment hung. I would be surprised if you cannot reproduce it with Codespaces. |
Encountering this issue as well (hung at Creating zip package...) and I'm not using codespaces and am running WSL 1. Was running VSCode 1.42.1 and all was good. Upgraded to 1.45.1 and started encountering the issue. Uninstalled back to 1.42.1 and everything worked as expected. Installed 1.43.0 and problem occurred. Uninstalled back to 1.42.1 and all was good so appears problem was introduced between 1.42.1 and 1.43.0. Additional Info:
Steps to repro:
Expected Result: Actual Result: |
If anyone else is hitting this issue, I was able to get it to work (at least temporarily) by uninstalling and reinstalling the extension. Not sure if it was a fluke or would work for everyone but it fixed it for me on a couple of occasions. Sharing in case anyone is running into this before the fix is published. |
I can get it to work if I open the folder, not the workspace in VS Codespaces (Online) |
@sebastianrogers can you clarify what you mean? Is there some important difference between "folder" and "workspace" (If so, what?) or is it all about normal VS Code vs. VS Codespaces? |
I only use VS Codespaces and the key is when starting the Codespaces to use a URL in this format rather than |
Same I don't think this is just Codespaces related. It happens in WSL2 and VS Code remote containers (which is effectively a local version of Codespaces) |
I ran into this this week locally in a devcontainer as well. (Stuck at creating zip) |
Does anyone could solve this issue ? |
Hitting same issue...
|
Hi...any news on that one? Unfortunately, it makes using the extension impossible in WSL2. |
ditto, same issues - Azure functions with Microsoft VS Code, with Microsoft Windows WSL2 |
Hi folks, do you have any news on that? This bug is so annoying and makes working in WSL2 with the extension impossible! Thanks for any updates on that topic. |
I find it incredible the Azure Functions team don't test anything under WSL or even use it themselves. This is isn't the first time there's been WSL specific issues |
@benc-uk, it's not only AzFunctions...it's also the AppService extension. Both use the same lib for the zip-deployment. |
Hi @cdennig I'm trying to repro this issue on WSL2, but not having any luck. I've tried with both a node.js and .NET 3.1 project. Could you let me know what distro you're using? I was trying on Ubuntu 18.04 so I'm wondering if maybe certain distributions don't work with our npm zip package. |
Hi @nturinski, I'm running VS Code in WSL2 with Ubuntu 20.04 LTS version. I could narrow the problem down to "runWithZipStream" of the vscode-azureappservice module.
All of those 3 promises in Hope this helps... |
Hi @nturinski, I can confirm that - with the merge from yesterday - the deployment from VS Code to an Azure Function app is successful. Just tried with a clean environment. Thank you very much 🙏 Looking forward to the next release of the extension 😊 |
I created a new Azure Function project with .net core 3.1 in a VS Codespaces environment. The project could run locally and it could be deployed with command line in the terminal.
However, when I tried to deploy it to Azure, the deployment hung at the
Creating zip package
step. The following is the log from output:The instance type of the codespace was Standard (Linux). The OS of the function app in Azure was also Linux.
Runtime version: 3.0.13113
Azure Functions Extension version: 0.22.1
The text was updated successfully, but these errors were encountered: