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

Neither curl nor wget is installed - can't download the Server (wget is installed remote) #3054

Closed
derived-coder opened this issue May 27, 2020 · 5 comments
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH

Comments

@derived-coder
Copy link

  • VSCode Version:VSCode Version:1.45.1
  • Local OS Version: Ubuntu 18.04 x64
  • Remote OS Version: Linux 4.14.137 Architecture: arm64 (own yocto build)
  • Remote Extension/Connection Type: SSH

Steps to Reproduce:

  1. Login via ssh remote connection in VS code

wget/curl is installed on my local dev machine.
wget is installed on the remote machine, but not curl.

BusyBox v1.29.3 (2020-05-18 16:27:37 UTC) multi-call binary.

The VScode logs while trying to connect remote:

[12:10:26.687] Log Level: 2
[12:10:26.689] remote-ssh@0.51.0
[12:10:26.690] linux x64
[12:10:26.692] SSH Resolver called for "ssh-remote+mttf", attempt 1
[12:10:26.695] SSH Resolver called for host: mttf
[12:10:26.696] Setting up SSH remote "mttf"
[12:10:26.699] Acquiring local install lock: /tmp/vscode-remote-ssh-mttf-install.lock
[12:10:26.721] Looking for existing server data file at /lhome/user/.config/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-mttf-5763d909d5f12fe19f215cbfdd29a91c0fa9208a-0.51.0/data.json
[12:10:26.721] Using commit id "5763d909d5f12fe19f215cbfdd29a91c0fa9208a" and quality "stable" for server
[12:10:26.722] Install and start server if needed
[12:10:26.726] Checking ssh with "ssh -V"
[12:10:26.733] > OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017
[12:10:26.736] askpass server listening on /run/user/76080/vscode-ssh-askpass-aaa1905717ac9adfab9688ad5b4852612052b91e.sock
[12:10:26.736] Spawning local server with {"ipcHandlePath":"/run/user/76080/vscode-ssh-askpass-4d37bc499c6c919556d08ac05fac8908f6ad1c71.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","36679","-o","ConnectTimeout=15","mttf"],"dataFilePath":"/lhome/user/.config/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-mttf-5763d909d5f12fe19f215cbfdd29a91c0fa9208a-0.51.0/data.json"}
[12:10:26.736] Local server env: {"DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/lhome/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":"/lhome/user/.vscode/extensions/ms-vscode-remote.remote-ssh-0.51.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/run/user/76080/vscode-ssh-askpass-aaa1905717ac9adfab9688ad5b4852612052b91e.sock"}
[12:10:26.740] Spawned 4206
[12:10:26.808] > local-server> Spawned ssh: 4214
[12:10:26.809] stderr> OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017
[12:10:29.786] stderr> Server not found in Kerberos database
[12:10:29.786] stderr> 
[12:10:29.901] stderr> debug1: Server host key: ecdsa-sha2-nistp256 SHA256:PfliJWCzM/jQTKuJCFKm16LJkhvou/g6rMfKXJvdEs0
[12:10:30.068] stderr> Authenticated to 127.0.0.1 ([127.0.0.1]:35781).
[12:10:30.299] > ready: f20af5c14ac0
[12:10:30.353] > Linux 4.14.137 #1 SMP PREEMPT Tue May 19 21:46:23 UTC 2020
[12:10:30.354] Platform: linux
[12:10:30.438] > f20af5c14ac0: running
[12:10:30.564] stderr> bash: line 104: ldd: command not found
[12:10:30.564] > Missing GLIBC >= 2.17!
> Found version 
> f20af5c14ac0$$1$$
> Acquiring lock on /home/root/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/vscode-remote-lock.root.5763d909d5f12fe19f215cbfdd29a91c0fa9208a
> \ln /home/root/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/vscode-remote-lock.root.5763d909d5f12fe19f215cbfdd29a91c0fa9208a.target /home/root/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/vscode-remote-lock.root.5763d909d5f12fe19f215cbfdd29a91c0fa9208a
> Installing to /home/root/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a...
[12:10:30.568] > f20af5c14ac0%%1%%
[12:10:30.569] > Neither wget nor curl is installed
> Trigger client server download
> f20af5c14ac0:trigger_server_download
> platform==linux==
> vscodeArch==arm64==
> destFolder==/home/root/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a==
> f20af5c14ac0:trigger_server_download_end
> Waiting for client to transfer server archive...
> Waiting for /home/root/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/vscode-scp-done.flag and vscode-server.tar.gz to exist
>  
[12:10:30.569] Got request to download on client for {"platform":"linux","arch":"arm64","destFolder":"/home/root/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a"}
[12:10:30.570] Downloading VS Code server locally...
[12:10:30.570] stderr> bash: line 317: printenv: command not found
[12:10:31.354] Downloaded VS Code server to /tmp/54f381cd-42a4-437c-bc61-0cc8b4bbe2eb
[12:10:31.355] Renamed VS Code server to /tmp/vscode_server_1590574231354/vscode-server.tar.gz
[12:10:31.358] Checking ssh with "ssh -V"
[12:10:31.364] > OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017
[12:10:31.364] Testing scp with "scp"
[12:10:31.370] scp exited with code: 1
[12:10:31.371] Got stderr from scp: usage: scp [-346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2
[12:10:31.371] Copying file to remote with scp -o ConnectTimeout=15 vscode-server.tar.gz vscode-scp-done.flag mttf:/home/root/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a
[12:10:31.372] Using cwd: file:///tmp/vscode_server_1590574231354
[12:10:34.820] > vscode-server.tar.gz                            0%    0     0.0KB/s   --:-- ETA
[12:10:36.174] > vscode-server.tar.gz                            7% 2128KB   1.5MB/s   00:16 ETA
[12:10:36.901] > vscode-server.tar.gz                           10% 2896KB   1.5MB/s   00:16 ETA
[12:10:37.875] > vscode-server.tar.gz                           14% 4240KB   1.5MB/s   00:16 ETA
[12:10:39.312] > vscode-server.tar.gz                           19% 5472KB   1.4MB/s   00:15 ETA
[12:10:39.833] > vscode-server.tar.gz                           22% 6480KB   1.5MB/s   00:14 ETA
[12:10:42.538] > vscode-server.tar.gz                           27% 7712KB   1.4MB/s   00:14 ETA
[12:10:43.375] > vscode-server.tar.gz                           31% 8944KB   1.4MB/s   00:13 ETA
[12:10:44.777] > vscode-server.tar.gz                           35%   10MB   1.3MB/s   00:13 ETA
[12:10:45.323] > vscode-server.tar.gz                           40%   11MB   1.4MB/s   00:11 ETA
[12:10:46.998] > vscode-server.tar.gz                           44%   12MB   1.4MB/s   00:11 ETA
[12:10:48.332] > vscode-server.tar.gz                           48%   14MB   1.3MB/s   00:10 ETA
[12:10:48.824] > vscode-server.tar.gz                           52%   15MB   1.4MB/s   00:09 ETA
[12:10:50.754] > vscode-server.tar.gz                           53%   15MB   1.3MB/s   00:10 ETA
[12:10:51.504] > vscode-server.tar.gz                           57%   16MB   1.3MB/s   00:09 ETA
[12:10:51.834] > vscode-server.tar.gz                           59%   17MB   1.4MB/s   00:08 ETA
[12:10:54.449] > vscode-server.tar.gz                           61%   17MB   1.2MB/s   00:08 ETA
[12:10:55.317] > vscode-server.tar.gz                           65%   18MB   1.3MB/s   00:07 ETA
[12:10:55.885] > vscode-server.tar.gz                           68%   19MB   1.3MB/s   00:07 ETA
[12:10:57.196] > vscode-server.tar.gz                           69%   19MB   1.2MB/s   00:07 ETA
[12:10:57.870] > vscode-server.tar.gz                           73%   20MB   1.2MB/s   00:06 ETA
[12:10:59.677] > vscode-server.tar.gz                           77%   22MB   1.2MB/s   00:05 ETA
[12:11:00.163] > vscode-server.tar.gz                           82%   23MB   1.3MB/s   00:03 ETA
[12:11:02.159] > vscode-server.tar.gz                           86%   24MB   1.2MB/s   00:03 ETA
[12:11:02.976] > vscode-server.tar.gz                           94%   26MB   1.4MB/s   00:01 ETA
[12:11:04.331] > vscode-server.tar.gz                           95%   26MB   1.3MB/s   00:01 ETA
[12:11:05.254] > vscode-server.tar.gz                           99%   28MB   1.3MB/s   00:00 ETA
[12:11:06.886] > vscode-server.tar.gz                          100%   28MB 887.4KB/s   00:32    
[12:11:06.972] > vscode-scp-done.flag                            0%    0     0.0KB/s   --:-- ETA
[12:11:07.089] > vscode-scp-done.flag                          100%    9     0.1KB/s   00:00    
[12:11:07.388] "Copy server to host" terminal command done
[12:11:09.589] > Found flag and server on host
[12:11:09.631] > f20af5c14ac0%%2%%
[12:11:10.978] > WARNING: VS Code Server is running but its logfile is missing. Don't delete the VS Code Server manually, run the command 'Uninstall VS Code Server'.
[12:11:10.983] > Starting server with command... /home/root/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/server.sh --host=127.0.0.1 --enable-remote-auto-shutdown  --port=0 &> "/home/root/.vscode-server/.5763d909d5f12fe19f215cbfdd29a91c0fa9208a.log" < /dev/null
[12:11:10.984] stderr> bash: line 369: printenv: command not found
[12:11:10.987] > Waiting for server log...
[12:11:11.490] >  
> *
> * Reminder: You may only use this software with Visual Studio family products,
> * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)
> *
>  
[12:11:11.504] > Neither wget nor curl is installed
> f20af5c14ac0##26##
[12:11:11.505] Received install output: f20af5c14ac0##26##
[12:11:11.505] Neither curl nor wget is installed - can't download the Server
[12:11:11.506] Terminating local server
[12:11:11.507] Resolver error: Downloading VS Code Server failed - please install either curl or wget on the remote.
[12:11:11.511] ------




[12:11:11.512] Local server exit: 15

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

@chrmarti chrmarti added the ssh Issue in vscode-remote SSH label Jun 3, 2020
@amazingAmy
Copy link

Have you fixed the problem? I have the same problem :(

@Chuxel
Copy link
Member

Chuxel commented Sep 22, 2020

You need to install curl or wget on the server as the error says. For Ubuntu, run...

sudo apt-get install curl

...on the server.

@Chuxel Chuxel added the info-needed Issue requires more information from poster label Sep 29, 2020
@Chuxel
Copy link
Member

Chuxel commented Sep 29, 2020

@derived-coder Did installing wget or curl resolve the issue?

@amazingAmy
Copy link

@derived-coder Did installing wget or curl resolve the issue?

yes, thanks. Actually, it is because that I use a wrong openssl lib... Thanks for your response!

@Chuxel
Copy link
Member

Chuxel commented Sep 29, 2020

Great - Closing as resolved.

@Chuxel Chuxel closed this as completed Sep 29, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

4 participants