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

After the latest VSCode automatic update, I am unable to connect to my remote host. #9478

Closed
vartyagi opened this issue Feb 2, 2024 · 14 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s) ssh Issue in vscode-remote SSH

Comments

@vartyagi
Copy link

vartyagi commented Feb 2, 2024

Type: Bug

After the latest VSCode update, I am unable to connect to my remote host. When I monitor the Remote SSH logs it keeps printing "Waiting for server log" multiple times before showing the error message "Could not establish connection to . The VS Code Server failed to start".

I even tried the same after deleting my ".vscode-server" directory in my remote home folder but this did not resolve the issue.

Extension version: 0.108.0
VS Code version: Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937, 2024-01-31T10:28:19.990Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 15.85GB (7.31GB free)
Process Argv --crash-reporter-id 86968068-3783-414e-95c1-61bc51a4aeac
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
0bi6i642:30951795
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
dsvsc019bcf:30953938
3ef8e399:30949928

@vartyagi
Copy link
Author

vartyagi commented Feb 2, 2024

Digging deeper it seems like there is a new GLIBC requirement:
Server did not start successfully. Full server log at /home/varun/.vscode-server

r/.05047486b6df5eb8d44b2ecd70ea3bdf775fd937.log >>>
Warning: Missing GLIBC >= 2.28! from /lib/x86_64-linux-gnu/libc-2.27.so
Error: Missing required dependencies. Please refer to our FAQ https://aka.ms/vsc
code-remote/faq/old-linux for additional information.
<<< End of server log

Will downgrade to v1.85 as suggested by the docs:
https://code.visualstudio.com/docs/remote/faq#_can-i-run-vs-code-server-on-older-linux-distributions

@VSCodeTriageBot VSCodeTriageBot added the ssh Issue in vscode-remote SSH label Feb 2, 2024
@mtovino-cloudflare
Copy link

mtovino-cloudflare commented Feb 2, 2024

I am observing the same behavior. But also:

VSCode v1.86 + extension v0.107.1 - works
VSCode v1.85.2 + extension v0.108 - works
VSCode v1.86 + extension v0.108 - does not work

Debian Bookworm (12) which should be supported according to https://code.visualstudio.com/docs/remote/faq#_can-i-run-vs-code-server-on-older-linux-distributions

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm
$ uname -a
Linux studio-mtovino 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux

Also unable to connect to Ubuntu 22.04 with 1.86+0.108:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy
$ uname -a
Linux tovino-office 5.15.0-92-generic #102-Ubuntu SMP Wed Jan 10 09:33:48 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ 

@DavidC-75
Copy link

DavidC-75 commented Feb 2, 2024

VSCode v1.86 + extension v0.107.1 - works

Not for me...

The Remote-SSH extension deploys on the remote SSH host (linux based) a vscode-server that does not seem to depend on the extension version, but rather on the VS Code version (visible in Help / about)

  • VS Code version 1.86.0:
    Remote-SSH deploys vscode-server with commit_id 05047486b6df5eb8d44b2ecd70ea3bdf775fd937 (regardless of the extension version) - Requires glibc 2.28

  • VS Code Code 1.85.1
    Remote-SSH deploys vscode-server with commit_id 8b3775030ed1a69b13e4f4c628c612102e30a681 (regardless of the extension version) - Requires glibc 2.22

One would imagine that it's possible to update VS Code (especially if it runs on Windows) without bringing in new requirements for the remote SSH host.... But no, a different decision was made. Thanks a lot ;-)

@mtovino-cloudflare
Copy link

mtovino-cloudflare commented Feb 2, 2024

@DavidC-75 interesting...

... I'm wondering if I'm observing a different failure mode than you are. Ubuntu 22.04 says:

$ ldd --version
ldd (Ubuntu GLIBC 2.35-0ubuntu3.6) 2.35
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

Debian 12:

ldd (Debian GLIBC 2.36-9+deb12u4) 2.36
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

IIUC, both of these should work with 1.86 just fine... and they seem to, but not with Remote SSH 0.108...

... should I file a separate issue?

@DavidC-75
Copy link

... should I file a separate issue?

I guess the answer to that question lies in your ~/.vscode-server/.05047486b6df5eb8d44b2ecd70ea3bdf775fd937.log

What I'm seeing is

Warning: Missing GLIBC >= 2.28! from /lib64/libc-2.22.so
Error: Missing required dependencies. Please refer to our FAQ https://aka.ms/vscode-remote/faq/old-linux for additional information.

which leaves no doubt....

@mtovino-cloudflare
Copy link

mtovino-cloudflare commented Feb 2, 2024

Yeap, looks like I need to file a new issue.

My server-side log when connecting with 1.86+0.107.1:

Got delay-shutdown request while in shutdown timeout, delaying
[23:06:53] Got delay-shutdown request while in shutdown timeout, delaying
Cancelling previous shutdown timeout
[23:06:53] Cancelling previous shutdown timeout
[23:06:53] [127.0.0.1][2b5bd0b3][ManagementConnection] New connection established.
[23:06:53] [127.0.0.1][b2102798][ExtensionHostConnection] New connection established.
[23:06:53] [127.0.0.1][b2102798][ExtensionHostConnection] <16500> Launched Extension Host Process.

With 1.86+0.108, I don't think the handshake even starts, nothing at all in the log...

@mtovino-cloudflare
Copy link

I filed #9479; completely different issue.

The extension doesn't like comments in an include in my SSH config. Easily worked around by moving the configs Code needs to know about to a separate config file and then including that from my ~/.ssh/config.

@hraywilson
Copy link

Same. I am on CentOS Linux release 7.9.2009 (Core)
I carelessly allowed the VSCode upgrade while clearing a spot for my tea cup and bang ruined my Saturday morning.
Not cool

@DavidC-75
Copy link

#9467 (comment) might help.....

@hraywilson
Copy link

Thanks David. I'll give it a whirl. Yesterday was a long day with vi.

@connor4312
Copy link
Member

This is fixed in VS Code 1.86.1

@connor4312 connor4312 added the *duplicate Issue identified as a duplicate of another issue(s) label Feb 8, 2024
@Panasavv
Copy link

Panasavv commented Feb 9, 2024

This is fixed in VS Code 1.86.1

I am still unable to use Remote-SSH. Last friday i suddenly was unable to connect through VS Code - remote ssh. Then i downgraded VS code to 1.85.2 and remote-ssh to 0.107.1 as suggested here #9467 (comment)
Everything was fixed and i was able to connect remotely again.

Then today, i was once again unable to establish remote connection with the same issue. I tried uninstalling and reinstalling the same versions (1.85.2 and 0.107.1) but it didn't work. I then saw your message and tried installing 1.86.1 but once again i am not able to connect.

Any help?

@OliverUrbann
Copy link

I can confirm that 1.86.1 "fixes" it by warning you that you are about to use an unsupported OS version. You have to click "Allow" and will still see a warning that you cannot hide, but it seems to work.

@Panasavv
Copy link

Panasavv commented Feb 9, 2024

I tried killing VS code server on host and reestablishing connection and i can now connect as @OliverUrbann said.

@microsoft microsoft locked and limited conversation to collaborators Mar 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

8 participants