Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
ProGet 2023.13: Delay after package upload
-
Hi,
we noticed a delay between uploading a package and being able to do a nuget restore on a consumer of this package.
More specific:
We uploaded a new package "DAP.Common 7.0.13" to ProGet. Afterwards, we updated the dependency to this new version manually in a consuming project. We tried to call nuget restore but it failed with the following error: "Unable to find package DAP.Common with version (>= 7.0.13)". There were about 15 minutes between package upload and nuget restore. A few minutes later we tried it again and the package was found. But the package could be seen on ProGet right after the uplaod.
We were able to observe this behavior with several packages. If the dependency got updated manually in a consuming project, nuget restore failed for a certain time period.Unfortunately, we can not say if the problem is still present if the nuget package manager in Visual Studio would have been used to update the package dependency.
Have you already seen such a behavior?
-
Hi @caterina,
This has been an issue we see from time to time and it is related to NuGet's request caching. One thing to try first is to make sure you do not have IIS request caching enabled. To do this:
- Navigate to your ProGet site in IIS
- Double click on "Output caching"
- On the right, click "Edit Feature Settings..."
- Uncheck both "Enable cache" and "Enable Kernel Cache"
- Click OK
The next thing to try is to clear NuGet's HTTP cache. You can do that by running the following NuGet command:
nuget locals http-cache -clear
Typically the combination of these will resolve the issue. Can you please try these next time you have the issue?
Thanks,
Dan
-
Hi @Dan_Woolf,
so it seems to be a long known issue: https://github.com/NuGet/Home/issues/3116
Thank you for your help.
Caterina