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 Storage and Retention for NuGet and Npm cache feeds
-
Hi Everyone,
We have upgraded from ProGet 2022.30 to 2023.28. After the upgrade when selecting the Storage And Retention option on the feed we get a timeout. Other feeds have no issue but when selecting the one for the public NuGet Gallery proxy we get the following error.
The logs contain this:
URL: https://proget.wtg.zone/feed/manage/storage?feedId=1 Referrer: https://proget.wtg.zone/feed/manage?feedId=1 User: SW User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0 Stack trace: at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__209_0(Task`1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Inedo.Data.DatabaseContext.DbResult.CreateAsync(DbCommand command, DatabaseContext context, DateTimeOffset startTime, Stopwatch stopwatch) at Inedo.Data.DatabaseContext.ExecuteInternalAsync(String storedProcName, GenericDbParameter[] parameters) at Inedo.Data.SqlServerDatabaseContext.ExecuteInternalAsync(String storedProcName, GenericDbParameter[] parameters) at Inedo.Data.DatabaseContext.ExecuteTableAsync[TRow](String storedProcName, GenericDbParameter[] parameters) at Inedo.ProGet.WebApplication.Pages.Feeds.Manage.ManageFeedStoragePage.BuildLargestPackages(StyledTable largestPackagesTable) at Inedo.ProGet.WebApplication.Pages.Feeds.Manage.ManageFeedStoragePage.AddContentControlsAsync(ContentContainer content) at Inedo.ProGet.WebApplication.Pages.Feeds.Manage.ManageFeedPageBase.CreateChildControlsAsync() at Inedo.ProGet.WebApplication.Pages.ProGetSimplePage.InitializeAsync() at Inedo.Web.PageFree.SimplePageBase.ExecutePageLifeCycleAsync() at Inedo.Web.PageFree.SimplePageBase.ProcessRequestAsync(AhHttpContext context) at Inedo.Web.AhWebMiddleware.InvokeAsync(HttpContext context)
-
Hi @scott-wright_8356 ,
Based on the stack trace, it looks like the timeout is occurring while running the
Dashboards_GetLargestPackages
procedure. We've tested that with feeds with 100K to 1M packages with no issues.Suince you were digging into other SQL performance issues, can you try running that in SQL Server? Specifically
Dashboards_GetLargestPackages 1, 10
Thanks,
Alana
-
Hi Atripp,
We have received some scripts from Alex Papadimoulis. We started running these yesterday and the SQL blocking has so far disappeared and the Dashboards_GetLargestPackages now has no issues. Looks like Brett Shearer and Alex have a solution for both problems. Our load is still an issue at peak times but features are now working fast. Will keep monitoring and get back to Alex confirming the outcomes of the new stored procedures next week.
Thank you