microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.62k stars 281 forks source link

[Remote-SSH Bug]: Redownloading vscode server over and over while connecting through tunnels. #9582

Closed SkyDev125 closed 5 months ago

SkyDev125 commented 7 months ago

Is there an existing issue for this bug?

Required Troubleshooting Steps

Connect Locally

It connects successfully

->

No response

Expected Behavior

Run the tunnel command "./code tunnel" wait for the tunnel to setup vscode server, Successfully connect to vscode server.

Steps To Reproduce

On Raspberry pi, Linux 6.1.19-v8+ aarch64 GNU

Run the script provided to install the code cli curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz tar -xf vscode_cli.tar.gz

and then start tunnel ./code tunnel

Set the tunnel up Connect to the tunnel through vscode client Check the tunnel logs to see that it's stuck in a loop.. image

Remote-SSH Log

2024-02-23 01:35:45.216 [info] Resolving tunnel+test... 2024-02-23 01:35:45.216 [info] Creating new tunnel proxy server 2024-02-23 01:35:46.557 [info] [proxy] Found tunnel (ID=lp8l9cgf, Cluster=uks1) 2024-02-23 01:35:46.557 [info] Remote resolution completed 2024-02-23 01:36:33.744 [error] [proxy] [connection.0] error setting up websocket: Error: WrappedError(WrappedError { message: "error checking server integrity", original: "failed to run command \"/home/coder/.vscode/cli/servers/Stable-903b1e9d8990623e3d7da1df3d33db3e42d80eda.staging/server/bin/code-server --version\" (code 255): x86_64-binfmt-P: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory\n" }) 2024-02-23 01:36:33.773 [info] Resolving tunnel+test... 2024-02-23 01:36:33.783 [info] Creating new tunnel proxy server 2024-02-23 01:36:35.193 [info] [proxy] Found tunnel (ID=lp8l9cgf, Cluster=uks1) 2024-02-23 01:36:35.193 [info] Remote resolution completed 2024-02-23 01:51:00.893 [info] Resolving tunnel+skypi... 2024-02-23 01:51:00.893 [info] Creating new tunnel proxy server 2024-02-23 01:51:02.260 [info] [proxy] Found tunnel (ID=kqxxhwtq, Cluster=uks1) 2024-02-23 01:51:02.260 [info] Remote resolution completed 2024-02-23 01:51:50.559 [error] [proxy] [connection.0] error setting up websocket: Error: WrappedError(WrappedError { message: "error checking server integrity", original: "failed to run command \"/home/skypi/.vscode/cli/servers/Stable-903b1e9d8990623e3d7da1df3d33db3e42d80eda.staging/server/bin/code-server --version\" (code 255): x86_64-binfmt-P: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory\n" }) 2024-02-23 01:51:50.589 [info] Resolving tunnel+skypi... 2024-02-23 01:51:50.600 [info] Creating new tunnel proxy server 2024-02-23 01:51:52.019 [info] [proxy] Found tunnel (ID=kqxxhwtq, Cluster=uks1) 2024-02-23 01:51:52.019 [info] Remote resolution completed 2024-02-23 01:52:39.064 [error] [proxy] [connection.0] error setting up websocket: Error: WrappedError(WrappedError { message: "error checking server integrity", original: "failed to run command \"/home/skypi/.vscode/cli/servers/Stable-903b1e9d8990623e3d7da1df3d33db3e42d80eda.staging/server/bin/code-server --version\" (code 255): x86_64-binfmt-P: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory\n" }) 2024-02-23 01:52:39.104 [info] Resolving tunnel+skypi... 2024-02-23 01:52:39.114 [info] Creating new tunnel proxy server 2024-02-23 01:52:40.506 [info] [proxy] Found tunnel (ID=kqxxhwtq, Cluster=uks1) 2024-02-23 01:52:40.506 [info] Remote resolution completed 2024-02-23 01:52:43.870 [error] [proxy] Tunnel connection closed with: The operation was aborted 2024-02-23 01:52:43.881 [info] Resolving tunnel+skypi... 2024-02-23 01:52:43.892 [info] Creating new tunnel proxy server 2024-02-23 01:52:45.204 [info] [proxy] Found tunnel (ID=kqxxhwtq, Cluster=uks1) 2024-02-23 01:52:45.204 [info] Remote resolution completed 2024-02-23 01:53:35.837 [info] Resolving tunnel+skypi... 2024-02-23 01:53:35.837 [info] Creating new tunnel proxy server 2024-02-23 01:53:37.185 [info] [proxy] Found tunnel (ID=kqxxhwtq, Cluster=uks1) 2024-02-23 01:53:37.186 [info] Remote resolution completed 2024-02-23 01:54:25.082 [error] [proxy] [connection.0] error setting up websocket: Error: WrappedError(WrappedError { message: "error checking server integrity", original: "failed to run command \"/home/skypi/.vscode/cli/servers/Stable-903b1e9d8990623e3d7da1df3d33db3e42d80eda.staging/server/bin/code-server --version\" (code 255): x86_64-binfmt-P: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory\n" }) 2024-02-23 01:54:25.100 [info] Resolving tunnel+skypi... 2024-02-23 01:54:25.110 [info] Creating new tunnel proxy server 2024-02-23 01:54:26.543 [info] [proxy] Found tunnel (ID=kqxxhwtq, Cluster=uks1) 2024-02-23 01:54:26.543 [info] Remote resolution completed 2024-02-23 01:55:13.647 [error] [proxy] [connection.0] error setting up websocket: Error: WrappedError(WrappedError { message: "error checking server integrity", original: "failed to run command \"/home/skypi/.vscode/cli/servers/Stable-903b1e9d8990623e3d7da1df3d33db3e42d80eda.staging/server/bin/code-server --version\" (code 255): x86_64-binfmt-P: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory\n" }) 2024-02-23 01:55:13.678 [info] Resolving tunnel+skypi... 2024-02-23 01:55:13.689 [info] Creating new tunnel proxy server 2024-02-23 01:55:15.032 [info] [proxy] Found tunnel (ID=kqxxhwtq, Cluster=uks1) 2024-02-23 01:55:15.033 [info] Remote resolution completed 2024-02-23 01:56:02.846 [error] [proxy] [connection.0] error setting up websocket: Error: WrappedError(WrappedError { message: "error checking server integrity", original: "failed to run command \"/home/skypi/.vscode/cli/servers/Stable-903b1e9d8990623e3d7da1df3d33db3e42d80eda.staging/server/bin/code-server --version\" (code 255): x86_64-binfmt-P: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory\n" }) 2024-02-23 01:56:02.854 [info] Resolving tunnel+skypi... 2024-02-23 01:56:02.864 [info] Creating new tunnel proxy server 2024-02-23 01:56:04.324 [info] [proxy] Found tunnel (ID=kqxxhwtq, Cluster=uks1) 2024-02-23 01:56:04.324 [info] Remote resolution completed 2024-02-23 01:56:51.599 [error] [proxy] [connection.0] error setting up websocket: Error: WrappedError(WrappedError { message: "error checking server integrity", original: "failed to run command \"/home/skypi/.vscode/cli/servers/Stable-903b1e9d8990623e3d7da1df3d33db3e42d80eda.staging/server/bin/code-server --version\" (code 255): x86_64-binfmt-P: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory\n" }) 2024-02-23 01:56:51.631 [info] Resolving tunnel+skypi... 2024-02-23 01:56:51.641 [info] Creating new tunnel proxy server 2024-02-23 01:56:53.104 [info] [proxy] Found tunnel (ID=kqxxhwtq, Cluster=uks1) 2024-02-23 01:56:53.105 [info] Remote resolution completed 2024-02-23 01:57:40.958 [error] [proxy] [connection.0] error setting up websocket: Error: WrappedError(WrappedError { message: "error checking server integrity", original: "failed to run command \"/home/skypi/.vscode/cli/servers/Stable-903b1e9d8990623e3d7da1df3d33db3e42d80eda.staging/server/bin/code-server --version\" (code 255): x86_64-binfmt-P: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory\n" }) 2024-02-23 01:57:42.021 [info] Resolving tunnel+skypi... 2024-02-23 01:57:42.021 [info] Resolving tunnel+skypi... 2024-02-23 01:57:42.974 [info] Found tunnel (ID=kqxxhwtq, Cluster=uks1) 2024-02-23 01:57:43.000 [info] Found tunnel (ID=kqxxhwtq, Cluster=uks1)

Anything else?

No response

SkyDev125 commented 7 months ago

(If this is a problem with it being unable to install the vscode server... then I don't understand how it successfully manages to install the vscode server, when I connect through ssh, and not through tunnels...)

SkyDev125 commented 7 months ago

I was hoping to be able to setup a vscode server, where I could connect to it from anywhere really. and then be able to start up some devcontainers, so I can connect to them remotely, Emulating something similar to github codespaces...

But for that to work I'd have to have the code server running properly as a service, and the same for the tunnels... or I'd have to configure some kind of cloudflared tunnel.

0x1026 commented 7 months ago

I can reproduce it with a RPi400, but with alpine arm64

connor4312 commented 6 months ago

@deepak1556 seems like the server bits can't find ld on an GNU platform, which I think should always be possible. Any ideas?

deepak1556 commented 6 months ago

You are downloading x86_64 cli on aarch64 platform which will not have x86_64 runtime linker. Please download https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-arm64 and let us know if the issue still repros.

@0x1026 what is the error you are facing ?

VSCodeTriageBot commented 5 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!