Skip to content

Failed to connect to the remote extension host server due to unsupported, out of date libraries like glibc (e.g. older CentOS version) #103

Closed

Description

@wqfan
  • VSCode Version: Version 1.34.0-insider (1.34.0-insider)
  • Local OS Version: macOS 10.14.4 (18E226)
  • Remote OS Version: Amazon Linux Bare Metal release 2012.03
  • Remote Extension/Connection Type: SSH

Steps to Reproduce:

  1. Cmd-Shift-P, and choose Remote-SSH: Connect current window to host...
  2. Connection is successful. Remote tools are installed and server is running on remote
  3. VS Code shows an error at right-bottom: Failed to connect to the remote extension host server (Error: Connection error: Unauthorized client refused.)

AllowTcpForwarding is enabled on the remote server.

Here is the full output from "Remote - SSH" channel:

SSH Resolver called for "ssh-remote+dev-server"
SSH Resolver called for host: dev-server
Setting up SSH remote "dev-server"
Using commit id "473af338e1bd9ad4d9853933da1cd9d5d9e07dc9" and quality "insider" for server
Install and start server if needed
> bash: no job control in this shell
> Found existing installation...
> Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
> Found running server...
>  
> *
> * Reminder: You may only use this software with Visual Studio family products,
> * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)
> *
>  
> bb80525e-2122-4fa5-8e4a-9d91821eeb83==45539==
"install" terminal command done
Received install output: bb80525e-2122-4fa5-8e4a-9d91821eeb83==45539==
Server is listening on port 45539
Spawning tunnel with: ssh  dev-server -N -L localhost:32546:localhost:45539
Spawned SSH tunnel between local port 32546 and remote port 45539
Waiting for ssh tunnel to be ready
Tunneling remote port 45539 to local port 32546
Resolving "ssh-remote+dev-server" to "localhost:32546", attempt: 1

Logs from "Log (Window)" channel:

[2019-05-03 18:02:25.843] [renderer1] [error] Connection error: Unauthorized client refused.: Error: Connection error: Unauthorized client refused.
    at v (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1544:9)
    at t.onControlMessage.o (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1542:930)
    at d.fire (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:77:818)
    at a (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:321:48)
    at e (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:321:94)
    at d.fire (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:77:818)
    at S._receiveMessage (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:330:65)
    at S._socketDisposables.push._socketReader.onMessage.e (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:327:243)
    at d.fire (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:77:818)
    at g.acceptChunk (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:323:801)
    at _register._socket.onData.e (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:323:153)
    at Socket.t (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:332:235)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:279:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onread (net.js:636:20)
[2019-05-03 18:02:25.844] [renderer1] [error] Cannot read property 'extensions' of null: TypeError: Cannot read property 'extensions' of null
    at e.<anonymous> (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3850:751)
    at Generator.next (<anonymous>)
    at r (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:34:454)
    at process._tickCallback (internal/process/next_tick.js:68:7)
[2019-05-03 18:02:25.844] [renderer1] [error] Connection error: Unauthorized client refused.: Error: Connection error: Unauthorized client refused.
    at v (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1544:9)
    at t.onControlMessage.o (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1542:930)
    at d.fire (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:77:818)
    at a (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:321:48)
    at e (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:321:94)
    at d.fire (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:77:818)
    at S._receiveMessage (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:330:65)
    at S._socketDisposables.push._socketReader.onMessage.e (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:327:243)
    at d.fire (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:77:818)
    at g.acceptChunk (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:323:801)
    at _register._socket.onData.e (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:323:153)
    at Socket.t (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:332:235)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:279:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onread (net.js:636:20)
[2019-05-03 18:02:28.207] [renderer1] [error] Could not fetch environment: Error: Could not fetch environment
    at d.getEnvironment.then.e (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3813:413)

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

Activity

  1. roblourens commented on May 4, 2019

    @roblourens
    Member

    alexandrudima Unauthorized client refused comes from some kind of auth failure, what does that imply?

    Qingfan Wu (@wqfan) You could try reinstalling by deleting the folder ~/.vscode-remote from the remote machine

  2. wqfan commented on May 4, 2019

    @wqfan
    Author

    roblourens Thanks for your follow up on this issue. I have tried deleting that folder a few times and it doesn't make any difference.

  3. lars18th commented on May 4, 2019

    @lars18th

    Hi,

    Identical problem.
    Futhermore in the "new" VSCode window (when connecting with "Connect to host in new window") in the Terminal after all I see:

    Connected to SSH Host - Please do not close this terminal
    

    But the same error
    Failed to connect to the remote extension host server (Error: Connection error: Unauthorized client refused.)

    This doesn't have sense!

  4. lars18th commented on May 4, 2019

    @lars18th

    Debug info:

    This is my .vscode-remote/.473af338e1bd9ad4d9853933da1cd9d5d9e07dc9.log:

    Remote configuration data at /root/.vscode-remote
    
    
    *
    * Visual Studio Code Server
    *
    * Reminder: You may only use this software with Visual Studio family products,
    * as described in the license https://aka.ms/vscode-remote/license
    *
    
    
    Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by /root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/node_modules/spdlog/build/Release/spdlog.node)
        at Object.Module._extensions..node (internal/modules/cjs/loader.js:731:18)
        at Module.load (internal/modules/cjs/loader.js:612:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
        at Function.Module._load (internal/modules/cjs/loader.js:543:3)
        at Module.require (internal/modules/cjs/loader.js:650:17)
        at Module.patchedRequire [as require] (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/node_modules/diagnostic-channel/dist/src/patchRequire.js:14:46)
        at require (internal/modules/cjs/helpers.js:20:18)
        at bindings (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/node_modules/bindings/bindings.js:81:44)
        at Object.<anonymous> (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/node_modules/spdlog/index.js:3:35)
        at Module._compile (internal/modules/cjs/loader.js:702:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
        at Module.load (internal/modules/cjs/loader.js:612:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
        at Function.Module._load (internal/modules/cjs/loader.js:543:3)
        at Module.require (internal/modules/cjs/loader.js:650:17)
        at Module.patchedRequire [as require] (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/node_modules/diagnostic-channel/dist/src/patchRequire.js:14:46)
        at require (internal/modules/cjs/helpers.js:20:18)
        at Function.i [as __$__nodeRequire] (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:31:542)
        at Object.t.createSpdLogService (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/agent/remoteExtensionHostAgent.js:213:301)
        at G.<anonymous> (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/agent/remoteExtensionHostAgent.js:363:833)
        at Generator.next (<anonymous>)
        at /root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/agent/remoteExtensionHostAgent.js:16:388
        at new Promise (<anonymous>)
        at r (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/agent/remoteExtensionHostAgent.js:16:165)
        at G._createServices (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/agent/remoteExtensionHostAgent.js:363:624)
        at Function.create (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/agent/remoteExtensionHostAgent.js:363:554)
        at T.<anonymous> (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/agent/remoteExtensionHostAgent.js:370:597)
        at Generator.next (<anonymous>)
        at /root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/agent/remoteExtensionHostAgent.js:16:388
        at new Promise (<anonymous>)
        at r (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/agent/remoteExtensionHostAgent.js:16:165)
        at T.start (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/agent/remoteExtensionHostAgent.js:370:516)
        at Object.<anonymous> (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/agent/remoteExtensionHostAgent.js:379:52)
        at Function.t._safeInvokeFunction (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:20:173)
        at Function.t._invokeFactory (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:20:420)
        at t.complete (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:20:657)
        at s._onModuleComplete (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:30:796)
        at s._onModuleComplete (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:31:41)
        at s._onModuleComplete (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:31:41)
        at s._onModuleComplete (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:31:41)
        at s._onModuleComplete (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:31:41)
        at s._onModuleComplete (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:31:41)
        at s._resolve (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:30:356)
        at s.defineModule (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:24:768)
        at r (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:28:919)
        at Object.l (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:36:405)
        at Function.t._safeInvokeFunction (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:20:173)
        at Function.t._invokeFactory (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:20:420)
        at t.complete (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:20:657)
        at s._onModuleComplete (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:30:796)
        at s._onModuleComplete (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:31:41)
        at s._resolve (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:30:356)
        at s.defineModule (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:24:768)
        at r (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:31:950)
        at f (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:17:524)
        at Object.<anonymous> (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/agent/remoteExtensionHostAgent.nls.js:4:1)
        at t._loadAndEvalScript (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:17:568)
        at /root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:17:285
        at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:440:3)
    IP Address: 192.168.1.142
    Extension host agent listening on 56216
    { [Error: ENOENT: no such file or directory, scandir '/root/.vscode-remote/data/logs']
      errno: -2,
      code: 'ENOENT',
      syscall: 'scandir',
      path: '/root/.vscode-remote/data/logs' }
    Unauthorized client refused.
    Unauthorized client refused.
    Unauthorized client refused.
    Unauthorized client refused.
    Unauthorized client refused.
    Unauthorized client refused.
    Unauthorized client refused.
    Unauthorized client refused.
    

    I hope it can be fixed soon. 😢

  5. u3u commented on May 4, 2019

    @u3u

    The same problem.
    When I remove the ~/.vscode-remote directory reconnect prompts the following error:

    > cat: ~/.vscode-remote/.473af338e1bd9ad4d9853933da1cd9d5d9e07dc9.log: No such file or directory
    > Server did not start successfully. Full server log:
    > cat: ~/.vscode-remote/.473af338e1bd9ad4d9853933da1cd9d5d9e07dc9.log411693af-6a8f-4de5-9053-7abf6ae26efe====
    > : No such file or directory
    "install" terminal command done
    Received install output: : No such file or directory
    Failed to parse remote port from server output: : No such file or directory

    When I manually create the log file, connect the prompt again:
    Could not establish connection to "server".

    > Server did not start successfully. Full server log:
    > 
    > 127e184a-8aae-450a-9261-613691a553db====
    "install" terminal command done
    Received install output: 127e184a-8aae-450a-9261-613691a553db====
    Failed to parse remote port from server output: 127e184a-8aae-450a-9261-613691a553db====
  6. kieferrm commented on May 4, 2019

    @kieferrm
    Member

    Qingfan Wu (@wqfan) it looks like you're running Amazon Linux Bare Metal release 2012.03. I'm guessing that's causing your issue. If possible, please try a Ubuntu 18.04.

    Lars The (@lars18th) what server OS are you running.

  7. wqfan commented on May 4, 2019

    @wqfan
    Author

    Kai Maetzel (@kieferrm) It can be a problem of the OS. Does the remote extension only work with Ubuntu? Unfortunately, this is the only development server I have and I can't change the OS.

    My ~/.vscode-remote/.473af338e1bd9ad4d9853933da1cd9d5d9e07dc9.log is a bit different from Lars The (@lars18th):

    Remote configuration data at /home/qingfanw/.vscode-remote
    
    
    *
    * Visual Studio Code Server
    *
    * Reminder: You may only use this software with Visual Studio family products,
    * as described in the license https://aka.ms/vscode-remote/license
    *
    
    
    IP Address: 172.22.135.15
    Extension host agent listening on 38337
    Unauthorized client refused.
    Unauthorized client refused.
    
  8. wqfan commented on May 4, 2019

    @wqfan
    Author

    u3u I think you shouldn't remove the folder directly.

    Try the Remote SSH: Uninstall VS Code Server from Host... command and then reinstall it with Remote-SSH: Connect current window to host....

  9. khuongduybui commented on May 4, 2019

    @khuongduybui

    Qingfan Wu (@wqfan) I am not sure it's the OS. I just tried a public AL2012 EC2 instance (not AL2) and it worked just fine. (Of course it's named 2018.03 but we all know it's AL2012.)

    So the first thing I checked is sshd version.
    AL2012: OpenSSH_7.4p1, OpenSSL 1.0.1k-fips 8 Jan 2015
    AL2018: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017

    Are we screwed because our super-legacy dev desktops still use OpenSSL 1.0.1 for sshd?

  10. wqfan commented on May 4, 2019

    @wqfan
    Author

    Duy K. Bui (@khuongduybui) Thanks for your information. I have upgraded OpenSSL and been using OpenSSH:

    $ openssl version                                                                                                                                    255 ↵
    OpenSSL 1.0.2r  26 Feb 2019
    
    $ sshd -V                                                                                                                                             1 ↵
    OpenSSH_8.0p1, OpenSSL 1.0.2r  26 Feb 2019
    

    The problem still exists.

  11. singerb commented on May 4, 2019

    @singerb

    Same version `GLIBCXX_3.4.18' not found issue, same unable to connect (this is after replacing the realpath with readlink -f in server.sh to allow the server to start). strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBC lists up to GLIBCXX_3.4.17, cat /etc/debian_version -> 7.9. Like many people, this is a sandbox environment and I don't have access to mess with the software on it. Perhaps a statically compiled node-spdlog would work?

  12. lars18th commented on May 5, 2019

    @lars18th

    Lars The (@lars18th) what server OS are you running.

    Debian 7 x64 sandbox. No other alternative.

    Please, think on compile dependencies STATICALLY to resolve these problems.
    Note too that I feel this issue is related to #84 .

  13. added
    remote
    on May 6, 2019
  14. alexdima commented on May 6, 2019

    @alexdima
    Member

    João Moreno (@joaomoreno) Sandeep Somavarapu (@sandy081)

    Would you know what we need to do to make node-spdlog work on these environments? See #103 (comment)

  15. 187 remaining items

  16. youralmight commented on Jul 6, 2021

    @youralmight

    I found a solution to jump over this problem, which is to build code-server from termux and run it manually. Morrison Chang discovered it and wrote a guide on dev.to. And it works for me.

  17. lars18th commented on Jul 7, 2021

    @lars18th

    Hi Yi (Justice) Zhang (@youralmight) ,

    I found a solution to jump over this problem, which is to build code-server from termux and run it manually. Morrison Chang discovered it and wrote a guide on dev.to. And it works for me.

    This an interesting workaround. But it's based on changing the VS Code with the code-server. Then it's not possible to use the Remote Extension (see: https://github.com/cdr/code-server/blob/v3.5.0/doc/FAQ.md#differences-compared-to-vs-code). In fact, what we want is to develop (compile/debug) in some target Linux environments that are not supported because they're consired old by Microsoft (even they could be compatible). Perhaps at some time a new opensource alternative of the plugin will appear: coder/code-server#1315.

    Regards.

  18. szmarczak commented on Aug 27, 2021

    @szmarczak

    I'm having glibc-2.33 installed and still getting Error: Connection error: Unauthorized client refused

  19. tbenst commented on Aug 30, 2021

    @tbenst

    Chuck Lantz (@Chuxel) thank you so much for your work,remote-ssh has been the single most game changing tool for me as a developer/scientist in the last five years. I spend many hours a day using the extension, and I’m super grateful :).

    Would you/the devs be willing to discuss adopting the solution in #103 (comment)? That implementation, of using the local node if it matches the required version, and defaulting to the current behavior of downloading if it does not, would solve 99% of the issues in this thread, dramatically improve using the number of distributions supported, all while minimally impacting support surface.

    The challenge with the solution is most people on this thread have not adopted it, as it requires patching this extension after every update. This isn’t hard to do as the source code is “just javascript.”

  20. jspraul commented on Sep 6, 2021

    @jspraul

    VSCode (Insiders) runs on older distros (again?) as of Aug. 9 2021, because they could afford to statically link libstdc++:

    microsoft/vscode#129360

    use the libcxx library from chromium and statically link it to our native modules. Advantage of this approach is that the runtime and native modules use the same libcxx library. The increase in bundle size is significantly small (~10MB). Currently we only do this on linux.

    I encountered this VSCode Remote - SSH "GLIBCXX_3.4.20' not found (required by [...]/node_modules/spdlog" issue on Oracle-Linux-7.9-aarch64 (ARM on the Oracle Cloud free tier). The solution is to put a newer version of libstdc++ earlier on the share library / dynamic loader path. I found the package to install by choosing the most recent version returned by yum whatprovides *libstdc++.so.6 then running repoquery -l oracle-armtoolset-8-libstdc++ | grep libstdc++.so to find the path to the file:

    sudo yum install oracle-armtoolset-8-libstdc++
    echo ' 
    export LD_LIBRARY_PATH=/opt/oracle/oracle-armtoolset-8/root/usr/lib64:$LD_LIBRARY_PATH
    ' >> ~/.bashrc
    

    Others have obtained libstdc++.so.6 for CentOS7 arch x86_64 by grabbing it from anaconda3, using Ghettoforge, or building from source.

    As far as I can tell, node-spdlog instantiates the header-only spdlog, which is tested all the way back to GCC 4.8.1. It might be worth changing the node-spdlog build to specify an old compiler version for maximum compatibility, e.g. GCC 4.8.3 / GLIBCXX_3.4.19 (I'm not sure that's right).

  21. nom3ad commented on Oct 13, 2021

    @nom3ad

    Thanks for the workaround jspraul. I was facing the same issue on Oracle Cloud "Oracle Linux Server 7.9" ARM machine.
    For some reason, updating '~/.bashrc' wasn't working for me. So I had to patch ~/.vscode-server/bin/<some-uuid>/server.sh, by putting export LD_LIBRARY_PATH=/opt/oracle/oracle-armtoolset-8/root/usr/lib64:$LD_LIBRARY_PATH as the first line.

  22. keithy commented on Mar 7, 2022

    @keithy

    For NixOs added this to my configuration, providing a script that links to a working local node version.

    { config, pkgs, ... }:
    
    let
      fix_node_server = pkgs.writeScriptBin "fix_node_server" ''
          #! /usr/bin/env bash
    
          set u+
          for node in "$HOME"/.vscode-server/bin/*/node
          do
            if "$node" --version; then
              echo "Node is working"
            else
              echo "Needs fixing..."
              mv "$node" "$node.backup"
              ln -s "/run/current-system/sw/bin/node" "$node"
              if "$node" --version; then
                echo  "Fixed: Node is now working"
              fi
            fi
          done
      '';
    
    in
    {
      environment.systemPackages = [ 
        pkgs.nodejs-14_x 
        fix_node_server
      ];
    }
    
  23. quanvuong commented on Apr 5, 2022

    @quanvuong

    +1, I'm having this issue when using VSCode to connect to a running pod in a Kubernetes cluster.

    This is the output of executing code --version on the cmdline:

    1.66.0
    e18005f0f1b33c29e81d732535d8c0e47cafb0b5
    x64

  24. daniel-scheliga commented on Apr 6, 2022

    @daniel-scheliga

    +1, Same here.
    Version: 1.66.0 (Universal)
    Commit: e18005f0f1b33c29e81d732535d8c0e47cafb0b5

    ERR Connection error: Unauthorized client refused: auth mismatch: Error: Connection error: Unauthorized client refused: auth mismatch
        at V (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:616:55705)
        at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:616:43257
        at S.invoke (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:67:145)
        at s.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:67:1856)
        at u.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:83:19607)
        at g._receiveMessage (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:83:24238)
        at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:83:21722
        at S.invoke (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:67:145)
        at s.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:67:1856)
        at s.acceptChunk (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:83:16438)
        at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:83:15568
        at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:616:40443
        at S.invoke (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:67:145)
        at s.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:67:1856)
        at FileReader._fileReader.onload (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:616:38374)
    
  25. gatheluck commented on Apr 8, 2022

    @gatheluck

    +1, my colleague who are using vscode with this extension sent report and he cannot connect to a running pod in a Kubernetes cluster from 3days before.

    code --version result:
    1.66.0
    e18005f0f1b33c29e81d732535d8c0e47cafb0b5
    x64

    Are there any way to avoid this?

  26. daniel-scheliga commented on Apr 8, 2022

    @daniel-scheliga

    Quan Vuong (@quanvuong) Yoshihiro Fukuhara (@gatheluck) Downgrading the Remote - Containers Extension to v0.224.3 solved the issue for me.

  27. lnicola commented on Apr 8, 2022

    @lnicola
  28. gatheluck commented on Apr 8, 2022

    @gatheluck

    Quan Vuong (@quanvuong) Yoshihiro Fukuhara (@gatheluck) Downgrading the Remote - Containers Extension to v0.224.3 solved the issue for me.

    daniel-scheliga
    This also worked for my colleague! Thank you so much!

    Laurențiu Nicola (@lnicola)
    Also thank you for your info!

  29. locked and limited conversation to collaborators on Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature-requestlinuxplan-reviewremoteremote-environmentrhel/centos

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions