-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Latest VSC update (1.53.0) breaks ssh fs: Extension host terminated unexpectedly. #239
Comments
Same here |
I downgrade to 1.52.1 as a workaround, meanwhile developers fix the issue |
Thanks @NormandoHall - appreciate the workaround suggestion - that works for me |
Which operation systems are you using? I just updated VS Code to 1.53.0 and am able to use the extension without a problem. I tried the following things:
I've tried it using the "Launch Extension" launch/debug config while developing the extension, and in a regular VS Code session without any debugging. I've yet have to reproduce this issue. Possibly related: microsoft/vscode#95111 microsoft/vscode#94807 microsoft/vscode#91044 |
Windows 10 - @SchoofsKelvin thanks for your quick response. I was receiving the error I posted above while attempting to mount a remote folder that relied on a "hop" from another remote. Oddly enough, I had no issues mounting the remote I typically use to hop from to other remotes. Seems like I am unable to connect to any remotes that rely on this intermediate hop. |
This seems very similar to #225. Is your intermediate hop also running RHEL 6? |
No - the intermediate remote is Debian 4.19.152-1 |
Can't immediately find a cause for this, although VS Code had quite some internal version changes: The OpenSSL changelog between 1.1.0 and 1.1.1 didn't give any indication about this issue either. Other related issues:
Note: This is the repository for the extension |
The underlying Can anyone with this issue install NodeJS v12.18.3 (and preferably also v12.14.1) and try using the const { Client } = require('ssh2');
const client = new Client();
client.on('error', err => console.error('SSH ERROR', err));
client.on('ready', () => {
console.log('SSH READY');
client.exec('whoami', (err, stream) => {
if (err) throw err;
stream.on('close', (code, signal) => {
console.log('Stream :: close :: code: ' + code + ', signal: ' + signal);
client.end();
}).on('data', (data) => {
console.log('STDOUT: ' + data);
}).stderr.on('data', (data) => {
console.log('STDERR: ' + data);
});
});
});
client.connect(<JSON>); // Insert JSON (as a regular JS object, not as a string) from log window |
Same here on macOS |
Hello, I am also having this issue after the latest update of VS Code. I went back to 1.52 and it is working. |
I tried to downgrade. But it also doesn't work. I'm using windows 10. |
Same here on Windows 10. Reverting to previous version of VS doesn't seem to correct the behavior. |
This issue might be only happening for a certain set of target servers, so it'd be nice to know this info. If you have server-side SSH logs (just the part regarding connection to it through VS Code, with sensitive information censored/stripped), that might come in handy too. Current list of known server types that had this issue:
I've been able to set up a CentOS 6.3 VM which reproduces the issue. Trying to connect to it using the extension crashes the extension host. I'll start looking into what exactly causes this (my guess is still the Electron v11 upgrade) and if there's a way to fix it on my end. |
I see the same issue ("Extension host terminated unexpectedly") on Win10, VSCode1.54-insider, connecting to CentOS 6.10, where sshd logs this:
I am able to connect to Ubuntu and CentOS 7 servers. It may be a cipher issue. CE7 via PuTTY:
CE6 via PuTTY:
VSCode info:
|
Kind of. The actual call that crashes NodeJS is a call to |
Narrowed it down to Electron v11, not even requiring VS Code to reproduce the I've reported it to them: electron/electron/issues/27673 |
The Electron team has merged the PR into their In microsoft/vscode#114362, scriptninja suggested it might be possible to configure your server to not use Diffie-Hellman, as a workaround. I'll look into whether it's possible to disable it client-side, and push a patched version of the extension to the marketplace if so. Another duplicate issue on the VS Code repository: microsoft/vscode#116260 |
I added a temporary fix (598ae06) for this issue in v1.19.2 of the extension. This fix is enabled by default, but can be disabled by adding the After a bit more testing and looking at the source code of My CentOS 6.3 test server supports Again: this is a temporary fix/workaround. It'd be best if Electron releases a v11 with the fix and VS Code uses that version. |
@SchoofsKelvin Thank you! I tested the update and it works for me. I can now connect to CentOS 6 servers. |
This is now fixed in 1.54.0-insiders, so once 1.54.0 drops, I'll push an update to auto-disable the flag on 1.54.0+. |
I just released v1.19.4 of the extension, which comes with a small change regarding this issue:
If anyone knows about any VS Code spin-offs that somehow use an affected Electron v12, please say so. Then I'll look into also making the extension detect the broken v12 versions. Since VS Code itself doesn't use v12 yet, I doubt this is an issue though. With this change, once VS Code v1.54.0 hits, the extension will automatically disable the flag and re-enable the affected algorithms. You can already see this happening now if you're using (extension version 1.19.4 and) VS Code 1.54.0-insider. |
Just tested it on VS Code 1.54.1, and everything works again. The broken algorithms work again, and the extension automatically re-enabled these algorithms. If you're still having this issue, make sure you're using version 1.54.0 or later and didn't add any special flags in |
I'm not sure if the issue is within ssh fs or vsc, but vsc 1.53.0 seems to break ssh fs extension.
Me and my colleagues have the same problem. Sadly, I'm not a very good developer, so I don't know exactly what to share and/or which logs could help identify the root cause of the problem.
Here is an example of an error message I get:
The text was updated successfully, but these errors were encountered: