question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet restore stalls and prints a lot of things

See original GitHub issue

Steps to reproduce

  • checkout microsoft/visualfsharp
  • cd into lkg folder
  • call dotnet restore
  • wait for eternity

Expected behavior

  • top level summary of packages that needs to be downloaded
  • download packages with a reasonable degree of concurrency
  • report progress after each package being downloaded

Actual behavior

  • pages and pages (and pages) of output with 0 value to end user dotnetrestore.txt (this is 280kb, incomplete output since the process stalled)
  • lots of http requests done without any concern about bandwidth, throttling
  • eventually process stalls completely, 20 min after launching the command, no output, no cpu usage, no network activity

Environment data

dotnet --info output:

>tools\dotnetcli\dotnet --info
.NET Command Line Tools (1.0.0-rc2-002665)

Product Information:
 Version:     1.0.0-rc2-002665
 Commit Sha:  6eea734681

Runtime Environment:
 OS Name:     Windows
 OS Version:  6.1.7601
 OS Platform: Windows
 RID:         win7-x64

Just for your information, to compare user experience I created this text file with edlin.exe (format is so simple that I don’t need anything better):

paket.dependencies

source https://www.myget.org/F/fsharp-daily/api/v3/index.json
source https://www.myget.org/F/dotnet-core/api/v3/index.json
source https://www.myget.org/F/dotnet-buildtools/api/v3/index.json
source https://api.nuget.org/v3/index.json
source https://www.nuget.org/api/v2/

nuget Microsoft.FSharp.Compiler.Host.netcore = 1.0.0-alpha-160406

called paket.exe install next to it

and here is the (entire) output that got printed, I just paste it because unlike the other one I’ve attached, it can be printed without scaring :

Paket version 2.64.0.0
Resolving packages for group Main:
 - Microsoft.FSharp.Compiler.Host.netcore is pinned to 1.0.0-alpha-160406
 - Microsoft.NETCore 5.0.1-rc3-24117-00
 - Microsoft.NETCore.Runtime.CoreCLR 1.0.2-rc3-24117-00
 - Microsoft.NETCore.Platforms 1.0.1-rc3-24117-00
 - Microsoft.NETCore.Windows.ApiSets 1.0.1-rc3-24117-00
 - Microsoft.NETCore.ConsoleHost 1.0.0-rc3-24117-00
 - Microsoft.FSharp.Compiler.NetCore 1.0.0-alpha-160509
 - Microsoft.VisualBasic 10.0.1-rc3-24117-00
 - System.Threading.Tasks.Dataflow 4.6.0-rc3-24117-00
 - System.Numerics.Vectors 4.1.1-rc3-24117-00
 - System.AppContext 4.1.0-rc3-24117-00
 - System.ComponentModel.Annotations 4.1.0-rc3-24117-00
 - System.Diagnostics.Tracing 4.1.0-rc3-24117-00
 - System.IO 4.1.0-rc3-24117-00
 - System.IO.Compression 4.1.0-rc3-24117-00
 - System.Linq 4.1.0-rc3-24117-00
 - System.Linq.Expressions 4.1.0-rc3-24117-00
 - System.Net.Http 4.1.0-rc3-24117-00
 - System.Net.NetworkInformation 4.1.0-rc3-24117-00
 - System.Reflection 4.1.0-rc3-24117-00
 - System.Reflection.TypeExtensions 4.1.0-rc3-24117-00
 - System.Runtime 4.1.0-rc3-24117-00
 - System.Runtime.Extensions 4.1.0-rc3-24117-00
 - System.Runtime.InteropServices 4.1.0-rc3-24117-00
 - System.Text.RegularExpressions 4.1.0-rc3-24117-00
 - System.Diagnostics.Process 4.1.0-rc3-24117-00
 - System.Security.Cryptography.Algorithms 4.2.0-rc3-24117-00
 - System.Collections.Concurrent 4.0.12-rc3-24117-00
 - System.ObjectModel 4.0.12-rc3-24117-00
 - System.Collections 4.0.11-rc3-24117-00
 - System.Diagnostics.Debug 4.0.11-rc3-24117-00
 - System.Dynamic.Runtime 4.0.11-rc3-24117-00
 - System.Globalization 4.0.11-rc3-24117-00
 - System.Net.Primitives 4.0.11-rc3-24117-00
 - System.Text.Encoding 4.0.11-rc3-24117-00
 - System.Text.Encoding.Extensions 4.0.11-rc3-24117-00
 - System.Threading 4.0.11-rc3-24117-00
 - System.Threading.Tasks 4.0.11-rc3-24117-00
 - System.Xml.ReaderWriter 4.0.11-rc3-24117-00
 - System.Xml.XDocument 4.0.11-rc3-24117-00
 - System.Net.Requests 4.0.11-rc3-24117-00
 - System.Threading.ThreadPool 4.0.10-rc3-24117-00
 - Microsoft.CSharp 4.0.1-rc3-24117-00
 - System.ComponentModel 4.0.1-rc3-24117-00
 - System.Diagnostics.Tools 4.0.1-rc3-24117-00
 - System.Globalization.Calendars 4.0.1-rc3-24117-00
 - System.Globalization.Extensions 4.0.1-rc3-24117-00
 - System.IO.Compression.ZipFile 4.0.1-rc3-24117-00
 - System.IO.FileSystem 4.0.1-rc3-24117-00
 - System.IO.FileSystem.Primitives 4.0.1-rc3-24117-00
 - System.IO.UnmanagedMemoryStream 4.0.1-rc3-24117-00
 - System.Linq.Parallel 4.0.1-rc3-24117-00
 - System.Linq.Queryable 4.0.1-rc3-24117-00
 - System.Reflection.DispatchProxy 4.0.1-rc3-24117-00
 - System.Reflection.Extensions 4.0.1-rc3-24117-00
 - System.Reflection.Primitives 4.0.1-rc3-24117-00
 - System.Resources.ResourceManager 4.0.1-rc3-24117-00
 - System.Runtime.Handles 4.0.1-rc3-24117-00
 - System.Runtime.Numerics 4.0.1-rc3-24117-00
 - System.Security.Claims 4.0.1-rc3-24117-00
 - System.Security.Principal 4.0.1-rc3-24117-00
 - System.Threading.Tasks.Parallel 4.0.1-rc3-24117-00
 - System.Threading.Timer 4.0.1-rc3-24117-00
 - System.Reflection.Emit 4.0.1-rc3-24117-00
 - System.Reflection.Emit.ILGeneration 4.0.1-rc3-24117-00
 - System.Diagnostics.TraceSource 4.0.0-rc3-24117-00
 - System.Runtime.InteropServices.PInvoke 4.0.0-rc3-24117-00
 - System.Runtime.Loader 4.0.0-rc3-24117-00
 - System.Security.Cryptography.Primitives 4.0.0-rc3-24117-00
 - System.Threading.Thread 4.0.0-rc3-24117-00
 - NETStandard.Library 1.5.0-rc3-24117-00
 - System.Reflection.Metadata 1.3.0-rc3-24117-00
 - System.Collections.Immutable 1.2.0-rc3-24117-00
 - Microsoft.DiaSymReader 1.0.7
 - Microsoft.NETCore.Targets 1.0.1-rc3-24117-00
 - Microsoft.DiaSymReader.PortablePdb 1.0.0-rc-60301
 - Microsoft.FSharp.Core.netcore 1.0.0-alpha-160509
 - System.Runtime.Serialization.Primitives 4.1.1-rc3-24117-00
 - System.Security.Cryptography.X509Certificates 4.1.0-rc3-24117-00
 - runtime.native.System.IO.Compression 4.1.0-rc3-24117-00
 - System.Net.Sockets 4.1.0-rc3-24117-00
 - System.Runtime.WindowsRuntime 4.0.11-rc3-24117-00
 - System.Runtime.InteropServices.WindowsRuntime 4.0.1-rc3-24117-00
 - System.Diagnostics.Contracts 4.0.1-rc3-24117-00
 - Microsoft.Win32.Primitives 4.0.1-rc3-24117-00
 - System.Reflection.Emit.Lightweight 4.0.1-rc3-24117-00
 - System.Threading.Overlapped 4.0.1-rc3-24117-00
 - runtime.native.System.Net.Http 4.0.1-rc3-24117-00
 - System.Net.WebHeaderCollection 4.0.1-rc3-24117-00
 - System.Threading.Tasks.Extensions 4.0.0-rc3-24117-00
 - System.Diagnostics.DiagnosticSource 4.0.0-rc3-24117-00
 - runtime.native.System 4.0.0-rc3-24117-00
 - System.Buffers 4.0.0-rc3-24117-00
 - System.Security.Principal.Windows 4.0.0-rc3-24117-00
 - runtime.native.System.Security.Cryptography 4.0.0-rc3-24117-00
 - System.Security.Cryptography.Encoding 4.0.0-rc3-24117-00
 - System.Security.Cryptography.OpenSsl 4.0.0-rc3-24117-00
 - System.Console 4.0.0-rc3-24117-00
 - System.Runtime.InteropServices.RuntimeInformation 4.0.0-rc3-24117-00
 - Microsoft.Win32.Registry 4.0.0-rc3-24117-00
 - System.Security.Cryptography.Cng 4.1.0-rc3-24117-00
 - System.Security.Cryptography.Csp 4.0.0-rc3-24117-00
Locked version resolution written to C:\dev\src\projects\github.com\visualfsharp\.paket\test\paket.lock
Downloading Microsoft.CSharp 4.0.1-rc3-24117-00
Downloading Microsoft.DiaSymReader 1.0.7
Downloading Microsoft.FSharp.Compiler.Host.netcore 1.0.0-alpha-160406
Downloading Microsoft.DiaSymReader.PortablePdb 1.0.0-rc-60301
Downloading Microsoft.FSharp.Compiler.netcore 1.0.0-alpha-160509
Downloading Microsoft.FSharp.Core.netcore 1.0.0-alpha-160509
Downloading Microsoft.NETCore 5.0.1-rc3-24117-00
Downloading Microsoft.NETCore.ConsoleHost 1.0.0-rc3-24117-00
Downloading Microsoft.NETCore.Platforms 1.0.1-rc3-24117-00
Downloading Microsoft.NETCore.Runtime.CoreCLR 1.0.2-rc3-24117-00
Downloading Microsoft.NETCore.Targets 1.0.1-rc3-24117-00
Downloading Microsoft.NETCore.Windows.ApiSets 1.0.1-rc3-24117-00
Downloading Microsoft.VisualBasic 10.0.1-rc3-24117-00
Downloading Microsoft.Win32.Primitives 4.0.1-rc3-24117-00
Downloading Microsoft.Win32.Registry 4.0.0-rc3-24117-00
Downloading NETStandard.Library 1.5.0-rc3-24117-00
Downloading runtime.native.System 4.0.0-rc3-24117-00
Downloading runtime.native.System.IO.Compression 4.1.0-rc3-24117-00
Downloading runtime.native.System.Net.Http 4.0.1-rc3-24117-00
Downloading runtime.native.System.Security.Cryptography 4.0.0-rc3-24117-00
Downloading System.AppContext 4.1.0-rc3-24117-00
Downloading System.Buffers 4.0.0-rc3-24117-00
Downloading System.Collections 4.0.11-rc3-24117-00
Downloading System.Collections.Concurrent 4.0.12-rc3-24117-00
Downloading System.Collections.Immutable 1.2.0-rc3-24117-00
Downloading System.ComponentModel 4.0.1-rc3-24117-00
Downloading System.ComponentModel.Annotations 4.1.0-rc3-24117-00
Downloading System.Console 4.0.0-rc3-24117-00
Downloading System.Diagnostics.Contracts 4.0.1-rc3-24117-00
Downloading System.Diagnostics.Debug 4.0.11-rc3-24117-00
Downloading System.Diagnostics.DiagnosticSource 4.0.0-rc3-24117-00
Downloading System.Diagnostics.Process 4.1.0-rc3-24117-00
Downloading System.Diagnostics.Tools 4.0.1-rc3-24117-00
Downloading System.Diagnostics.TraceSource 4.0.0-rc3-24117-00
Downloading System.Diagnostics.Tracing 4.1.0-rc3-24117-00
Downloading System.Dynamic.Runtime 4.0.11-rc3-24117-00
Downloading System.Globalization 4.0.11-rc3-24117-00
Downloading System.Globalization.Calendars 4.0.1-rc3-24117-00
Downloading System.Globalization.Extensions 4.0.1-rc3-24117-00
Downloading System.IO 4.1.0-rc3-24117-00
Downloading System.IO.Compression 4.1.0-rc3-24117-00
Downloading System.IO.Compression.ZipFile 4.0.1-rc3-24117-00
Downloading System.IO.FileSystem 4.0.1-rc3-24117-00
Downloading System.IO.FileSystem.Primitives 4.0.1-rc3-24117-00
Downloading System.IO.UnmanagedMemoryStream 4.0.1-rc3-24117-00
Downloading System.Linq 4.1.0-rc3-24117-00
Downloading System.Linq.Expressions 4.1.0-rc3-24117-00
Downloading System.Linq.Parallel 4.0.1-rc3-24117-00
Downloading System.Linq.Queryable 4.0.1-rc3-24117-00
Downloading System.Net.Http 4.1.0-rc3-24117-00
Downloading System.Net.NetworkInformation 4.1.0-rc3-24117-00
Downloading System.Net.Primitives 4.0.11-rc3-24117-00
Downloading System.Net.Requests 4.0.11-rc3-24117-00
Downloading System.Net.Sockets 4.1.0-rc3-24117-00
Downloading System.Net.WebHeaderCollection 4.0.1-rc3-24117-00
Downloading System.Numerics.Vectors 4.1.1-rc3-24117-00
Downloading System.ObjectModel 4.0.12-rc3-24117-00
Downloading System.Reflection 4.1.0-rc3-24117-00
Downloading System.Reflection.DispatchProxy 4.0.1-rc3-24117-00
Downloading System.Reflection.Emit 4.0.1-rc3-24117-00
Downloading System.Reflection.Emit.ILGeneration 4.0.1-rc3-24117-00
Downloading System.Reflection.Emit.Lightweight 4.0.1-rc3-24117-00
Downloading System.Reflection.Extensions 4.0.1-rc3-24117-00
Downloading System.Reflection.Metadata 1.3.0-rc3-24117-00
Downloading System.Reflection.Primitives 4.0.1-rc3-24117-00
Downloading System.Reflection.TypeExtensions 4.1.0-rc3-24117-00
Downloading System.Resources.ResourceManager 4.0.1-rc3-24117-00
Downloading System.Runtime 4.1.0-rc3-24117-00
Downloading System.Runtime.Extensions 4.1.0-rc3-24117-00
Downloading System.Runtime.Handles 4.0.1-rc3-24117-00
Downloading System.Runtime.InteropServices 4.1.0-rc3-24117-00
Downloading System.Runtime.InteropServices.PInvoke 4.0.0-rc3-24117-00
Downloading System.Runtime.InteropServices.RuntimeInformation 4.0.0-rc3-24117-00
Downloading System.Runtime.InteropServices.WindowsRuntime 4.0.1-rc3-24117-00
Downloading System.Runtime.Loader 4.0.0-rc3-24117-00
Downloading System.Runtime.Numerics 4.0.1-rc3-24117-00
Downloading System.Runtime.Serialization.Primitives 4.1.1-rc3-24117-00
Downloading System.Runtime.WindowsRuntime 4.0.11-rc3-24117-00
Downloading System.Security.Claims 4.0.1-rc3-24117-00
Downloading System.Security.Cryptography.Algorithms 4.2.0-rc3-24117-00
Downloading System.Security.Cryptography.Cng 4.1.0-rc3-24117-00
Downloading System.Security.Cryptography.Csp 4.0.0-rc3-24117-00
Downloading System.Security.Cryptography.Encoding 4.0.0-rc3-24117-00
Downloading System.Security.Cryptography.OpenSsl 4.0.0-rc3-24117-00
Downloading System.Security.Cryptography.Primitives 4.0.0-rc3-24117-00
Downloading System.Security.Cryptography.X509Certificates 4.1.0-rc3-24117-00
Downloading System.Security.Principal 4.0.1-rc3-24117-00
Downloading System.Security.Principal.Windows 4.0.0-rc3-24117-00
Downloading System.Text.Encoding 4.0.11-rc3-24117-00
Downloading System.Text.Encoding.Extensions 4.0.11-rc3-24117-00
Downloading System.Text.RegularExpressions 4.1.0-rc3-24117-00
Downloading System.Threading 4.0.11-rc3-24117-00
Downloading System.Threading.Overlapped 4.0.1-rc3-24117-00
Downloading System.Threading.Tasks 4.0.11-rc3-24117-00
Downloading System.Threading.Tasks.Dataflow 4.6.0-rc3-24117-00
Downloading System.Threading.Tasks.Extensions 4.0.0-rc3-24117-00
Downloading System.Threading.Tasks.Parallel 4.0.1-rc3-24117-00
Downloading System.Threading.Thread 4.0.0-rc3-24117-00
Downloading System.Threading.ThreadPool 4.0.10-rc3-24117-00
Downloading System.Threading.Timer 4.0.1-rc3-24117-00
Downloading System.Xml.ReaderWriter 4.0.11-rc3-24117-00
Downloading System.Xml.XDocument 4.0.11-rc3-24117-00
23 minutes, 22 seconds - ready.

paket is a community project, maintained by volunteers on their free time, you might consider contributing to it and integrate it in the dotnet restore story; so far it does the job better than the dotnet restore I tried.

Paket has a lots of other goodies too.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:12
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
blackdwarfcommented, May 19, 2016

@smoothdeveloper could be, the Nuget team is still investigating, as you can see in the linked issue. To see if this solves your issue, just disable those virtual adapters and re-run dotnet restore.

The NuGet cache is in your home directory on Windows under .nuget in most cases. There is a packages dir below it that you delete.

0reactions
TheRealPiotrPcommented, May 26, 2016

dotnet/cli#3229 reduces the verbosity of NuGet during dotnet restore. The other NuGet behaviors described are not under CLI control so should go to https://github.com/nuget/home

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet restore hangs indefinitely · Issue #724
I looked that while having many libs in the folder wwwroot\lib dotnet restore takes a while to restore the files, If I remove...
Read more >
`dotnet build` and `dotnet restore` hangs forever without ...
Today it stops working. VS2019 cannot build any .NET project, without showing any error. I tried to run dotnet build and dotnet restore...
Read more >
DotNet core slow restore : r/docker
If you copy in everything and then restore, any change to a source file means that previous copy layer has changed - Docker...
Read more >
dotnet restore command - .NET CLI
dotnet restore - Restores the dependencies and tools of a project. ... Prints out a description of how to use the command.
Read more >
Dotnet restore clean. cs files) Removing information from ...
For example: msbuild <file name>. The folder does not have any spaces in it. The NuGet package restorer used to restore solution packages....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found