install-scripts
install-scripts copied to clipboard
Failures to download install script in CI
This has been happening with increasing frequency. Source is ADO Pipeline.
https://github.com/dotnet/dotnet-docker/blob/main/documentation/scenarios/installing-dotnet.md#installing-from-dotnet-install-script
#20 [base 5/19] RUN curl -sSL https://dot.net/v1/dotnet-install.sh > dotnet-install.sh #20 18.35 curl: (18) HTTP/2 stream 1 was not closed cleanly before end of the underlying stream #20 ERROR: process "/bin/sh -c curl -sSL https://dot.net/v1/dotnet-install.sh > dotnet-install.sh" did not complete successfully: exit code: 18
I'm going to add some retry. Is there a problem with the hosting? Could equally be an ADO thing.
Cc @mairaw the redirect from the website seem to be failing - are there metrics or configuration that we need to dig into? This has also been hitting internal MS teams this morning.
We seem to be getting better luck downloading directly from GitHub from:
https://raw.githubusercontent.com/dotnet/install-scripts/refs/heads/main/src/dotnet-install.ps1
(Accessible via the "Raw" button on the top right of a file)
e.g.
curl.exe -sL https://raw.githubusercontent.com/dotnet/install-scripts/refs/heads/main/src/dotnet-install.ps1 > dotnet-install.ps1
or
wget https://raw.githubusercontent.com/dotnet/install-scripts/refs/heads/main/src/dotnet-install.sh -O dotnet-install.sh
As a workaround you can use https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.sh instead. This is where the dot.net URL redirects to and is better than using the raw GitHub URL.
As I said internally @baronfel, this doesn't hit the website. This is a routing service handled by the CPS Engineering team. I've alerted them of the problem, and they told me they've been fixing the issues they're seeing. But this shouldn't be assigned to me since I can't fix this.
Internal issue tracking this has been resolved, resolving this too.