-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
dotnet restore hangs indefinitely #724
Comments
I looked that while having many libs in the folder wwwroot\lib dotnet restore takes a while to restore the files, If I remove that folder it restores immediately. This happens with al dotnet commands. CLI and Visual Studio 2017 Preview 3 |
I put a full process dump of a hung dotnet.exe here: https://1drv.ms/u/s!Aq5gXOPBI5HdiroRLPy1hDY3yK80kQ
|
I eventually realised that I had a very large number of files in the subdirectories under the Now, it's my belief that the presence of these files shouldn't have caused problems for a simple I tried to procmon.exe the activity of dotnet.exe but the trace was large. The screenshot below showed that it is indeed accessing all the subdirectories, In this case, it seemed like the thing just never terminated, I don't know what it was doing though o all those blocked threads Anyway, I think the bug here is that running Now I know that I can get on with the rest of my work :) |
@rrelyea should this get moved to the nuget repo to get tracked? |
I got the same issue. For me the problem was that new dotnet restore (from dotnet-sdk-2.0.0-preview2-006497-win-x64) ignores disabledPackageSources configuration in NuGet.Config, and I had some of them unreachable. Removing these sources helped. |
@Petermarcu I was going to make @ https://github.com/NuGet/NuGet.Client but issues are not enabled. |
@richlander you make it on the nuget/home repo |
Same issue here: fable-compiler/Fable#1042 |
Working on creating NuGet/home issues ... will link when created. |
@dsyme - in dotnet cli v1 previews, we used to walk all the sub directories. I had thought we changed that when we switched to make restore recursive (across project references) by defeault. do you have the same problem if you do a "dotnet restore --no-dependencies" in that same directory? |
@MathiasKowoll - can you please give me repro steps for your problem (full details), and how you avoided it. |
@forki - I am unable to repro. |
@rrelyea create mvc app with individual authentication. replace bower.sjon with the following. { make bower install run dotnet restore. |
@rrelyea thanks for looking into this. I notified the original author of the issue. We have multiple people reporting this on the fable gitter chat. I assume it's related to node_modules and dotnet restore iterating long time over it |
Seems that things worked with preview1 see fable-compiler/Fable#1042 |
This issue was moved to NuGet/Home#5583 |
Moving this to NuGet for now, @rrelyea it seems NuGet is involved in this, if this ends up not being the case - feel free to move it a product-based repo. |
@davkean The same thing happens for dotnet build. It's probably more an issue with dotnet cli than nuget |
I'm not sure where to log the bug with Azure App Services, cc @suwatch & @davidebbo. Since 2.0.0-preview2-006497 was rolled out on Friday, our builds using Azure Kudu have gone from 5 minutes to 50 minutes. The last 5 minute build was using 2.0.0-preview1-005977. |
@ctaggart it's by design to increase your azure bill ;-) |
@ctaggart Do you have access to logs for kudo build? If you did, we'd appreciate seeing them to help diagnose the issue. Send to rlander@ms. |
@richlander @ctaggart in the linked issues the root cause is analysed as gobbling going rogue in restore and build. Workaround |
Thanks @forki, that dropped the build time down to 15 minutes. Fable is taking up about 11 minutes though, which is much longer than it was before even with the attempted workaround on that line too: dotnet restore /p:EnableDefaultItems=false
dotnet fable npm-run build /p:EnableDefaultItems=false |
yes that's exactly the same thing. somehow all dotnet commands are broken now. |
@richlander Diagnostics for our internal company dashboard build are in your inbox. I built it using Fable and the builds auto-deploy using Azure Kudu. We are really looking forward to a stable dotnet 2. Let me know if I can assist further. |
Can we open this up on the CLI since this isn't a NuGet bug? |
cc @livarcocc - see this: NuGet/Home#5583 (comment) |
It's not a CLI bug either, let @emgarten figure out the cause or then it will either be against SDK or MSBuild. |
@dsplaisted is going to investigate this. |
There is another proposed workaround NuGet/Home#5583 (comment) |
See:
/cc @rrelyea
The text was updated successfully, but these errors were encountered: