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

Unable to build (timeout when restoring) #9785

Closed
ViktorHofer opened this issue Jul 12, 2020 · 3 comments
Closed

Unable to build (timeout when restoring) #9785

ViktorHofer opened this issue Jul 12, 2020 · 3 comments
Labels
Product:dotnet.exe Resolution:External This issue appears to be External to nuget WaitingForCustomer Applied when a NuGet triage person needs more info from the OP

Comments

@ViktorHofer
Copy link

Issue migrated manually from dotnet/runtime#33294:

@lpereira wrote:

I'm trying to build on a newly-installed Fedora 31 machine. Dependencies have been installed according to the documentation, but I'm getting a timeout when build.sh tries to restore.

/home/leandro/runtime/.dotnet/sdk/5.0.100-preview.2.20155.14/NuGet.targets(124,5): error : Unable to load the service index for source https://dnceng.pkgs.visualstudio.com/public/_packaging/dotnet-tools/nuget/v3/index.j
son. [/home/leandro/runtime/tools-local/tasks/installer.tasks/installer.tasks.csproj]
/home/leandro/runtime/.dotnet/sdk/5.0.100-preview.2.20155.14/NuGet.targets(124,5): error :   The HTTP request to 'GET https://dnceng.pkgs.visualstudio.com/public/_packaging/dotnet-tools/nuget/v3/index.json' has timed out after 100000ms. [
/home/leandro/runtime/tools-local/tasks/installer.tasks/installer.tasks.csproj]
                     NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://dnceng.pkgs.visualstudio.com/public/_packaging/dotnet-tools/nuget/v3/index.json.

(I've temporarily changed some shell scripts in eng/ to execute with bash tracing, plus force msbuild to be called with diag verbosity. Can send the full log.)

It doesn't seem to be a network issue. Accessing that URL from the command line with something like Curl works just fine and returns me the expected JSON data.

This is unrelated to #2199.

master is at 2018c7931.

--

Also happens in a Ubuntu 19.10 release, with same symptoms: NuGet times out while fetching that JSON, but it's fine if obtained with Curl.

--

On Ubuntu 18.04 this seems to work just fine. (Might be related to something else, as I've also switched from running things inside VirtualBox to Docker for Mac.)

@heng-liu
Copy link
Contributor

Hi @lpereira, can you try to clear the http cache by “dotnet nuget locals http-cache --clear” before running restore?
Pls let me know if you still encounter this issue. Thanks!

@heng-liu heng-liu added the WaitingForCustomer Applied when a NuGet triage person needs more info from the OP label Jul 14, 2020
@nkolev92
Copy link
Member

Triage: Based on the information provided, this issue seems to be particular to the setup. Closing as external.

@ViktorHofer NuGet is not using any special networking logic, so the runtime might be one that can help the customer the most.

@nkolev92 nkolev92 added Product:dotnet.exe Resolution:External This issue appears to be External to nuget labels Jul 23, 2020
@xiangzhai
Copy link

dotnet nuget locals http-cache --clear

Doesn't help:

$ .dotnet/dotnet nuget locals http-cache --clear
Clearing NuGet HTTP cache: /home/zhaixiang/.local/share/NuGet/v3-cache
Local resources cleared.

Still repros:

$ ./build.sh -subset clr

__DistroRid: linux-x64
__RuntimeId: linux-x64
/run/media/zhaixiang/data/project/xiangzhai/runtime-41926/artifacts/toolset/restore.proj : error : Unable to load the service index for source https://api.nuget.org/v3/index.json.
/run/media/zhaixiang/data/project/xiangzhai/runtime-41926/artifacts/toolset/restore.proj : error : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json.
/run/media/zhaixiang/data/project/xiangzhai/runtime-41926/artifacts/toolset/restore.proj : error : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json.
/run/media/zhaixiang/data/project/xiangzhai/runtime-41926/artifacts/toolset/restore.proj : error : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json.
/run/media/zhaixiang/data/project/xiangzhai/runtime-41926/artifacts/toolset/restore.proj : error : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5-transport/nuget/v3/index.json.
/run/media/zhaixiang/data/project/xiangzhai/runtime-41926/artifacts/toolset/restore.proj : error : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json.
/run/media/zhaixiang/data/project/xiangzhai/runtime-41926/artifacts/toolset/restore.proj : error : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6-transport/nuget/v3/index.json.
/run/media/zhaixiang/data/project/xiangzhai/runtime-41926/artifacts/toolset/restore.proj : error : Unable to find package Microsoft.DotNet.Arcade.Sdk. No packages exist with this id in source(s): dotnet-eng, dotnet-tools, dotnet5, dotnet5-transport, dotnet6, dotnet6-transport, nuget.org
/run/media/zhaixiang/data/project/xiangzhai/runtime-41926/artifacts/toolset/restore.proj : error MSB4236: The SDK 'Microsoft.DotNet.Arcade.Sdk' specified could not be found.

Thanks,
Leslie Zhai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product:dotnet.exe Resolution:External This issue appears to be External to nuget WaitingForCustomer Applied when a NuGet triage person needs more info from the OP
Projects
None yet
Development

No branches or pull requests

4 participants