NXDOMAIN results for the psg-prod-eastus.azureedge.net domain are breaking package downloads
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- azure, powershell
- Domínio
- infrastructure
Direção de pesquisa
Start by reviewing the reported failures in PowerShellGet’s package download flow and the PowerShell Gallery endpoints named in the issue, especially psg-prod-eastus.azureedge.net. The report shows intermittent DNS resolution failures across GitHub hosted runners and two public resolvers, but does not identify a project file or test to change. Done means package downloads succeed reliably when the reported endpoint is queried.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
Install any module.
Install-Module AWS.Tools.ECR-Verbose
Occasionally you will get a failure to download the package.
Expected behavior
PS> $ErrorView = 'DetailedView'
PS> $requiredModules = @("AWS.Tools.Common", "AWS.Tools.ECR")
PS> $requiredModules | Foreach-Object {
Write-Host "Installing PowerShell Module '$module'"
Install-Module -Name $module -Force -Verbose
}
Both modules install successfully.
Actual behavior
PS> $ErrorView = 'DetailedView'
PS> $requiredModules = @("AWS.Tools.Common", "AWS.Tools.ECR")
PS> $requiredModules | Foreach-Object {
Write-Host "Installing PowerShell Module '$module'"
Install-Module -Name $module -Force -Verbose
}
One occasionally fails, sometimes the first, sometimes the second.
Error details
PS> $ErrorView = 'DetailedView'
PS> $requiredModules = @("AWS.Tools.Common", "AWS.Tools.ECR")
PS> $requiredModules | Foreach-Object {
Write-Host "Installing PowerShell Module '$module'"
Install-Module -Name $module -Force -Verbose
}
Installing PowerShell Module 'AWS.Tools.Common'
VERBOSE: Acquiring providers for assembly: /opt/microsoft/powershell/7/Modules/PackageManagement/coreclr/netstandard2.0/Microsoft.PackageManagement.MetaProvider.PowerShell.dll
VERBOSE: Acquiring providers for assembly: /opt/microsoft/powershell/7/Modules/PackageManagement/coreclr/netstandard2.0/Microsoft.PackageManagement.ArchiverProviders.dll
VERBOSE: Acquiring providers for assembly: /opt/microsoft/powershell/7/Modules/PackageManagement/coreclr/netstandard2.0/Microsoft.PackageManagement.NuGetProvider.dll
VERBOSE: Acquiring providers for assembly: /opt/microsoft/powershell/7/Modules/PackageManagement/coreclr/netstandard2.0/Microsoft.PackageManagement.CoreProviders.dll
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
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'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AWS.Tools.Common'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'AWS.Tools.Common'.
VERBOSE: Performing the operation "Install-Module" on target "Version '4.1.734' of module 'AWS.Tools.Common'".
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in '/home/runner/.local/share/powershell/Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'AWS.Tools.Common' with version '4.1.734' from the repository 'https://www.powershellgallery.com/api/v2'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AWS.Tools.Common'' for ''.
VERBOSE: InstallPackage' - name='AWS.Tools.Common', version='4.1.734',destination='/tmp/1065875406'
VERBOSE: DownloadPackage' - name='AWS.Tools.Common', version='4.1.734',destination='/tmp/1065875406/AWS.Tools.Common.4.1.734/AWS.Tools.Common.4.1.734.nupkg', uri='https://www.powershellgallery.com/api/v2/package/AWS.Tools.Common/4.1.734'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/AWS.Tools.Common/4.1.734'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/AWS.Tools.Common/4.1.734'.
VERBOSE: Completed downloading 'AWS.Tools.Common'.
VERBOSE: InstallPackageLocal' - name='AWS.Tools.Common', version='4.1.734',destination='/tmp/1065875406'
VERBOSE: Validating the 'AWS.Tools.Common' module contents under '/tmp/1065875406/AWS.Tools.Common.4.1.734' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file '/tmp/1065875406/AWS.Tools.Common.4.1.734'.
VERBOSE: Module 'AWS.Tools.Common' was installed successfully to path '/home/runner/.local/share/powershell/Modules/AWS.Tools.Common/4.1.734'.
Installing PowerShell Module 'AWS.Tools.ECR'
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
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'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AWS.Tools.ECR'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'AWS.Tools.ECR'.
VERBOSE: Performing the operation "Install-Module" on target "Version '4.1.734' of module 'AWS.Tools.ECR'".
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in '/home/runner/.local/share/powershell/Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'AWS.Tools.ECR' with version '4.1.734' from the repository 'https://www.powershellgallery.com/api/v2'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AWS.Tools.ECR'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AWS.Tools.Common'' for ''.
VERBOSE: InstallPackage' - name='AWS.Tools.Common', version='4.1.734',destination='/tmp/295771909'
VERBOSE: DownloadPackage' - name='AWS.Tools.Common', version='4.1.734',destination='/tmp/295771909/AWS.Tools.Common.4.1.734/AWS.Tools.Common.4.1.734.nupkg', uri='https://www.powershellgallery.com/api/v2/package/AWS.Tools.Common/4.1.734'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/AWS.Tools.Common/4.1.734'.
VERBOSE: Name or service not known (psg-prod-eastus.azureedge.net:443)
VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/AWS.Tools.Common/4.1.734' for '2' more times
VERBOSE: Name or service not known (psg-prod-eastus.azureedge.net:443)
VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/AWS.Tools.Common/4.1.734' for '1' more times
VERBOSE: Name or service not known (psg-prod-eastus.azureedge.net:443)
VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/AWS.Tools.Common/4.1.734' for '0' more times
VERBOSE: Downloading package 'AWS.Tools.Common' failed, please make sure 'https://www.powershellgallery.com/api/v2/package/AWS.Tools.Common/4.1.734' is accessable.
WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/AWS.Tools.Common/4.1.734' is not valid.
Install-Package: Package 'AWS.Tools.Common' failed to download.
Error: Process completed with exit code 1.
Environment data
I've had this occur in github actions on github hosted runners and can see the domain name failing to resolve
periodically from our office in New Zealand.
Version
Multiple versions (one is 7.4.6)
Visuals
With verbose output while installing the modules you can see the domain resolution failures:
I wrote a crappy script to check all the domains I could find listed that are required for psgallery package search and downloads and the eastus is the only one failing to resolve. It's failing to resolve from multiple DNS servers (I used google and cloudflare in this test):
# Crappy script to check all psgallery domains
$domains = @("psg-prod-eastus.azureedge.net", "psg-prod-centralus.azureedge.net", "onegetcdn.azureedge.net", "az818661.vo.msecnd.net", "powershellgallery.azureedge.net")
$resolvers = @("8.8.8.8", "1.1.1.1")
while ($true) {
Start-Sleep -Seconds 1
foreach ($resolver in $resolvers) {
$results = [ordered]@{}
foreach($domain in $domains) {
$results[$domain] = $false
try {
Resolve-DnsName -Name $domain -Server $resolver -ErrorAction Stop | Out-Null
$results[$domain] = $true
} catch {
if ($_.Exception.Message -notlike "*name does not exist*") {
throw
}
}
}
Write-Host "$resolver > " -NoNewline
$results.GetEnumerator() | ForEach-Object {
$color = ($false -eq $_.Value) ? "Red" : "Green"
Write-Host -ForegroundColor $color -Message $_.Name -NoNewline
Write-Host ", " -NoNewline
}
Write-Host ""
}
}
- Linguagem predominante
- PowerShell
- Estrelas
- 289
- Forks
- 83
- Merge médio
- 1min
- PRs com merge (30d)
- 1
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de PowerShell/PowerShellGallery
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 38/100
PowerShell/PowerShellGallery#357 · 3 comentários · 4 reações ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 48/100
PowerShell/PowerShellGallery#355 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 31/100
PowerShell/PowerShellGallery#354 · 1 comentário · 3 reações ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
PowerShell/PowerShellGallery#353 · 5 reações ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
PowerShell/PowerShellGallery#350 · 7 comentários · 8 reações ·
Todas as issues de PowerShell/PowerShellGallery
Issues semelhantes
-
ci-cd desktop size:low telemetry-improvement telemetry-round-1
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
vfarcic/dot-agent-deck#2079 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
leanprover-community/lean4game#589 ·
Mantenedores costumam responder em até 2 dias
-
Bug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
RazorConsole/RazorConsole#447 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
kyma-project/api-gateway#2933 ·
Mantenedores costumam responder em até 2 dias
-
Dependabot compat-checks fails on every PRTalvez já em andamento @dogancanbakir assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
HappyHackingSpace/witness#120 ·
Mantenedores costumam responder em até 1 dia