Skip to content
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

Unable to Download list of available providers. #541

Open
JuliusPIV opened this issue Oct 12, 2023 · 2 comments
Open

Unable to Download list of available providers. #541

JuliusPIV opened this issue Oct 12, 2023 · 2 comments

Comments

@JuliusPIV
Copy link

On fresh installs of Windows 11 we're attempting to install NuGet in PowerShell v5 using the following command line:
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Scope AllUsers -Force -ForceBootstrap -Confirm:$false -Verbose:$true -ErrorAction Stop

The process fails with errors including "Inable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409'" and "Unable to download the list of available providers. Check your internet connection."
image

If I then try to run Find-PackageProvider i also fails with the same error and terminates with "The specified PackageManagement provider 'NuGet' is not available."
image

The error text says it’s unable to download from URI https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409 and when we go there in Edge, we’re redirected to https://onegetcdn.azureedge.net/providers/providers.masterList.feed.swidtag but the page doesn’t load, displaying a 'took too long to response' error.
image

Packet captures confirm we’re seeing a SYN but there’s no ACK resulting in an “incomplete conversation”. We’ve ruled out as much as we can on the endpoint itself and our networking teams confirmed they’ve verified there isn’t anything on our corporate network (corporate Ethernet, corporate Wi-Fi, corporate guest, corporate firewall etc.) that’s getting in the way of these requests.

Is it possible that our block of IP's has been blacklisted somehow?
Is OneGet still functional, supported?
Since AnyPackage is the recommended replacement, what's the upgrade path? (read: What is the appropriate process for removing PackageManagement/OneGet and replacing it with AnyPackage?)

@JuliusPIV
Copy link
Author

bump
We're still seeing this issue and are in search of who to contact for guidance & further troubleshooting.
If we're doing something wrong, we'd like to know what specifically so we can fix it.

@kasperk81
Copy link

@SydneyhSmith @SteveL-MSFT this is troubling and it has been reported several times in multiple repos... I installed latest Windows 11 in a VM with updates, then install PS 7 and ran:

$ find-packageprovider -name "NuGet" -force -debug
DEBUG: 00:00:00.0000460 Calling SearchForPackages. Name='NuGet'
VERBOSE: Using the provider 'Bootstrap' for searching packages.

Confirm
Continue with this operation?
[Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is "Y"): A
DEBUG: 00:00:00.0100449 PackageProvider::FindPackage with name NuGet
DEBUG: 00:00:00.0132995 Calling SearchForPackages After Select 1
VERBOSE: Finding the package 'Bootstrap::FindPackage' 'NuGet','','','''.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
DEBUG: 00:00:00.0173466 PackageProvider::FindPackage with name NuGet
DEBUG: 00:00:00.0187229 Calling SearchForPackages After Select 1
DEBUG: 00:00:00.0227216 Calling New() : MethodName = 'FindPackage'
DEBUG: 00:00:00.0227666 Debug: True
DEBUG: 00:00:00.0227766 Name: NuGet
DEBUG: 00:00:00.0227819 Force: True
DEBUG: 00:00:00.0269074 INVOKING PowerShell Fn Find-Package with args System.String[], , ,  that has length 4
DEBUG: 00:00:00.0302419 In PowerShellGet Provider - 'Find-Package'.
DEBUG: 00:00:00.0318755 OPTION: Debug => True
DEBUG: 00:00:00.0321443 OPTION: Name => NuGet
DEBUG: 00:00:00.0322180 OPTION: Force => True
VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
DEBUG: 00:00:00.0461192 PackageProvider::FindPackage with name NuGet
DEBUG: 00:00:00.0517423 Calling 'NuGet'::'FindPackage' - name='NuGet', requiredVersion='',minimumVersion='', maximumVersion='''.
DEBUG: 00:00:00.0523371 Iterating 'NuGet'.
DEBUG: 00:00:00.0547982 There are '1' registered sources in 'NuGet' provider.
DEBUG: 00:00:00.0550104 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:00.0556610 Source 'https://www.powershellgallery.com/api/v2' is validated.
DEBUG: 00:00:00.0559049 Calling 'NuGetRequest'::'GetPackageById', 'NuGet'.
DEBUG: 00:00:00.0560005 Calling 'NuGetPackageRepository'::'FindPackagesById', 'NuGet'.
DEBUG: 00:00:00.0560324 Calling 'NuGetPackageFeed2'::'FindPackage', 'NuGet'.
DEBUG: 00:00:00.0560463 Calling 'NuGetClient'::'FindPackage'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='NuGet'' for ''.
DEBUG: 00:00:00.0565660 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='NuGet'&$skip=0&$top=40'.
DEBUG: 00:00:00.3336118 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='NuGet'&$skip=0&$top=40'.
DEBUG: 00:00:00.3427358 '3' packages received in the last request.
DEBUG: 00:00:00.3460460 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='NuGet'&$skip=0&$top=40'.
DEBUG: 00:00:00.4977560 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='NuGet'&$skip=0&$top=40'.
DEBUG: 00:00:00.4981332 '3' packages received in the last request.
VERBOSE: Total package yield:'1' for the specified package 'NuGet'.
DEBUG: 00:00:00.5020757 Completed iterating for 'NuGet'.
DEBUG: 00:00:00.5310586 Done calling powershell «Find-Package» «PSModule»
DEBUG: 00:00:01.3515405 unmatched package name='NuGet'
Find-PackageProvider: No match was found for the specified search criteria and package name 'NuGet'. Try Get-PackageSource to see all available registered package sources.

VERBOSE: Total package yield:'1' for the specified package 'NuGet'. is coming from https://github.com/OneGet/NuGetProvider/blob/6c486d0de4f4c550615467d2b1298e5fb0cdcd2b/NugetLightRequest.cs#L700

so far, so good. between provider and oneget something goes wrong and nuget is reported null in _resultsPerName dictionary:

Debug(string.Format(CultureInfo.CurrentCulture, "unmatched package name='{0}'", name));

judging by lack of interest in prs OneGet/NuGetProvider#59 what are the chances this will be taken seriously if someone goes down the rabithole and actually fix this dam bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants