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

ms-vscode-remote.remote-ssh: The remote host's architecture is not supported #3142

Closed
ponyatov opened this issue Jun 7, 2020 · 5 comments
Closed
Labels
ssh Issue in vscode-remote SSH

Comments

@ponyatov
Copy link

ponyatov commented Jun 7, 2020

[17:50:13.613] Log Level: 2
[17:50:13.616] remote-ssh@0.51.0
[17:50:13.617] linux x64
[17:50:13.620] SSH Resolver called for "ssh-remote+111111.simplecloud.ru", attempt 1
[17:50:13.621] SSH Resolver called for host: 111111.simplecloud.ru
[17:50:13.621] Setting up SSH remote "111111.simplecloud.ru"
[17:50:13.626] Acquiring local install lock: /tmp/vscode-remote-ssh-111111.simplecloud.ru-install.lock
[17:50:13.636] Looking for existing server data file at /home/user/.config/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-111111.simplecloud.ru-5763d909d5f12fe19f215cbfdd29a91c0fa9208a-0.51.0/data.json
[17:50:13.637] Using commit id "5763d909d5f12fe19f215cbfdd29a91c0fa9208a" and quality "stable" for server
[17:50:13.644] Install and start server if needed
[17:50:13.675] Checking ssh with "ssh -V"
[17:50:13.706] > OpenSSH_7.9p1 Debian-10+deb10u2, OpenSSL 1.1.1d  10 Sep 2019
[17:50:13.710] askpass server listening on /run/user/1000/vscode-ssh-askpass-c8a1e952a0426dbf18da5dc1d6411a0988a48715.sock
[17:50:13.710] Spawning local server with {"ipcHandlePath":"/run/user/1000/vscode-ssh-askpass-e14a6425e73fa14f1622f804ef49569023243930.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","38743","-o","ConnectTimeout=15","111111.simplecloud.ru"],"dataFilePath":"/home/user/.config/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-111111.simplecloud.ru-5763d909d5f12fe19f215cbfdd29a91c0fa9208a-0.51.0/data.json"}
[17:50:13.710] Local server env: {"DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/home/user/.vscode/extensions/ms-vscode-remote.remote-ssh-0.51.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/usr/share/code/code","VSCODE_SSH_ASKPASS_MAIN":"/home/user/.vscode/extensions/ms-vscode-remote.remote-ssh-0.51.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/run/user/1000/vscode-ssh-askpass-c8a1e952a0426dbf18da5dc1d6411a0988a48715.sock"}
[17:50:13.716] Spawned 11811
[17:50:13.838] > local-server> Spawned ssh: 11819
[17:50:13.841] stderr> OpenSSH_7.9p1 Debian-10+deb10u2, OpenSSL 1.1.1d  10 Sep 2019
[17:50:14.196] stderr> debug1: Server host key: ecdsa-sha2-nistp256 SHA256:idjb2+hTyymiuSHvvqddeviZUCqzTM/MO+KS52MjTww
[17:50:14.527] stderr> Authenticated to 111111.simplecloud.ru ([85.143.173.145]:22).
[17:50:14.709] > Linux 111111.simplecloud.ru 4.19.0-9-686-pae #1 SMP Debian 4.19.118-2 (2020-04-29) i686
> 
> The programs included with the Debian GNU/Linux system are free software;
> the exact distribution terms for each program are described in the
> individual files in /usr/share/doc/*/copyright.
> 
> Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> permitted by applicable law.
[17:50:14.755] > ready: f45a47c94786
[17:50:14.803] > Linux 4.19.0-9-686-pae #1 SMP Debian 4.19.118-2 (2020-04-29)
[17:50:14.804] Platform: linux
[17:50:14.978] > f45a47c94786: running
[17:50:14.983] > Unsupported architecture: i686
> f45a47c94786##27##
[17:50:14.983] Received install output: f45a47c94786##27##
[17:50:14.984] Unsupported architecture
[17:50:14.985] Terminating local server
[17:50:14.986] Resolver error: The remote host's architecture is not supported
[17:50:14.991] ------
[17:50:14.992] Local server exit: 15
$ uname -a
Linux 172763.simplecloud.ru 4.19.0-9-686-pae #1 SMP Debian 4.19.118-2 (2020-04-29) i686 GNU/Linux
@chrmarti chrmarti added the ssh Issue in vscode-remote SSH label Jun 8, 2020
@deanhouseholder
Copy link

deanhouseholder commented Jun 26, 2020

I believe this is similar to: #1529

That ticket was closed saying Node doesn't support 32-bit architecture. But I think there is more nuance to it than that.

It appears to be running the following:
ssh -T -D [port] [user]@[host] bash

This always hangs to connect for me when connecting to 32-bit Linux servers. But if I connect with:
ssh [user]@[host]

It works. The problem seems to be the "-T" and the "bash" arguments. If I include either of them it fails but removing both works. The -D [port] argument doesn't seem to affect it.

So if it's possible, can Remote-SSH try removing these arguments on failure and trying again?

@davemecha
Copy link

I have trouble connecting to an old Raspberry Pi 2 via VSCode. When logging in VSCode gives me an error message, Could not establish connection to "IP_ADDRESS": The remote host's architecture is not supported. On another Raspberry 2 it was possible to connect. I tried uname -m on the Raspberry and it tells me armv6l.

Is it possible that the RasPi with the working VSCode connection has a processor architecture with armv7l?

What can I do to get VSCode connected to my Raspberry 2?

@zakutin
Copy link

zakutin commented Oct 6, 2020

I think the explanation is here #669

@ponyatov
Copy link
Author

ponyatov commented Oct 8, 2020

The whole Microsoft team unable to write a tiny portable C program for the remote side server, and require the full Node.js installed?
Why not to use generic GDB stub + the same generic SSH?

@Chuxel
Copy link
Member

Chuxel commented Oct 12, 2020

The whole Microsoft team unable to write a tiny portable C program for the remote side server, and require the full Node.js installed?
Why not to use generic GDB stub + the same generic SSH?

Extensions and much more run remotely with Remote - SSH. Fundamentally extensions are written in Node.js. Many of VS Code's built in features are written as extensions, so there is no workaround here. This is what sets it apart from using SSHFS or something along those lines.

As a result, we unfortunately we won't be able to meet this request.

@Chuxel Chuxel closed this as completed Oct 12, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

6 participants