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.66k stars 286 forks source link

Receiving errors (NoAttachedServer, ENOTCONN) upon opening a connection to VSCode Server #7918

Closed sirlupusdev closed 1 year ago

sirlupusdev commented 1 year ago

Steps to Reproduce:

  1. Setup VSCode Server through the standalone CLI download
  2. Connect to VSCode via tunnel or opening the link in the browser
  3. Open any folder (preferably one with a git repo)

The full log can be found here: https://pastebin.com/Fj9FKrtj

Errors thrown in the log are: Error: Unable to retrieve mac address (unexpected format) [IPC Library: Pty Host] Uncaught Exception: Error: read ENOTCONN

Does this issue occur when you try this locally?: No Does this issue occur when you try this locally and all extensions are disabled?: No

Notes:

Thank you for your help in advance!

sirlupusdev commented 1 year ago

Correction: When I start the server for the first time, it seems to work fine. However, after I restart the Tunnel Service (and Server) or when I reconnect, I get the errors described above.

sirlupusdev commented 1 year ago

Update:

I hope this helps in some way

sirlupusdev commented 1 year ago

Another update after some time:

Let me know if this helps or if you need other information

connor4312 commented 1 year ago

Duplicates https://github.com/microsoft/vscode/issues/175878

sirlupusdev commented 1 year ago

Duplicates microsoft/vscode#175878

Mmh, the issue persists, even if I use the release that supposedly fixed the issue, the latest CLI release or insiders build. I can't really apply the patch mentioned in the issue, as VSCode doesn't create the server files anymore. It also doesn't show any other information with --log set to trace.

connor4312 commented 1 year ago

The release it's in is not out to stable yet; you'll want to make sure to use Insiders from the machine you're connecting from to get it (or insiders.vscode.dev)

sirlupusdev commented 1 year ago

With the insiders build, I'm now receiving the error [2023-03-25 13:07:38] debug [rpc.0] Serving new connection [2023-03-25 13:07:38] info [rpc.0] Checking /home/user/.vscode-cli/server-insiders/.b9226e1ccc11625bcb42b55efb795e07ee533bb0.log and /home/user/.vscode-cli/server- insiders/.b9226e1ccc11625bcb42b55efb795e07ee533bb0.pid for a running server... thread 'tokio-runtime-worker' panicked at 'The global thread pool has not been initialized.: ThreadPoolBuildError { kind: IOError(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) }', /home/cloudtest/.cargo/registry/src/github.com-1ecc6299db9ec823/rayon-core-1.9.3/src/registry.rs:170:10 note: run withRUST_BACKTRACE=1environment variable to display a backtrace [2023-03-25 13:07:38] info [rpc.0] Checking /home/user/.vscode-cli/server-insiders/.b9226e1ccc11625bcb42b55efb795e07ee533bb0.log and /home/user/.vscode-cli/server-insiders/.b9226e1ccc11625bcb42b55efb795e07ee533bb0.pid for a running server... thread 'tokio-runtime-worker' panicked at 'The global thread pool has not been initialized.: ThreadPoolBuildError { kind: GlobalPoolAlreadyInitialized }', /home/cloudtest/.cargo/registry/src/github.com-1ecc6299db9ec823/rayon-core-1.9.3/src/registry.rs:170:10

The full log can be found here: https://pastebin.com/h52d6aiP

Upon running the server again, I receive: [2023-03-25 13:13:05] error https://go.microsoft.com/fwlink/?LinkID=533484#vscode ` More info at This machine not meet Visual Studio Code Server's prerequisites, expected either... - find libstdc++.so or ldconfig for GNU environments - find /lib/ld-musl-x86_64.so.1, which is required to run the Visual Studio Code Server in musl environments/remote/linux`

However, apt list --installed libc6 libstdc++6 python-minimal ca-certificates tar shows all packages installed with the right version. (Python and minimal-python are installed on 2.7.15).

sirlupusdev commented 1 year ago

After updating the server machine to Ubuntu 20.04 due to 18.04 LTS dropping support soon, the problem has disappeared all together, at least until now. Thanks for your help.