Repository navigation
Closed
Labels
feature-requestRequest for new features or functionalitylinuxIssue on Linuxplan-reviewPM-highlighted item determined to be P1 or P2remoteIssues in the code server supportremote-environmentIssues with the remote server's environmentrhel/centos
Description
- 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:
- Cmd-Shift-P, and choose Remote-SSH: Connect current window to host...
- Connection is successful. Remote tools are installed and server is running on remote
- 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
Reacted by Panwen Wang, u3u, zhangxinwu, Joe Feeney, Sanders Lauture, David Barsky, Fabian Jakobs, William Reiske, azjps, ivan and 86 more
Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalitylinuxIssue on Linuxplan-reviewPM-highlighted item determined to be P1 or P2remoteIssues in the code server supportremote-environmentIssues with the remote server's environmentrhel/centos
Activity
roblourens commentedon May 4, 2019
alexandrudima
Unauthorized client refusedcomes from some kind of auth failure, what does that imply?Qingfan Wu (@wqfan) You could try reinstalling by deleting the folder
~/.vscode-remotefrom the remote machinewqfan commentedon May 4, 2019
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.
lars18th commentedon May 4, 2019
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:
But the same error
Failed to connect to the remote extension host server (Error: Connection error: Unauthorized client refused.)This doesn't have sense!
lars18th commentedon May 4, 2019
Debug info:
This is my
.vscode-remote/.473af338e1bd9ad4d9853933da1cd9d5d9e07dc9.log:I hope it can be fixed soon. 😢
u3u commentedon May 4, 2019
The same problem.
When I remove the
~/.vscode-remotedirectory reconnect prompts the following error:When I manually create the log file, connect the prompt again:
Could not establish connection to "server".
kieferrm commentedon May 4, 2019
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.
wqfan commentedon May 4, 2019
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.logis a bit different from Lars The (@lars18th):wqfan commentedon May 4, 2019
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 withRemote-SSH: Connect current window to host....khuongduybui commentedon May 4, 2019
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?
wqfan commentedon May 4, 2019
Duy K. Bui (@khuongduybui) Thanks for your information. I have upgraded OpenSSL and been using OpenSSH:
The problem still exists.
singerb commentedon May 4, 2019
Same
version `GLIBCXX_3.4.18' not foundissue, same unable to connect (this is after replacing therealpathwithreadlink -finserver.shto allow the server to start).strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBClists up toGLIBCXX_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 compilednode-spdlogwould work?lars18th commentedon May 5, 2019
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 .
alexdima commentedon May 6, 2019
João Moreno (@joaomoreno) Sandeep Somavarapu (@sandy081)
Would you know what we need to do to make
node-spdlogwork on these environments? See #103 (comment)187 remaining items
youralmight commentedon Jul 6, 2021
I found a solution to jump over this problem, which is to build
code-serverfrom termux and run it manually. Morrison Chang discovered it and wrote a guide on dev.to. And it works for me.lars18th commentedon Jul 7, 2021
Hi Yi (Justice) Zhang (@youralmight) ,
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.
szmarczak commentedon Aug 27, 2021
I'm having
glibc-2.33installed and still gettingError: Connection error: Unauthorized client refusedtbenst commentedon Aug 30, 2021
Chuck Lantz (@Chuxel) thank you so much for your work,
remote-sshhas 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.”
jspraul commentedon Sep 6, 2021
VSCode (Insiders) runs on older distros (again?) as of Aug. 9 2021, because they could afford to statically link libstdc++:
microsoft/vscode#129360
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.6then runningrepoquery -l oracle-armtoolset-8-libstdc++ | grep libstdc++.soto find the path to the file: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).
nom3ad commentedon Oct 13, 2021
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 puttingexport LD_LIBRARY_PATH=/opt/oracle/oracle-armtoolset-8/root/usr/lib64:$LD_LIBRARY_PATHas the first line.keithy commentedon Mar 7, 2022
For NixOs added this to my configuration, providing a script that links to a working local node version.
quanvuong commentedon Apr 5, 2022
+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 --versionon the cmdline:1.66.0
e18005f0f1b33c29e81d732535d8c0e47cafb0b5
x64
daniel-scheliga commentedon Apr 6, 2022
+1, Same here.
Version: 1.66.0 (Universal)
Commit: e18005f0f1b33c29e81d732535d8c0e47cafb0b5
gatheluck commentedon Apr 8, 2022
+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 --versionresult:1.66.0
e18005f0f1b33c29e81d732535d8c0e47cafb0b5
x64
Are there any way to avoid this?
daniel-scheliga commentedon Apr 8, 2022
Quan Vuong (@quanvuong) Yoshihiro Fukuhara (@gatheluck) Downgrading the Remote - Containers Extension to v0.224.3 solved the issue for me.
lnicola commentedon Apr 8, 2022
CC microsoft/vscode#146390
gatheluck commentedon Apr 8, 2022
daniel-scheliga
This also worked for my colleague! Thank you so much!
Laurențiu Nicola (@lnicola)
Also thank you for your info!