PowerShell / PowerShellGallery

221 stars 61 forks source link

The gallery is running EXTREMELY slow and packages aren't hashing #144

Closed nexxai closed 3 years ago

nexxai commented 3 years ago

Our ADO pipelines which install modules from the gallery are failing at random times. We're also not the only ones having issues: https://twitter.com/HtekConsulting/status/1325903714754899971?s=20

2020-11-09T22:21:16.7881410Z VERBOSE: Using the provider 'PowerShellGet' for searching packages.
2020-11-09T22:21:16.7979287Z VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.
2020-11-09T22:21:16.7989688Z VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
2020-11-09T22:21:16.7995520Z VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
2020-11-09T22:21:16.8090147Z VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Automation'' for ''.
2020-11-09T22:21:31.4278131Z VERBOSE: Total package yield:'1' for the specified package 'Az.Automation'.
2020-11-09T22:21:31.5998017Z VERBOSE: Performing the operation "Install-Module" on target "Version '1.4.0' of module 'Az.Automation'".
2020-11-09T22:21:31.6225493Z VERBOSE: The installation scope is specified to be 'CurrentUser'.
2020-11-09T22:21:31.6236506Z VERBOSE: The specified module will be installed in 'C:\Users\VssAdministrator\Documents\WindowsPowerShell\Modules'.
2020-11-09T22:21:31.6474757Z VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
2020-11-09T22:21:31.6561588Z VERBOSE: Downloading module 'Az.Automation' with version '1.4.0' from the repository 
2020-11-09T22:21:31.6564074Z 'https://www.powershellgallery.com/api/v2'.
2020-11-09T22:21:33.7975145Z VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Automation'' for ''.
2020-11-09T22:21:44.9731921Z VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''.
2020-11-09T22:22:02.5428391Z VERBOSE: InstallPackage' - name='Az.Accounts', 
2020-11-09T22:22:02.5429295Z version='2.1.2',destination='C:\Users\VssAdministrator\AppData\Local\Temp\811282005'
2020-11-09T22:22:02.5441098Z VERBOSE: DownloadPackage' - name='Az.Accounts', 
2020-11-09T22:22:02.5441894Z version='2.1.2',destination='C:\Users\VssAdministrator\AppData\Local\Temp\811282005\Az.Accounts.2.1.2\Az.Accounts.2.1.2
2020-11-09T22:22:02.5443076Z .nupkg', uri='https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.1.2'
2020-11-09T22:22:02.5452277Z VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.1.2'.
2020-11-09T22:22:11.1004135Z VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.1.2'.
2020-11-09T22:22:11.1010522Z VERBOSE: Completed downloading 'Az.Accounts'.
2020-11-09T22:22:11.1907403Z VERBOSE: Hash for package 'Az.Accounts' does not match hash provided from the server.
2020-11-09T22:22:11.1923301Z VERBOSE: InstallPackageLocal' - name='Az.Accounts', 
2020-11-09T22:22:11.1924420Z version='2.1.2',destination='C:\Users\VssAdministrator\AppData\Local\Temp\811282005'
2020-11-09T22:22:11.6731576Z VERBOSE: InstallPackage' - name='Az.Automation', 
2020-11-09T22:22:11.6732798Z version='1.4.0',destination='C:\Users\VssAdministrator\AppData\Local\Temp\811282005'
2020-11-09T22:22:11.6758426Z VERBOSE: DownloadPackage' - name='Az.Automation', 
2020-11-09T22:22:11.6759448Z version='1.4.0',destination='C:\Users\VssAdministrator\AppData\Local\Temp\811282005\Az.Automation.1.4.0\Az.Automation.1
2020-11-09T22:22:11.6760117Z .4.0.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Az.Automation/1.4.0'
2020-11-09T22:22:11.6767151Z VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.Automation/1.4.0'.
2020-11-09T22:22:21.1373283Z VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.Automation/1.4.0'.
2020-11-09T22:22:21.1379382Z VERBOSE: Completed downloading 'Az.Automation'.
2020-11-09T22:22:21.1453379Z VERBOSE: Hash for package 'Az.Automation' does not match hash provided from the server.
alerickson commented 3 years ago

Hi @nexxai are other packages not hashing as well or just the Az modules? The gallery running slowly was likely due to a couple of deployments pushed out today.

nexxai commented 3 years ago

Unfortunately I can't answer that question as we only use Az modules in this script.

nexxai commented 3 years ago

Looks like it had to do with the CDN issues from earlier: https://twitter.com/Steve_MSFT/status/1325973388083359746?s=20

Everything is working properly now.