It seems that the transfered vscode-cli via scp is broken. But how can I get a correct vacode-cli.tar?
The full log:
[14:55:01.240] Log Level: 2
[14:55:01.244] VS Code version: 0.40.4
[14:55:01.244] Remote-SSH version: remote-ssh@0.112.0
[14:55:01.244] darwin arm64
[14:55:01.249] SSH Resolver called for "ssh-remote+basemind-workspace", attempt 1
[14:55:01.249] "remote.SSH.useLocalServer": true
[14:55:01.249] "remote.SSH.useExecServer": true
[14:55:01.249] "remote.SSH.path": undefined
[14:55:01.249] "remote.SSH.configFile": undefined
[14:55:01.249] "remote.SSH.useFlock": true
[14:55:01.249] "remote.SSH.lockfilesInTmp": false
[14:55:01.249] "remote.SSH.localServerDownload": auto
[14:55:01.249] "remote.SSH.remoteServerListenOnSocket": false
[14:55:01.250] "remote.SSH.showLoginTerminal": false
[14:55:01.250] "remote.SSH.defaultExtensions": ["gitpod.gitpod-remote-ssh"]
[14:55:01.250] "remote.SSH.loglevel": 2
[14:55:01.250] "remote.SSH.enableDynamicForwarding": true
[14:55:01.250] "remote.SSH.enableRemoteCommand": false
[14:55:01.250] "remote.SSH.serverPickPortsFromRange": {}
[14:55:01.250] "remote.SSH.serverInstallPath": {}
[14:55:01.255] SSH Resolver called for host: basemind-workspace
[14:55:01.255] Setting up SSH remote "basemind-workspace"
[14:55:01.257] Acquiring local install lock: /var/folders/jp/tv2h5jdx70x7ys48c98tylqm0000gn/T/vscode-remote-ssh-d45d23fc-install.lock
[14:55:01.258] Looking for existing server data file at /Users/luoyuchu/Library/Application Support/Cursor/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-d45d23fc-63dae81aea2c3fc079420fe72578a8eef26ba870-0.112.0-es/data.json
[14:55:01.259] Using commit id "63dae81aea2c3fc079420fe72578a8eef26ba870" and quality "stable" for server
[14:55:01.261] Install and start server if needed
[14:55:01.263] PATH: /opt/homebrew/opt/libpq/bin:/Users/luoyuchu/.bun/bin:/Users/luoyuchu/Library/pnpm:/Users/luoyuchu/.nvm/versions/node/v18.11.0/bin:/Users/luoyuchu/.pyenv/shims:/Users/luoyuchu/Library/Python/3.9/bin:/Users/luoyuchu/.moon/tools/moon/latest:~/.fig/bin:/Users/luoyuchu/.local/share/solana/install/active_release/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/usr/local/corplink/mdm/opt/corplink-mdm/bin:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/go/bin:/Users/luoyuchu/.cargo/bin:/Users/luoyuchu/.local/bin:/Users/luoyuchu/.foundry/bin:/Users/luoyuchu/.local/bin:/Users/luoyuchu/.temporalio/bin:
[14:55:01.263] Checking ssh with "ssh -V"
[14:55:01.269] > OpenSSH_9.8p1, LibreSSL 3.3.6
[14:55:01.271] askpass server listening on /var/folders/jp/tv2h5jdx70x7ys48c98tylqm0000gn/T/vscode-ssh-askpass-f7ce690eabff3ccb53f469a1276ab61bbc78af8c.sock
[14:55:01.271] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/jp/tv2h5jdx70x7ys48c98tylqm0000gn/T/vscode-ssh-askpass-d1043a1ba9926ab002c5ac09b2c98e9d72d6e077.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","54886","-o","ConnectTimeout=15","basemind-workspace"],"serverDataFolderName":".cursor-server","dataFilePath":"/Users/luoyuchu/Library/Application Support/Cursor/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-d45d23fc-63dae81aea2c3fc079420fe72578a8eef26ba870-0.112.0-es/data.json"}
[14:55:01.271] Local server env: {"SSH_AUTH_SOCK":"/var/folders/jp/tv2h5jdx70x7ys48c98tylqm0000gn/T//ssh-o2LQcxG9pwri/agent.4567","SHELL":"/bin/zsh","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/luoyuchu/.cursor/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Cursor.app/Contents/Frameworks/Cursor Helper (Plugin).app/Contents/MacOS/Cursor Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"/Users/luoyuchu/.cursor/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/jp/tv2h5jdx70x7ys48c98tylqm0000gn/T/vscode-ssh-askpass-f7ce690eabff3ccb53f469a1276ab61bbc78af8c.sock"}
[14:55:01.272] Spawned 39814
[14:55:01.342] > local-server-1> Running ssh connection command: ssh -v -T -D 54886 -o ConnectTimeout=15 basemind-workspace
[14:55:01.344] > local-server-1> Spawned ssh, pid=39841
[14:55:01.347] stderr> OpenSSH_9.8p1, LibreSSL 3.3.6
[14:55:01.442] stderr> debug1: Server host key: ssh-rsa SHA256:LIljvWr3Fri5JHyPIr4qAzex7LZxHuMU3Liy8Zj65yA
[14:55:01.557] stderr> Authenticated to platform.basemind.com ([10.130.32.7]:22) using "publickey".
[14:55:01.903] stderr> Warning: No xauth data; using fake authentication data for X11 forwarding.
[14:55:01.915] > Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.10.25-nvidia-gpu x86_64)
>
> * Documentation: https://help.ubuntu.com
> * Management: https://landscape.canonical.com
> * Support: https://ubuntu.com/advantage
[14:55:01.939] > ready: 516b9de7f8da
[14:55:01.948] > Linux 5.10.25-nvidia-gpu #1 SMP Sat May 6 02:51:26 UTC 2023
[14:55:01.948] Platform: linux
[14:55:01.980] > /usr/bin/zsh
[14:55:01.981] Shell: zsh
[14:55:01.981] Creating bash subshell inside "zsh"
[14:55:01.997] > bash version: 5.0.17(1)-release
[14:55:02.045] > 516b9de7f8da: running
[14:55:02.055] > Installing to /home/luoyuchu/.cursor-server...
[14:55:02.058] > 516b9de7f8da%%1%%
[14:55:02.060] > Downloading with wget
[14:55:09.077] > wget download failed
> failed: Connection timed out.
> printenv:
[14:55:09.084] > SHELL=/usr/bin/zsh
> KUBERNETES_SERVICE_PORT_HTTPS=443
> BRAIN_USERNAME=luoyuchu
> KUBERNETES_SERVICE_PORT=443
> BRAIN_DAEMON_JUPYTER_DIR=/data/jupyter
> HOSTNAME=dev-yuchu
> SSH_AUTH_SOCK=/tmp/ssh-w7F0aDnj6n/agent.801995
> PWD=/home/luoyuchu/.cursor-server
> LOGNAME=luoyuchu
> XDG_SESSION_TYPE=tty
> BRAIN_SHARED_ROOT=10.69.125.105:/
> BRAIN_DAEMON_JUPYTER_TOKEN=150195e9-f8db-4b5c-bbea-61c1c1d3cf00
> MOTD_SHOWN=pam
> HOME=/home/luoyuchu
> LANG=en_US.UTF-8
> KUBERNETES_PORT_443_TCP=tcp://10.69.0.1:443
> TerminationGracePeriodSeconds=30
> VSCODE_AGENT_FOLDER=/home/luoyuchu/.cursor-server
> BRAIN_SHARED_READONLY=false
> SSH_CONNECTION=100.99.126.75 55298 100.96.32.27 22
> PCIDEVICE_MELLANOX_COM_MLNX_RDMA=
> XDG_SESSION_CLASS=user
> USER=luoyuchu
> DISPLAY=localhost:10.0
> SHLVL=1
> TMP_SIZE=135266304K
> KUBERNETES_PORT_443_TCP_PROTO=tcp
> XDG_SESSION_ID=c533
> KUBERNETES_PORT_443_TCP_ADDR=10.69.0.1
> LD_LIBRARY_PATH=/usr/local/nvidia/lib64
> XDG_RUNTIME_DIR=/run/user/10250
> SSH_CLIENT=100.99.126.75 55298 22
> KUBERNETES_SERVICE_HOST=10.69.0.1
> BRAIN_TOPOLOGY_LEAF_ROCE=Leaf-C1-01
> LC_ALL=en_US.UTF-8
> KUBERNETES_PORT=tcp://10.69.0.1:443
> KUBERNETES_PORT_443_TCP_PORT=443
> PATH=/opt/conda/bin:/usr/local/nvidia/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/10250/bus
> BRAIN_DAEMON_JUPYTER_PORT=8888
> SHM_SIZE=135266304K
> OLDPWD=/home/luoyuchu
> _=/usr/bin/printenv
> Trigger local server download
> 516b9de7f8da:trigger_server_download
> artifact==cli-alpine-x64==
> destFolder==/home/luoyuchu/.cursor-server==
> destFolder2==/vscode-cli-63dae81aea2c3fc079420fe72578a8eef26ba870.tar.gz==
> 516b9de7f8da:trigger_server_download_end
> Waiting for client to transfer server archive...
> Waiting for /home/luoyuchu/.cursor-server/vscode-cli-63dae81aea2c3fc079420fe72578a8eef26ba870.tar.gz.done and vscode-server.tar.gz to exist
>
[14:55:09.085] Got request to download on client for {"artifact":"cli-alpine-x64","destPath":"/home/luoyuchu/.cursor-server/vscode-cli-63dae81aea2c3fc079420fe72578a8eef26ba870.tar.gz"}
[14:55:09.085] Downloading VS Code server locally...
[14:55:09.130] Downloaded VS Code server to /var/folders/jp/tv2h5jdx70x7ys48c98tylqm0000gn/T/17289b4a-c337-4747-8ffa-d7de26f50a46
[14:55:09.130] Renamed VS Code server to /var/folders/jp/tv2h5jdx70x7ys48c98tylqm0000gn/T/vscode_server_1726642509130/vscode-cli-63dae81aea2c3fc079420fe72578a8eef26ba870.tar.gz
[14:55:09.133] PATH: /opt/homebrew/opt/libpq/bin:/Users/luoyuchu/.bun/bin:/Users/luoyuchu/Library/pnpm:/Users/luoyuchu/.nvm/versions/node/v18.11.0/bin:/Users/luoyuchu/.pyenv/shims:/Users/luoyuchu/Library/Python/3.9/bin:/Users/luoyuchu/.moon/tools/moon/latest:~/.fig/bin:/Users/luoyuchu/.local/share/solana/install/active_release/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/usr/local/corplink/mdm/opt/corplink-mdm/bin:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/go/bin:/Users/luoyuchu/.cargo/bin:/Users/luoyuchu/.local/bin:/Users/luoyuchu/.foundry/bin:/Users/luoyuchu/.local/bin:/Users/luoyuchu/.temporalio/bin:
[14:55:09.133] Checking ssh with "ssh -V"
[14:55:09.137] > OpenSSH_9.8p1, LibreSSL 3.3.6
[14:55:09.138] Testing scp with "scp"
[14:55:09.142] scp exited with code: 1
[14:55:09.142] Got stderr from scp: usage: scp [-346ABCOpqRrsTv] [-c cipher] [-D sftp_server_path] [-F ssh_config]
[-i identity_file] [-J destination] [-l limit] [-o ssh_option]
[-P port] [-S program] [-X sftp_option] source ... target
[14:55:09.143] Copying file to remote with scp -o ConnectTimeout=15 'vscode-cli-63dae81aea2c3fc079420fe72578a8eef26ba870.tar.gz' 'vscode-cli-63dae81aea2c3fc079420fe72578a8eef26ba870.tar.gz.done' 'basemind-workspace':'/home/luoyuchu/.cursor-server'
[14:55:09.143] Using cwd: file:///var/folders/jp/tv2h5jdx70x7ys48c98tylqm0000gn/T/vscode_server_1726642509130
[14:55:09.869] > vscode-cli-63dae81aea2c3fc079420fe72578a8eef2 0% 0 0.0KB/s --:-- ETA
[14:55:10.870] > vscode-cli-63dae81aea2c3fc079420fe72578a8eef2 4% 288KB 287.1KB/s 00:23 ETA
[14:55:11.872] > vscode-cli-63dae81aea2c3fc079420fe72578a8eef2 19% 1344KB 364.0KB/s 00:15 ETA
[14:55:12.085] >
[14:55:12.873] > vscode-cli-63dae81aea2c3fc079420fe72578a8eef2 41% 2880KB 481.2KB/s 00:08 ETA
[14:55:13.871] > vscode-cli-63dae81aea2c3fc079420fe72578a8eef2 95% 6656KB 810.6KB/s 00:00 ETA
[14:55:13.925] > vscode-cli-63dae81aea2c3fc079420fe72578a8eef2 100% 6960KB 1.7MB/s 00:04
[14:55:14.195] > vscode-cli-63dae81aea2c3fc079420fe72578a8eef2 0% 0 0.0KB/s --:-- ETA
[14:55:14.216] > vscode-cli-63dae81aea2c3fc079420fe72578a8eef2 100% 9 0.4KB/s 00:00
[14:55:15.195] > Found flag and server on host
> 516b9de7f8da%%2%%
> tar --version:
> tar (GNU tar) 1.30
> Copyright (C) 2017 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> Written by John Gilmore and Jay Fenlason.
[14:55:15.252] stderr>
[14:55:15.252] stderr> gzip: stdin: unexpected end of file
[14:55:15.252] stderr> tar: Unexpected EOF in archive
[14:55:15.252] stderr> tar: Unexpected EOF in archive
[14:55:15.252] stderr> tar: Error is not recoverable: exiting now
[14:55:15.256] > ERROR: tar exited with non-0 exit code: 0
> Already attempted local download, failing
> 516b9de7f8da: start
> exitCode==37==
> listeningOn====
> osReleaseId==ubuntu==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/10250==
> platform==linux==
> unpackResult==error==
> didLocalDownload==1==
> downloadTime====
> installTime==172==
> serverStartTime====
> execServerToken==aaa1a1aa-a1aa-1a1a-aa1a-aa1a11111111==
> 516b9de7f8da: end
[14:55:15.257] Received install output:
exitCode==37==
listeningOn====
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/10250==
platform==linux==
unpackResult==error==
didLocalDownload==1==
downloadTime====
installTime==172==
serverStartTime====
execServerToken==aaa1a1aa-a1aa-1a1a-aa1a-aa1a11111111==
[14:55:15.257] Terminating local server
[14:55:15.260] Resolver error: Error: Failed to install the VS Code Server
at g.ServerInstallError (/Users/luoyuchu/.cursor/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:499852)
at d (/Users/luoyuchu/.cursor/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:493513)
at t.handleInstallOutput (/Users/luoyuchu/.cursor/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:495331)
at e (/Users/luoyuchu/.cursor/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:558460)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /Users/luoyuchu/.cursor/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:580415
at async t.withShowDetailsEvent (/Users/luoyuchu/.cursor/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:584074)
at async /Users/luoyuchu/.cursor/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:555165
at async T (/Users/luoyuchu/.cursor/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:553216)
at async t.resolveWithLocalServer (/Users/luoyuchu/.cursor/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:554705)
at async k (/Users/luoyuchu/.cursor/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:577586)
at async t.resolve (/Users/luoyuchu/.cursor/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:581445)
at async /Users/luoyuchu/.cursor/extensions/ms-vscode-remote.remote-ssh-0.112.0/out/extension.js:2:848061
[14:55:15.263] Local server exit: 15
[14:55:15.266] ------
[14:55:15.688] "Copy server to host" terminal command done