vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

Downloading VS Code Server Stuck When Attach to Running Container

Open Navifra-Kerry opened this issue 3 years ago • 7 comments
trafficstars

  • VSCode Version:
1.70.0
da76f93349a72022ca4670c1b84860304616aaa2
x64
  • Local OS Version:
Microsoft Windows 11 Pro
Version 10.0.22000 Build 22000
  • Remote OS Version:
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:        20.04
Codename:       focal
  • Remote Extension/Connection Type: SSH/Containers/WSL/Server
container
  • Logs:
[110 ms] Remote-Containers 0.245.0 in VS Code 1.70.0 (da76f93349a72022ca4670c1b84860304616aaa2).
[110 ms] Start: Resolving Remote
[111 ms] Setting up container: /ubuntu
[120 ms] Start: Run: docker inspect --type container /ubuntu
[456 ms] Start: Check Docker is running
[456 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[738 ms] Server API version: 1.41
[739 ms] Start: Inspecting container
[739 ms] Start: Run: docker inspect --type container 0df0a34314b211c6ba65340d48613858cb0a5febf644d1057fa3d5def9be8d8c
[1055 ms] Start: Run in container: /bin/sh
[1073 ms] Start: Run in container: uname -m
[1413 ms] x86_64
[1413 ms] 
[1413 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[1415 ms] NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
[1415 ms] 
[1415 ms] Start: Run in container: cat /etc/passwd
[1417 ms] Start: Run in container: test -d /root/.vscode-server
[1419 ms] 
[1419 ms] 
[1419 ms] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[1420 ms] 
[1421 ms] 
[1421 ms] Exit code 1
[1421 ms] Start: Run in container: cat /root/.vscode-server/data/Machine/settings.json
[1422 ms] 
[1422 ms] cat: /root/.vscode-server/data/Machine/settings.json: No such file or directory
[1422 ms] Exit code 1
[1422 ms] Start: Run in container: test -d /root/.vscode-server/bin/da76f93349a72022ca4670c1b84860304616aaa2
[1423 ms] 
[1423 ms] 
[1423 ms] Exit code 1
[1424 ms] Installing VS Code Server for commit da76f93349a72022ca4670c1b84860304616aaa2
[1424 ms] Start: Downloading VS Code Server
[1424 ms] da76f93349a72022ca4670c1b84860304616aaa2 linux-x64 stable 

Steps to Reproduce:

  1. click Open a remote window button on the left bottom
  2. Select "Remote-Containers: Attach to Running Container..."
  3. Select the running container

same problem https://github.com/microsoft/vscode-remote-release/issues/2777#issue-600868827

I think this problem is caused by the download server being very slow.

Below is the manual download test screen. Download speed is getting slower.:

connecting to update.code.visualstudio.com (update.code.visualstudio.com)|20.43.132.130|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://az764295.vo.msecnd.net/stable/da76f93349a72022ca4670c1b84860304616aaa2/vscode-server-linux-x64.tar.gz [following]
--2022-08-16 01:54:44--  https://az764295.vo.msecnd.net/stable/da76f93349a72022ca4670c1b84860304616aaa2/vscode-server-linux-x64.tar.gz
Resolving az764295.vo.msecnd.net (az764295.vo.msecnd.net)... 117.18.232.200, 117.18.232.200
Connecting to az764295.vo.msecnd.net (az764295.vo.msecnd.net)|117.18.232.200|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 57794668 (55M) [application/gzip]
Saving to: 'stable'

stable                                    1%[                                                                             ] 567.99K  55.9KB/s    eta 16m 39s

nslookup:

기본 서버:  dns.google
Address:  8.8.8.8

> update.code.visualstudio.com
서버:    dns.google
Address:  8.8.8.8

권한 없는 응답:
이름:    waws-prod-sg1-057-feea.southeastasia.cloudapp.azure.com
Address:  20.43.132.130
Aliases:  update.code.visualstudio.com
          vscode-update.trafficmanager.net
          vscode-update-sea.azurewebsites.net
          waws-prod-sg1-057.sip.azurewebsites.windows.net

I think it's been about a week. Can you tell me the IP of somewhere other than the asia server?

Navifra-Kerry avatar Aug 16 '22 01:08 Navifra-Kerry

I think i have same problem Version of installed vs code is 1.70.1(commit id:6d9b74a70ca9c7733b29f0456fd8195364076dda) I has failed to download VS Code Sever

my 'Remote - SSH' logs are below.

[11:04:53.189] Log Level: 2 [11:04:53.192] [email protected] [11:04:53.192] win32 x64 [11:04:53.208] SSH Resolver called for "ssh-remote+58_tf_2.7", attempt 1 [11:04:53.209] "remote.SSH.useLocalServer": false [11:04:53.210] "remote.SSH.showLoginTerminal": false [11:04:53.211] "remote.SSH.remotePlatform": {"192.168.25.58":"linux","192.168.25.56":"linux","56_Node":"linux","192.168.25.46":"linux","192.168.25.57":"linux","58_TF":"linux","46_Node":"linux","57_TF":"linux","46_TF":"linux","58_test":"linux","44_nipa_test_server":"linux","57_root":"linux","58_tf":"linux","57_tf":"linux","58_tf_2.7":"linux","57_sjseo":"linux"} [11:04:53.211] "remote.SSH.path": undefined [11:04:53.212] "remote.SSH.configFile": undefined [11:04:53.212] "remote.SSH.useFlock": true [11:04:53.212] "remote.SSH.lockfilesInTmp": true [11:04:53.213] "remote.SSH.localServerDownload": auto [11:04:53.213] "remote.SSH.remoteServerListenOnSocket": false [11:04:53.214] "remote.SSH.showLoginTerminal": false [11:04:53.214] "remote.SSH.defaultExtensions": [] [11:04:53.214] "remote.SSH.loglevel": 2 [11:04:53.215] "remote.SSH.enableDynamicForwarding": true [11:04:53.215] "remote.SSH.enableRemoteCommand": false [11:04:53.216] "remote.SSH.serverPickPortsFromRange": {} [11:04:53.216] "remote.SSH.serverInstallPath": {} [11:04:53.391] SSH Resolver called for host: 58_tf_2.7 [11:04:53.391] Setting up SSH remote "58_tf_2.7" [11:04:53.403] Using commit id "6d9b74a70ca9c7733b29f0456fd8195364076dda" and quality "stable" for server [11:04:53.427] Install and start server if needed [11:04:53.536] Checking ssh with "ssh -V" [11:04:53.818] > O [11:04:53.819] > penSSH_for_Windows_8.1p1, LibreSSL 3.0.2

[11:04:53.841] Running script with connection command: ssh -T -D 50131 "58_tf_2.7" bash [11:04:53.847] Terminal shell path: C:\WINDOWS\System32\cmd.exe [11:05:00.580] > ]0;C:\WINDOWS\System32\cmd.exe [11:05:00.581] Got some output, clearing connection timeout [11:05:07.562] > [email protected]'s password: [11:05:07.563] Showing password prompt [11:05:13.122] Got password response [11:05:13.122] "install" wrote data to terminal: "****" [11:05:13.214] > [11:05:16.676] > Warning: No xauth data; using fake authentication data for X11 forwarding. [11:05:19.150] > 48f0370952b4: running [11:05:19.203] > Acquiring lock on /tmp/vscode-remote-lock.sjseo.6d9b74a70ca9c7733b29f0456fd8195364076dda [11:05:19.259] > Installing to /repo/sjseo/.vscode-server/bin/6d9b74a70ca9c7733b29f0456fd8195364076dda... [11:05:19.342] > 48f0370952b4%%1%% [11:05:19.423] > Downloading with wget [11:23:58.895] > wget download failedprintenv:

SHELL=/bin/bash
PWD=/repo/sjseo/.vscode-server/bin/6d9b74a70ca9c7733b29f0456fd8195364076dda
LOGNAME=sjseo
TZ=Asia/Seoul
MOTD_SHOWN=pam
HOME=/repo/sjseo
VSCODE_AGENT_FOLDER=/repo/sjseo/.vscode-server
SSH_CONNECTION=192.168.30.11 50146 172.17.0.2 22
USER=sjseo
DISPLAY=localhost:10.0
SHLVL=0
SSH_CLIENT=192.168.30.11 50146 22
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
OLDPWD=/repo/sjseo
_=/usr/bin/printenv

Trigger local server download 48f0370952b4:trigger_server_download platform==linux== vscodeArch==x64== destFolder==/repo/sjseo/.vscode-server/bin/== destFolder2==6d9b74a70ca9c7733b29f0456fd8195364076dda== 48f0370952b4:trigger_server_download_end Waiting for client to transfer server archive... Waiting for /repo/sjseo/.vscode-server/bin/6d9b74a70ca9c7733b29f0456fd8195364076 6dda/vscode-scp-done.flag and vscode-server.tar.gz to exist

[11:23:58.895] Got request to download on client for {"platform":"linux","arch":"x64","destFolder":"/repo/sjseo/.vscode-server/bin/6d9b74a70ca9c7733b29f0456fd8195364076dda"} [11:23:58.896] Downloading VS Code server locally... [11:25:36.357] Resolver error: Error: XHR failed at XMLHttpRequest.p.onerror (vscode-file://vscode-app/c:/Users/micube/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:70:8827) [11:25:36.368] ------

[11:25:36.420] ------

zhiin avatar Aug 16 '22 02:08 zhiin

Same issue here. I can't download even the update of extensions.

I found the ip address of MS server in US,

Try this address. 152.199.4.33 az764295.vo.msecnd.net

it works for me. I think there is a problem of server in Asia. In my case, the server is in Hongkong.

After downloading the vs code file, stop to use that ip. I'm not sure about the security of that ip.

Seungjong-Dev avatar Aug 16 '22 02:08 Seungjong-Dev

Same issue here. I can't download even the update of extensions.

I found the ip address of MS server in US,

Try this address. 152.199.4.33 az764295.vo.msecnd.net

it works for me. I think there is a problem of server in Asia. In my case, the server is in Hongkong.

After downloading the vs code file, stop to use that ip. I'm not sure about the security of that ip.

If I manually download it like that, it works. I'd like to see a fundamental solution. I hope the Asian server will be resolved soon. thank you

Navifra-Kerry avatar Aug 16 '22 04:08 Navifra-Kerry

Same issue here. I can't download even the update of extensions.

I found the ip address of MS server in US,

Try this address. 152.199.4.33 az764295.vo.msecnd.net

it works for me. I think there is a problem of server in Asia. In my case, the server is in Hongkong.

After downloading the vs code file, stop to use that ip. I'm not sure about the security of that ip.

It works for me, too. @Seungjong-Dev thanks for a stopgap solution.

zhiin avatar Aug 16 '22 04:08 zhiin

Is this still an issue or does it look like the server went back to normal?

chrmarti avatar Sep 08 '22 07:09 chrmarti

It's okay now

Navifra-Kerry avatar Sep 08 '22 08:09 Navifra-Kerry

In my case it was a "http.proxy" that went temporarily down. Comment out that works. Write here in case someone forget they used a proxy and run into this.

xgdgsc avatar Sep 16 '22 03:09 xgdgsc

Hey @chrmarti, this issue might need further attention.

@kerry-Cho, you can help us out by closing this issue if the problem no longer exists, or adding more information.

github-actions[bot] avatar Jan 14 '23 12:01 github-actions[bot]

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

github-actions[bot] avatar Jan 22 '23 12:01 github-actions[bot]