-
Notifications
You must be signed in to change notification settings - Fork 132
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
Bug report: Unable to launch Azure Cloud Shell #719
Comments
Same issue here. Extension: Error: This has worked in the past but not for the past month or two. |
There was a change related to Cloud Shell in the latest release (v0.11.3). Could you try reverting to v0.11.2 and seeing if it works? |
Same result going back 2 versions. Restarted the system between both instances. |
Ok, thanks for that info. |
Updated to March 2023 (version 1.77). Same error on both 0.11.3 and 0.11.2 Version: 1.77.0 |
Issue still persist |
Can you verify that the files in the error message exist?
Thanks. |
Also this seems to be Linux specific. |
Yes, I have the same setup on my Windows PC and it works without issue. |
Yes, affirmative, the file does exist
|
Yes, those files exist. $ ls /home/{user}/.vscode/extensions/ms-vscode.azure-account-0.11.3/bin/node.sh $ ls /home/{user}/.vscode/extensions/ms-vscode.azure-account-0.11.3/dist/cloudConsoleLauncher $ ls /home/{user}/.vscode/extensions/ms-vscode.azure-account-0.11.3/dist/cloudConsoleLauncher.js In the past I tried removing that .js file extension and it gave the same error. I just tried again and it, also, gave the same error. |
Could it be an issue with the permissions on the cloudConsoleLauncher file? |
The file is currently What permissions would you like me to set and test? |
I just checked and my file also has |
Might be a long shot, but we are using a small bash helper script to start the shell. It has a shebang of Try running that script and see if there are any errors. |
|
Can you try running the following command? Make sure to substitute
On my machine, I get the following output:
I'm trying to emulate the command that's failing as much as possible to see if we can reproduce the error outside of VS Code. |
Initially, I did not have nodejs installed, so the command returned this:
I installed nodejs from the fedora repo and now I get this:
I should add that it still doesn't work from with-in vscode |
Updated to 1.77.1. Same error on both 0.11.3 and 0.11.2 Version: 1.77.1 |
Updated to v0.11.4. Same error other than the path reference to 0.11.4. Also, I'm now working on a clean Fedora 38 workstation. Version: 1.77.3 |
Version: 1.81.1 Azure Account: v0.11.5
cmd: |
Has this issue been resolved yet - I am having exactly the same issue with Azure Account v0.11.6 on Ubuntu? |
I did a dnf system-upgrade to Fedora 36 recent, but otherwise, the issue still exists. Version: 1.85.2 Azure Account: v0.11.6 |
Did a full reinstall/ wiped out all the hidden folders for VS code. Reinstalled the Azure Tools and Azure CLI Tools Extensions. Same as reported by others: Version: 1.87.1 (Universal) Azure Account: v0.11.6 |
I'll just add that the same error happens in macOS as well, so... I'm guessing that, currently, the Azure Cloud Shell only works in Windows? Or has anyone been able to launch it in Linux or macOS? |
Failing for me with the error below in MacOS with latest versions of everything The terminal process "/Users/barracoder/.vscode/extensions/ms-vscode.azure-account-0.11.6/bin/node.sh '/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)', '-e', 'require('/Users/barracoder/.vscode/extensions/ms-vscode.azure-account-0.11.6/dist/cloudConsoleLauncher').main()', '--ms-enable-electron-run-as-node'" failed to launch (exit code: 9). |
Still the same issue:
When you run the command in the shell you can see that the option "--ms-enable-electron-run-as-node" is causing the return code 9:
When you run the command without the option you get:
|
The issue is caused by the following if block at cloudConsole.ts#L291 A workaround is to modify the JavaScript file and change the version number
After that change I was able to login to Azure cloud shell with the Azure Account extension: |
Hi all, I have an updated extension VSIX that contains a fix for this issue. If some of you could try it out and confirm the fix for me, that'd be a huge help. Please provide system information in your replies. azure-account-0.11.6-preview.vsix.zip Steps to install extension development build:
|
I tested the version from above and it worked after reloading VSCode. Thank you, looking forward to see a 0.11.7 release soon! |
This is not working for me... the "new" error is:
Version: 1.88.1 I nuked my .vscode directory and removed all extensions so I would start from scratch. |
This worked for me. Thank you so much for this solution!
@TwoOneSix It looks like reverting the Azure Account extension to version 0.11.2 and preventing it from auto-updating is a temporary workaround for this. Direct download to the 0.11.2 Azure Account extension. To disable auto updating in VS Code, go to Settings and type in extensions.autoUpdate and then change the setting from "All Extensions" to "Only Enabled Extensions". Unfortunately you'll have to go to your extensions tab and click the settings icon and click the "Auto Update" option for each one you want to update automatically, but you'll only have to do that once. I hope this helps! |
Hello, I was hoping that reverting to 0.11.2 would help, but it did not. In the past I rolled back quite far with no success.
|
I've filed a new issue to represent failing to launch cloud shell on macOS #959. Please reserve this issue for the Linux bug. I'm logging the bugs formally to document them properly before the fixes are merged and released. I have fixes for both incoming soon. Thank you all for your patience with these bugs. |
This issue has been fixed in the latest version of the Azure Resources extension 🎉 which now contains the Cloud Shell feature. See the v0.9.0 release notes for more info. Launching Cloud Shell should now work on Linux. 🤞 |
I switched to 'Azure Resources' v0.9.0 [Preview] and in-fact, it works! Thanks!
|
VSCode:
Version: 1.75.0
Commit: e2816fe719a4026ffa1ee0189dc89bdfdbafb164
Date: 2023-02-01T15:29:17.766Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Linux x64 5.15.0-58-generic
Sandboxed: No
System:
Kernel: 5.15.0-58-generic x86_64 bits: 64 compiler: gcc v: 11.3.0 Desktop: Cinnamon 5.6.7
tk: GTK 3.24.33 wm: muffin dm: LightDM Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy
Extension:
[0.11.3] - 2023-01-18
Error:
Unable to launch Azure Cloud Shell
Error Message:
The terminal process "/home/user/.vscode/extensions/ms-vscode.azure-account-0.11.3/bin/node.sh '/proc/self/exe', '-e', 'require('/home/user/.vscode/extensions/ms-vscode.azure-account-0.11.3/dist/cloudConsoleLauncher').main()', '--ms-enable-electron-run-as-node'" terminated with exit code: 1.
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: