V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
tracker647
V2EX  ›  C++

谁 vscode remote SSL 遇到过循环刷 waiting for log 登不上去服务器的情况

  •  
  •   tracker647 · 2023-01-08 09:30:11 +08:00 · 2449 次点击
    这是一个创建于 683 天前的主题,其中的信息可能已经有所发展或是发生改变。

    昨天阿里云服务器用 vscode 扩展登录的好好的,今天突然就上不去了 重新安装 vscode remote SSL 扩展和卸载阿里云安装服务器上.vscode-server 均无效,Xshell 能正常上去。 已经 github issue,目前无消息

    看起来好像和服务器相关,因为我尝试过用 vscode ssh 过另一台 vmware 上有登陆记录的本地虚拟机,能正常运行。

    本地系统 win10 ,vscode 版本 1.74.2 ,云服务器和本地虚拟机的操作系统都是 Ubuntu 20.04.4 LTS 。

    log:

    [08:52:21.956] Running script with connection command: ssh -T -D 1864 "rhinoOS" bash
    [08:52:21.959] Terminal shell path: C:\WINDOWS\System32\cmd.exe
    [08:52:22.846] > ]0;C:\WINDOWS\System32\cmd.exe 
    > 
    > 
    > 
    > 
    > 
    > 
    > 
    > 
    > 
    > 
    > 
    > 
    [08:52:22.846] Got some output, clearing connection timeout
    [08:52:23.931] > 1583689a4972: running
    [08:52:23.968] > bash: /sbin/ldconfig: /bin/sh: bad interpreter: No such file or directory
    > Acquiring lock on /root/.vscode-server/bin/e8a3071ea4344d9d48ef8a4df2c097372b0c5161/vsc
    > ode-remote-lock.root.e8a3071ea4344d9d48ef8a4df2c097372b0c5161
    [08:52:24.012] > Found existing installation at /root/.vscode-server/bin/e8a3071ea4344d9d48ef8a4df2c0973
    > 72b0c5161...
    > Checking /root/.vscode-server/.e8a3071ea4344d9d48ef8a4df2c097372b0c5161.log and /root/.
    > vscode-server/.e8a3071ea4344d9d48ef8a4df2c097372b0c5161.pid for a running server       
    > Looking for server with pid: 893846
    > Starting server with command... /root/.vscode-server/bin/e8a3071ea4344d9d48ef8a4df2c097
    > 372b0c5161/bin/code-server --start-server --host=127.0.0.1 --accept-server-license-term
    > s --enable-remote-auto-shutdown --port=0 --telemetry-level all   &> "/root/.vscode-serv
    > er/.e8a3071ea4344d9d48ef8a4df2c097372b0c5161.log" < /dev/null
    > printenv:
    >     SHELL=/bin/bash
    >     PWD=/root
    >     LOGNAME=root
    >     XDG_SESSION_TYPE=tty
    >     MOTD_SHOWN=pam
    >     HOME=/root
    >     LANG=en_US.UTF-8
    >     VSCODE_AGENT_FOLDER=/root/.vscode-server
    >     SSH_CONNECTION=103.27.25.127 15341 xxx.xxx.xxx.xxx 22
    >     XDG_SESSION_CLASS=user
    >     USER=root
    >     SHLVL=0
    >     XDG_SESSION_ID=4832
    >     XDG_RUNTIME_DIR=/run/user/0
    >     SSH_CLIENT=103.27.25.127 15341 22
    >     PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/l
    > ocal/games:/snap/bin
    >     _=/usr/bin/printenv
    > Removing old logfile at /root/.vscode-server/.e8a3071ea4344d9d48ef8a4df2c097372b0c5161.
    > log
    [08:52:24.045] > Spawned remote server: 919702
    > Waiting for server log...
    > Waiting for server log...
    [08:52:24.073] > Waiting for server log...
    [08:52:24.104] > Waiting for server log...
    [08:52:24.138] > Waiting for server log...
    [08:52:24.177] > Waiting for server log...
    [08:52:24.209] > Waiting for server log...
    [08:52:24.246] > Waiting for server log...
    [08:52:24.281] > Waiting for server log...
    [08:52:24.317] > Waiting for server log...
    [08:52:24.349] > Waiting for server log...
    [08:52:24.390] > Waiting for server log...
    [08:52:24.422] > Waiting for server log...
    [08:52:24.456] > Waiting for server log...
    [08:52:24.493] > Waiting for server log...
    [08:52:24.528] > Waiting for server log...
    [08:52:24.561] > Waiting for server log...
    [08:52:24.599] > Waiting for server log...
    [08:52:24.632] > Waiting for server log...
    [08:52:24.675] > Waiting for server log...
    [08:52:24.708] > Waiting for server log...
    ....(字数限制删了一些,这里大概刷了大概几百遍 Waiting for server log...)
    > *
    > * Visual Studio Code Server
    > *
    > * By using the software, you agree to
    > * the Visual Studio Code Server License Terms ( https://aka.ms/vscode-server-license) an
    > d
    > * the Microsoft Privacy Statement ( https://privacy.microsoft.com/en-US/privacystatement
    > ).
    > *
    > 
    [08:52:38.359] > 
    > Server did not start successfully. Full server log at /root/.vscode-server/.e8a3071ea43
    > 44d9d48ef8a4df2c097372b0c5161.log >>>
    > main: /root/.vscode-server/bin/e8a3071ea4344d9d48ef8a4df2c097372b0c5161/bin/code-server
    > : /usr/bin/env: bad interpreter: No such file or directory
    > <<< End of server log
    > 1583689a4972: start
    > exitCode==32==
    > listeningOn====
    > osReleaseId==ubuntu==
    > arch==x86_64==
    > tmpDir==/run/user/0==
    > platform==linux==
    > unpackResult====
    > didLocalDownload==0==
    > downloadTime====
    > installTime====
    [08:52:38.373] > 
    [08:52:38.392] > extInstallTime====
    > serverStartTime==14366==
    > 1583689a4972: end
    [08:52:38.392] Received install output:
    
    2 条回复    2023-01-08 10:29:36 +08:00
    LaurelHarmon
        1
    LaurelHarmon  
       2023-01-08 09:57:10 +08:00
    tracker647
        2
    tracker647  
    OP
       2023-01-08 10:29:36 +08:00
    @LaurelHarmon 刚刚也找了这篇 issue 现在已经逐渐定位到是云服务器内部没有 /usr/bin/env 了 看 issue 上说要重装 coreutils 然而不知道为什么尝试安装会报
    E: Problem executing scripts APT::Install::Pre-Invoke '[ ! -f /usr/lib/ubuntu-advantage/apt-esm-hook ] || /usr/lib/ubuntu-advantage/apt-esm-hook pre-invoke || true'
    E: Sub-process returned an error code
    这个错误。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1908 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 16:20 · PVG 00:20 · LAX 08:20 · JFK 11:20
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.