Skip to content

Requires packages.microsoft.com cdn of China #2882

Open

Description

@hzexe

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?
😍

Activity

  1. carlossanlop commented on Jul 9, 2019

    @carlossanlop
    Contributor

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

  2. dagood commented on Jul 9, 2019

    @dagood
    Member

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

  3. carlossanlop commented on Sep 27, 2019

    @carlossanlop
    Contributor

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

  4. leecow commented on Sep 28, 2019

    @leecow
    Member

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

  5. Lemmingh commented on Jan 30, 2020

    @Lemmingh

    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.

  6. dagood commented on Jan 30, 2020

    @dagood
    Member

    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.)

  7. reopened this on Jan 30, 2020
  8. added
    area-setup
    on Jan 30, 2020
  9. dagood commented on Feb 10, 2020

    @dagood
    Member

    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.

  10. xiaoyinl commented on Feb 11, 2020

    @xiaoyinl

    @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
    
  11. dagood commented on Feb 12, 2020

    @dagood
    Member

    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.

  12. leecow commented on May 19, 2020

    @leecow
    Member

    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?

  13. mairaw commented on Aug 11, 2021

    @mairaw
    Contributor

    @leecow @dagood any updates here?

  14. dagood commented on Aug 12, 2021

    @dagood
    Member
  15. eveloki commented on Nov 18, 2023

    @eveloki

    #7239 (comment)

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

    or like microsoft/vscode-dotnettools#138

    @dagood

  16. dagood commented on Nov 20, 2023

    @dagood
    Member

    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:

  17. VAllens commented on Jan 18, 2024

    @VAllens

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

  18. bocchi810 commented on Feb 25, 2025

    @bocchi810

    Is any progress on this issues?

    microsoft.com domain is registered in China, but it may only www.microsoft.com using China CDN
    And the package download speed like this

    Get:1 https://packages.microsoft.com/repos/edge stable/main amd64 microsoft-edge-beta amd64 134.0.3124.31-1 [171 MB]
    48% [1 microsoft-edge-beta 63.7 MB/171 MB 37%]                                          51.8 kB/s 
    

    That's toooooo slow

  19. dagood commented on Feb 25, 2025

    @dagood
    Member

    It looks like the issue I linked:

    was closed as a duplicate of:

    which was closed as resolved.

    I'd recommend looking for another issue in https://github.com/microsoft/linux-package-repositories that fits, and filing a new issue there if you don't find one. That's where the people who might be able to do something about this will be looking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-setup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions