-
Notifications
You must be signed in to change notification settings - Fork 251
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
[NETSDKE2E][Unstable]Failed to download package 'Microsoft.NETCore.app.Runtime.win-x64.8.0.0' from ..." message displays during publish project in CLI. #13125
Comments
@martinrrm We met this issue again. our repro VM: 10.158.80.228, you can login with your email account(domain). This issue only happens when use SDK at the first time. if you want to repro again, need to delete the related files as below: Addtionally, the package from "https://api.nuget.org/v3-flatcontainer |
Hello, this sounds like potentially an SSL/TLS configuration error. Do you have an HTTP proxy configured? Which version of TLS is your system using? |
@donnie-msft we did not have an HTTP proxy configured, only a clean win10 OS. we did not meet on win11 OS. The version of LTS that you mean is as below? Unfortunately, on last Friday's VM(10.158.80.228), we could not repro now 😔. today we prepare a new VM(10.214.92.19) which you can login with your email/PWD in case you need, and it can repro with below steps: C:\Users\v-danche\format\format>Restore.cmd Build succeeded. Time Elapsed 00:00:42.32 |
@vdanche - I logged into your VM, and restore worked for me. I don't know why this worked for me, and I don't understand why you experienced that error. I tried a TLS check using a tool written by someone on our team, and it seems that TLS 1.2 was configured, which should work with nuget.org. TLS 1.3 is not enabled on your system, which is good because it's not supported by nuget.org (NuGet/NuGetGallery#9655).
Could you let us know if you experience this again? It's likely some transient network issue, or perhaps a Windows network configuration problem, if I had to guess. |
@donnie-msft It's so strange that the issue not repro again when we login with a new domain account into yesterday's VM, Additionally, I have a confusion that in your result screenshot, why the file directory is "c:\Users\v-danche\format" not "c\Users\eagoodso" as actually you login with your domain account? |
Could you check the TLS configuration on your new machine? We have a tool you can use which outputs each TLS status (as my comment above showed): https://gist.github.com/zivkan/5291f507c8c5724d41a18357b7afcd30 You can also check this in the Windows settings if you prefer, I believe it's under "internet options" in control panel. |
@donnie-msft It did repro on a new win10 VM not repro on yesterday's VM. seem like transient network issue as your comment above. |
@vdanche if you download the files, which you may notice is a.NET project, you can run 'dotnet build' in that project directory, and it should generate a .exe under bin/Debug/net6.0/ subdirectory. If you don't have that version of .NET installed, it will error, so you can just change the Target Framework inside the csproj to net8.0, and try building again. Once you build, simply run this exe from command line and it will output the status as I showed above. |
@donnie-msft we still repro a new win10 VM, details as below: Note: this issue only happens when using sdk for the first time, after the step2 is done, we delete the file under C:\Users\v-danche But It's interesting that if the step3 for checking TLS status is done, we delete the file under C:\Users\v-danche and unzip a new format project and then run "restore.cmd", this issue will not repro. |
@donnie-msft We have created a new VM again and it will repro the issue if everything goes on well. please let us know if you need VM. Note: It usually happens when using the SDK for the first time |
NuGet Product Used
dotnet.exe
Product Version
SDK version from dotnet --info: 8.0.200-preview.24053.15
Worked before?
No response
Impact
None
Repro Steps & Context
1.install 8.0.200-preview.24053.15 sdk from https://aka.ms/dotnet/8.0.2xx/daily/dotnet-sdk-win-x64.exe
in CLI, dotnet new console and then dotnet publish -r win-x64 --self-contained
Expected Result:
![image](https://private-user-images.githubusercontent.com/65637796/294094863-a2aa8601-b4ce-409e-8104-b0b8a5a04778.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwMjQ2NTUsIm5iZiI6MTcyNDAyNDM1NSwicGF0aCI6Ii82NTYzNzc5Ni8yOTQwOTQ4NjMtYTJhYTg2MDEtYjRjZS00MDllLTgxMDQtYjBiOGE1YTA0Nzc4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDIzMzkxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNkMGNlNjFiYjYxYjA4NDFkOTk4ZmFmMDc0NGVmOWM1MzhkYjE4YzQyZTkwODgxNDY2MTk2ZWE1ZTZhZjE0NjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.D6M1zmvyNiiM-L99FsXuvfmCyYlaI--xljSr22-HzdU)
Publish successfully.
Actual Result:
Publish successfully, but "Failed to download package 'Microsoft.NETCore.app.Runtime.win-x64.8.0.0' from ..." message displays during publish project in CLI.
.NET SDK:
Version: 8.0.200-preview.24053.15
Commit: e7e0a0b72b
Workload version: 8.0.200-manifests.9f3f18d7
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.200-preview.24053.15\
.NET workloads installed:
There are no installed workloads to display.
Host:
Version: 8.0.0
Architecture: x64
Commit: 5535e31a71
.NET SDKs installed:
8.0.200-preview.24053.15 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: