看起来和DCU平台无关,检查下服务器有没有外网访问权限吧,问题参照vscode的社区解决方案即可
本机有VSCode,commit id 为91fbdddc47bc9c09064bf7acf133d22631cbf083。
需求:
安装时报错信息:
[21:51:28.346] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 64295 "10.6.234.21" sh
[21:51:28.347] Generated SSH command: 'type "C:\Users\super\AppData\Local\Temp\vscode-linux-multi-line-command-10.6.234.21-863062306.sh" | "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 64295 "10.6.234.21" sh'
[21:51:28.347] Using connect timeout of 17 seconds
[21:51:28.348] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[21:51:28.579] "install" terminal received data: ""
[21:51:28.580] Got some output, clearing connection timeout
[21:51:30.345] "install" terminal received data: "Authorized users only. All activities may be monitored and reported."
[21:51:30.461] "install" terminal received data: "wxtian@10.6.234.21's password: "
[21:51:30.465] Showing password prompt
[21:51:35.629] Got password response
[21:51:35.629] "install" wrote data to terminal: "**********"
[21:51:35.653] "install" terminal received data: ""
[21:51:37.384] "install" terminal received data: "/public/home/xinxi/wxtian/.bashrc:行23: /opt/dtk24.04/env.sh: 没有那个文件或目录"
[21:51:37.403] "install" terminal received data: "c4d9c4822919: running
Script executing under PID: 1251512
Installing to /public/home/xinxi/wxtian/.vscode-server...
c4d9c4822919%%1%%
Downloading with wget
wget is from busybox: no
Program 'wget' is not available or does not appear to support flag '--no-config'
Detected that this version of wget does not support '--no-config'. Will not ignore wget default configuration files."
[21:51:44.476] "install" terminal received data: "wget download failed
失败:连接超时。
失败:网络不可达。
printenv:
SHELL=/bin/bash
SLURM_HOME=/opt/gridview/slurm
CONDA_EXE=/public/home/xinxi/wxtian/anaconda3/bin/conda
_CE_M=
GUESTFISH_OUTPUT=\e[0m
SLURM_PMIX_DIRECT_CONN=true
ENV=/usr/share/Modules/init/profile.sh
PWD=/public/home/xinxi/wxtian/.vscode-server
LOGNAME=wxtian
XDG_SESSION_TYPE=tty
CONDA_PREFIX=/public/home/xinxi/wxtian/anaconda3
MODULESHOME=/usr/share/Modules
SLURM_PMIX_DIRECT_CONN_UCX=false
MANPATH=/opt/gridview/pmix/share/pmix:/opt/gridview/slurm/share/man:/opt/gri
idview/munge/share/man:/opt/gridview/clusquota//man:
CLUSCONF_ROOT=/opt/clusconf
GUESTFISH_RESTORE=\e[0m
MOTD_SHOWN=pam
HOME=/public/home/xinxi/wxtian
LANG=zh_CN.UTF-8
CONDA_PROMPT_MODIFIER=(base)
GUESTFISH_PS1=\[\e[1;32m\]><fs>\[\e[0;31m\]
SSH_CONNECTION=10.6.255.2 64296 10.6.234.21 22
MODULEPATH_modshare=/public/software/modules:1
XDG_SESSION_CLASS=user
_CE_CONDA=
PMIX_HOME=/opt/gridview/pmix
USER=wxtian
CONDA_SHLVL=1
MODULES_RUN_QUARANTINE=LD_LIBRARY_PATH
LOADEDMODULES=
SHLVL=0
BASH_ENV=/usr/share/Modules/init/bash
GUESTFISH_INIT=\e[1;34m
XDG_SESSION_ID=114649
SLURM_PMIX_DIRECT_CONN_EARLY=false
CONDA_PYTHON_EXE=/public/home/xinxi/wxtian/anaconda3/bin/python
LD_LIBRARY_PATH=/opt/gridview/pmix/lib:/opt/gridview/slurm/lib:/opt/gridview
w/slurm/lib64:/opt/gridview/munge/lib
SLURM_PMIX_TIMEOUT=3000
XDG_RUNTIME_DIR=/run/user/1008
SSH_CLIENT=10.6.255.2 64296 22
CONDA_DEFAULT_ENV=base
ZIPINFO=-O GBK
UNZIP=-O GBK
GRIDVIEW_HOME=/opt/gridview
PATH=/public/home/xinxi/wxtian/anaconda3/bin:/public/home/xinxi/wxtian/anaco
onda3/condabin:/public/home/xinxi/wxtian/.local/bin:/public/home/xinxi/wxtian/bin
n:/opt/gridview/pmix/bin:/opt/gridview/pmix/sbin:/usr/share/Modules/bin:/opt/grid
dview/slurm/bin:/opt/gridview/slurm/sbin:/opt/gridview/munge/bin:/opt/gridview/mu
unge/sbin:/opt/gridview/clusquota/bin:/opt/gridview/clusquota/sbin:/opt/clusconf/
/bin:/opt/clusconf/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/b
bin
MODULEPATH=/public/software/modules
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1008/bus
MUNGE_HOME=/opt/gridview/munge
C_INCLUDE_PATH=/opt/gridview/pmix/include:/opt/gridview/slurm/include:/opt/g
gridview/munge/include
OLDPWD=/public/home/xinxi/wxtian
MODULES_CMD=/usr/share/Modules/libexec/modulecmd.tcl
BASH_FUNC_module%%=() { unset _mlshdbg;
if [ "${MODULES_SILENT_SHELL_DEBUG:-0}" = '1' ]; then
case "$-" in
*v*x*)
set +vx;
_mlshdbg='vx'
;;
*v*)
set +v;
_mlshdbg='v'
;;
*x*)
set +x;
_mlshdbg='x'
;;
*)
_mlshdbg=''
;;
esac;
fi;
unset _mlre _mlIFS;
if [ -n "${IFS+x}" ]; then
_mlIFS=$IFS;
fi;
IFS=' ';
for _mlv in ${MODULES_RUN_QUARANTINE:-};
do
if [ "${_mlv}" = "${_mlv##*[!A-Za-z0-9_]}" -a "${_mlv}" = "${_mlv#[0-9]}" ]
]; then
if [ -n "`eval 'echo ${'$_mlv'+x}'`" ]; then
_mlre="${_mlre:-}${_mlv}_modquar='`eval 'echo ${'$_mlv'}'`' ";
fi;
_mlrv="MODULES_RUNENV_${_mlv}";
_mlre="${_mlre:-}${_mlv}='`eval 'echo ${'$_mlrv':-}'`' ";
fi;
done;
if [ -n "${_mlre:-}" ]; then
eval `eval ${_mlre}/usr/bin/tclsh /usr/share/Modules/libexec/modulecmd.tcl
bash '"$@"'`;
else
eval `/usr/bin/tclsh /usr/share/Modules/libexec/modulecmd.tcl bash "$@"`;
fi;
_mlstatus=$?;
if [ -n "${_mlIFS+x}" ]; then
IFS=$_mlIFS;
else
unset IFS;
fi;
unset _mlre _mlv _mlrv _mlIFS;
if [ -n "${_mlshdbg:-}" ]; then
set -$_mlshdbg;
fi;
unset _mlshdbg;
return $_mlstatus
}
_=/usr/bin/printenv
c4d9c4822919: start
exitCode==193==
listeningOn====
osReleaseId==kylin==
arch==x86_64==
vscodeArch==x64=="
[21:51:44.507] "install" terminal received data: ""
[21:51:44.570] "install" terminal received data: "bitness==64==
tmpDir==/run/user/1008==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime====
execServerToken==111111aa-111a-11a1-aaaa-aa1aa1a1a111==
platformDownloadPath==cli-alpine-x64==
SSH_AUTH_SOCK====
DISPLAY====
c4d9c4822919: end"
[21:51:44.571] Received install output:
exitCode==193==
listeningOn====
osReleaseId==kylin==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1008==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime====
execServerToken==111111aa-111a-11a1-aaaa-aa1aa1a1a111==
platformDownloadPath==cli-alpine-x64==
SSH_AUTH_SOCK====
DISPLAY====
[21:51:44.571] Server download failed
[21:51:44.573] Resolver error: Error: Downloading VS Code Server failed. Please try again later.
at y.ServerInstallError (c:\Users\super\.vscode\extensions\ms-vscode-remote.remote-ssh-0.118.0\out\extension.js:2:740568)
at p (c:\Users\super\.vscode\extensions\ms-vscode-remote.remote-ssh-0.118.0\out\extension.js:2:732321)
at t.handleInstallOutput (c:\Users\super\.vscode\extensions\ms-vscode-remote.remote-ssh-0.118.0\out\extension.js:2:736463)
at t.tryInstall (c:\Users\super\.vscode\extensions\ms-vscode-remote.remote-ssh-0.118.0\out\extension.js:2:856299)
at async c:\Users\super\.vscode\extensions\ms-vscode-remote.remote-ssh-0.118.0\out\extension.js:2:815123
at async t.withShowDetailsEvent (c:\Users\super\.vscode\extensions\ms-vscode-remote.remote-ssh-0.118.0\out\extension.js:2:818374)
at async R (c:\Users\super\.vscode\extensions\ms-vscode-remote.remote-ssh-0.118.0\out\extension.js:2:811578)
at async t.resolve (c:\Users\super\.vscode\extensions\ms-vscode-remote.remote-ssh-0.118.0\out\extension.js:2:815775)
at async c:\Users\super\.vscode\extensions\ms-vscode-remote.remote-ssh-0.118.0\out\extension.js:2:1102718
[21:51:44.580] TELEMETRY: {"eventName":"resolver","properties":{"osReleaseId":"","arch":"","askedPw":"0","askedPassphrase":"0","asked2fa":"0","askedHostKey":"0","remoteInConfigFile":"1","gotUnrecognizedPrompt":"0","dynamicForwarding":"1","localServer":"0","didLocalDownload":"0","installUnpackCode":"0","outcome":"failure","reason":"ServerDownloadFailed","exitCodeLabel":""},"measures":{"resolveAttempts":1,"isExecServer":0,"timing.totalResolveTime":16847,"timing.preSshTime":622,"timing.scriptTime":16223}}
[21:51:44.585] ------
[21:51:44.586] ---------- [Session Summary] -----------
[21:51:44.586] [ServerDownloadFailed]: A VS Code Server matching your local installation could not be downloaded from the internet. (Downloading VS Code Server failed. Please try again later.)
[21:51:44.586] ----------------------------------------
[21:51:45.130] Opening exec server for ssh-remote+10.6.234.21
[21:51:45.142] Found relevant configuration for host 10.6.234.21 in JSON data
[21:51:45.147] Initizing new exec server for ssh-remote+10.6.234.21
[21:51:45.147] Using commit id "91fbdddc47bc9c09064bf7acf133d22631cbf083" and quality "stable" for server
[21:51:45.147] Extensions to install:
[21:51:45.198] Install and start server if needed
[21:51:45.860] "install" terminal command done
[21:51:45.861] Install terminal quit with output:
[21:51:50.811] getPlatformForHost was canceled
[21:51:50.811] Exec server for ssh-remote+10.6.234.21 failed: Error: Connecting was canceled
[21:51:50.811] Error opening exec server for ssh-remote+10.6.234.21: Error: Connecting was canceled
[21:51:50.811] ---------- [Session Summary] -----------
[21:51:50.811] [ServerDownloadFailed]: A VS Code Server matching your local installation could not be downloaded from the internet. (Downloading VS Code Server failed. Please try again later.)
[21:51:50.812] ----------------------------------------
#vscode# #pytorch#

暂无数据