microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.94k stars 29.52k forks source link

Using Kingsoft Cloud CDN in China results in being unable to update VSCode. #209623

Open luckyyyyy opened 8 months ago

luckyyyyy commented 8 months ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

Today, I tried using code . to open a project in WSL2 and found out that VSCode needed an update. However, the download was stuck at 1% progress and wouldn't move. I attempted to manually download it using wget, only to encounter the same issue.

1f0f5ab3677663d1cf1f7d83b13695e7

f8f46a62036e279abe53c7325de521dd

6f2cdd5546ae24e98cb90d606ba23765

# root @ Server in ~ [19:47:32] C:130
$ dig vscode.download.prss.microsoft.com  +short
sundry-fg-geo.trafficmanager.net.
kingsoftspark.download.prss.microsoft.com.download.ks-cdn.com.
k256.gslb.ksyuncdn.com.
60.163.172.9
60.163.172.1
60.163.172.3
60.163.172.5
60.163.172.4
60.163.172.7
60.163.172.6
60.163.172.2
60.163.172.10
60.163.172.8

# root @ Server in ~ [19:49:26] C:8
$ wget https://vscode.download.prss.microsoft.com/dbazure/download/stable/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/vscode-server-linux-x64.tar.gz
--2024-04-05 19:49:33--  https://vscode.download.prss.microsoft.com/dbazure/download/stable/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/vscode-server-linux-x64.tar.gz
Resolving vscode.download.prss.microsoft.com (vscode.download.prss.microsoft.com)... 60.163.172.2, 60.163.172.10, 60.163.172.8, ...
Connecting to vscode.download.prss.microsoft.com (vscode.download.prss.microsoft.com)|60.163.172.2|:443... connected.
HTTP request sent, awaiting response...

I tried manually modifying the hosts file to specify an IP, and it worked fine.


# root @ Server in ~ [19:50:51]
$ wget https://vscode.download.prss.microsoft.com/dbazure/download/stable/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/vscode-server-linux-x64.tar.gz
--2024-04-05 19:50:52--  https://vscode.download.prss.microsoft.com/dbazure/download/stable/5c3e652f63e798a5ac2f31ffd0d863669328dc4c/vscode-server-linux-x64.tar.gz
Resolving vscode.download.prss.microsoft.com (vscode.download.prss.microsoft.com)... 152.195.19.97
Connecting to vscode.download.prss.microsoft.com (vscode.download.prss.microsoft.com)|152.195.19.97|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 57253301 (55M) [application/octet-stream]
Saving to: ‘vscode-server-linux-x64.tar.gz’

vscode-server-linux-x64.tar.gz                    100%[===========================================================================================================>]  54.60M  17.6MB/s    in 3.6s

2024-04-05 19:50:57 (15.3 MB/s) - ‘vscode-server-linux-x64.tar.gz’ saved [57253301/57253301]
luckyyyyy commented 8 months ago

209607 Same issue

rand-fly commented 8 months ago

Encountered the same problem

luckyyyyy commented 8 months ago

Update: The test has now returned to normal.

this issue is related to CDN issue, others encountering the same problem can refer to it

image