Skip to content

Script fails to access the feed if TLS1.2 is not enabled #9

Closed

Activity

  1. wli3 commented on Apr 6, 2020

    @wli3
    Author

    the fallback link is expected to fail. The problem is why the first url does not work. We should try to repro it first

  2. dotMorten commented on Apr 6, 2020

    @dotMorten

    Reproduced on two machines, but not a 3rd. The machines can access the first link from the browser just fine, but has been failing since Thursday afternoon consistently via the powershell script.

  3. wli3 commented on Apr 7, 2020

    @wli3
    Author

    @grinrag @donJoseLuis

  4. donJoseLuis commented on Apr 8, 2020

    @donJoseLuis
    Contributor

    @bozturkMSFT heads up on script issue. Let's discuss in stand up.

  5. maartenba commented on Apr 8, 2020

    @maartenba

    Seeing the same here on my build agent in the Netherlands (Amsterdam). URL resolves properly in Belgium (Antwerp). Seems CDN related?

    Edit: enabling TLS 1.2 in posh seems to do it.

  6. donJoseLuis commented on Apr 8, 2020

    @donJoseLuis
    Contributor

    We're currently dealing with a high priority issue in the install script related to TLS & will shift focus to this immediately after.

  7. bekir-ozturk commented on Apr 20, 2020

    @bekir-ozturk
    Contributor

    We haven't been able to fix the issues with failing builds yet (which may also resolve this one). Please track the progress here: dotnet/sdk#11320

  8. dotMorten commented on May 13, 2020

    @dotMorten

    I'm still seeing it on my build server.
    Here's two screenshots running the exact same script. On one PC (top one) it fails, on the other (overlay) it succeeds:
    image

    Pinging that address resolves to the same IP, so that's not the issue.

    Opening https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.201/dotnet-sdk-3.1.201-win-x64.zip in a browser on the build server works just fine. It's only when running this through the powershell script.

  9. transferred this issue fromdotnet/sdkon May 19, 2020
  10. bekir-ozturk commented on Jun 4, 2020

    @bekir-ozturk
    Contributor

    Hi @dotMorten,
    Can you run this version with -EnableTls flag and let me know if it fixes the issue?

  11. 3 remaining items

  12. bekir-ozturk commented on Jun 4, 2020

    @bekir-ozturk
    Contributor

    @dotMorten Glad to hear! Can you tell me your OS and PowerShell versions?

  13. dotMorten commented on Jun 4, 2020

    @dotMorten

    image

  14. dotMorten commented on Jun 4, 2020

    @dotMorten

    ...I guess we could push for our build servers to get updated, but glad it looks like we've pinpointed the issue

  15. changed the title [-]Cannot download 3.1.100 SDK from install script[/-] [+]Script fails to access the feed if TLS1.2 is not enabled[/+] on Jul 10, 2020
  16. bekir-ozturk commented on Oct 5, 2020

    @bekir-ozturk
    Contributor

    @AR-May Let's print out a warning at the beginning that says TLS1.2 is required.

  17. vlada-shubina commented on Nov 6, 2020

    @vlada-shubina
    Member

    We agreed to put the note about TLS 1.2 in case download fails.
    Note should be similar too: "Ensure that TLS 1.2 or higher is enabled to use this script".
    Probably we can also reference https://docs.microsoft.com/en-us/dotnet/framework/network-programming/tls#support-for-tls-12 or https://docs.microsoft.com/en-us/windows-server/security/tls/tls-registry-settings to explain how to enable it.
    Should be done after or together with #27.

  18. abrathehuman commented on Nov 10, 2020

    @abrathehuman

    Just want to mention what saved my whole day solving this issue. This is just a temporary solution though. Hope it helps.

    https://stackoverflow.com/a/47682111/12943500

  19. added a commit that references this issue on Nov 12, 2020
  20. added a commit that references this issue on Nov 20, 2020
  21. AR-May commented on Dec 3, 2020

    @AR-May
    Member

    As agreed, added a message about TLS 1.2 when it is a reason of a download failure.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions