Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requires packages.microsoft.com cdn of China #2882

Open
hzexe opened this issue Jun 15, 2019 · 15 comments
Open

Requires packages.microsoft.com cdn of China #2882

hzexe opened this issue Jun 15, 2019 · 15 comments
Labels
area-setup Issues related to installing .NET Core

Comments

@hzexe
Copy link

hzexe commented Jun 15, 2019

Problem encountered on https://dotnet.microsoft.com/download/linux-package-manager/debian9/sdk-2.2.300
Operating System: Linux Debian 9 - x64

Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
-----------------------------------

Almost unable to download .net core package from China because of the speed of reaching packages.microsoft.com server。Is it possible to add CDN of packages.microsoft.com in China?
😍

@carlossanlop
Copy link
Member

Not sure if this is something our team controls. @dagood do you know if the install/setup area could assist with this request?

@dagood
Copy link
Member

dagood commented Jul 9, 2019

We don't control it, but @leecow may know if the Microsoft package repository owners have some plan here.

@carlossanlop
Copy link
Member

@leecow no answer since July :( do you have any updates?

@leecow
Copy link
Member

leecow commented Sep 28, 2019

I don't have any information regarding package.microsoft.com CDNs. @hzexe - please reactivate if this is still an issue.

@leecow leecow closed this as completed Sep 28, 2019
@Lemmingh
Copy link

Lemmingh commented Jan 30, 2020

It's still a big problem. The download speed is very slow in China.

My speed is usually less than 20 kB/s. Every time I update .NET Core SDK or PowerShell, I have to wait for about one hour.


In my opinion, there are mainly two ways to improve download experience now:

  • Reach the team that controls the package repository, and switch to a CDN working better in China.

  • Grant permissions to a mirror service like Tsinghua TUNA, and suggest Chinese users download there. Actually, there are already some discussions (微软产品镜像源申请 tuna/issues#335), but no one has any idea on Microsoft's attitude to mirroring or the contact information of Microsoft.

I would appreciate it if this problem is resolved.

@dagood
Copy link
Member

dagood commented Jan 30, 2020

I've sent an email to the admins of the packages.microsoft.com repos, I'll comment here with more info if I get a response.

(Note that recently, there have been frequent outages for all users of the service that is a higher priority for us at the moment, tracked by #4167.)

@dagood dagood reopened this Jan 30, 2020
@dagood dagood added the area-setup Issues related to installing .NET Core label Jan 30, 2020
@dagood
Copy link
Member

dagood commented Feb 10, 2020

The repo team did a little bit of investigation into this. In summary, they see the value but there is no definite timeline.

The team is unable to create a VM in China to test the exact scenario you're hitting here. However, there is a mirror set up for East Asia, and they confirmed that after creating a VM in East Asia, the mirror works as expected and they don't experience slowness. They also investigated that mirror's health and don't see any issues.


I wonder if it's possible you're being routed to the wrong mirror, causing this slowness. @hzexe, @Lemmingh, can you give me the IP address you're connecting to? For example, run this command:

$ wget https://packages.microsoft.com/keys/microsoft.asc
...
Resolving packages.microsoft.com (packages.microsoft.com)... 13.91.48.226

(That IP addr is the mirror I'm being connected to--I don't know the IP of the East Asia mirror.)

I can then ask the repo admins if the IP address you're hitting is the East Asia mirror. They believe that traffic from China should go there, but they're not sure.

However, it's possible you're being routed correctly and the connection is simply slow.


  • Grant permissions to a mirror service like Tsinghua TUNA, and suggest Chinese users to download there. Actually, there are already some discussions (tuna/issues#335), but no one has any idea on Microsoft's attitude to mirroring or the contact information of Microsoft.

@leecow, can we clarify this? I assume it is fine to redistribute the .NET Core RPM and Deb packages, but potentially not ok to mirror the entire repo.

@xiaoyinl
Copy link

@dagood I am connecting to 13.75.127.55, which is located in Hong Kong SAR, China. But I also hope there are mirrors in Beijing and Shanghai.

Resolving packages.microsoft.com (packages.microsoft.com)... 13.75.127.55

@dagood
Copy link
Member

dagood commented Feb 12, 2020

Thanks for checking! I've confirmed with the repo owners that 13.75.127.55 is expected for East Asia, so it appears that the routing is happening as they expect and it's simply slow.

Note: the IP internally redirects to four mirrors, and the repo team isn't completely sure all four are healthy. They don't see any obvious signs of bad behavior. If someone (perhaps in a different part of China) has good download speeds, this may help them figure out if one of these mirrors is unhealthy--please let us know.

To make sure it's clear: the repo owners aren't currently able to set up a mirror in China, unfortunately. They do see the value, but there is no timeline as of yet.

@leecow
Copy link
Member

leecow commented May 19, 2020

can we clarify this? I assume it is fine to redistribute the .NET Core RPM and Deb packages, but potentially not ok to mirror the entire repo.

@nakarnam - can you check if the packages.microsoft.com owners have specific policy guidance for this question?

@mairaw
Copy link
Contributor

mairaw commented Aug 11, 2021

@leecow @dagood any updates here?

@dagood
Copy link
Member

dagood commented Aug 12, 2021

/cc @dleeapho

@eveloki
Copy link

eveloki commented Nov 18, 2023

#7239 (comment)

so can we use cdn.azure.cn cdn node?

or like microsoft/vscode-dotnettools#138

@dagood

@dagood
Copy link
Member

dagood commented Nov 20, 2023

The packages.microsoft.com team now has their own GitHub repository for issues, so I believe it's now best to ask about this at their repo so you can get the opinions of the team responsible for that resource:

@VAllens
Copy link

VAllens commented Jan 18, 2024

Any progress on this?
It's occasionally slow and occasionally fast, which seems to CDN cause problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-setup Issues related to installing .NET Core
Projects
None yet
Development

No branches or pull requests

9 participants