PowerShellGallery icon indicating copy to clipboard operation
PowerShellGallery copied to clipboard

[error]Package 'Az.Accounts' failed to download since MSFT outage yesterday

Open cosmic-jester-uk opened this issue 1 year ago • 4 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest version
  • [X] Search the existing issues.

Steps to reproduce

When executing a CICD pipeline in ADO (YAML script) I get an error saying: WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/3.0.2' is not valid. ##[error]Package 'Az.Accounts' failed to download. ##[error]PowerShell exited with code '1'.

YAML CODE: - task: AzurePowerShell@5 displayName: Install AZ-Synapse inputs: azureSubscription: '$(TEST_DeployDevopsConnection)' ScriptType: 'InlineScript' Inline: "Install-Module -Name \"Az.Synapse\" -Confirm:$false -Scope CurrentUser -Force;" azurePowerShellVersion: 'LatestVersion'

Expected behavior

Installs Az.Synapse

Actual behavior

Pipeline fails

Error details

WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/3.0.2' is not valid.
##[error]Package 'Az.Accounts' failed to download.
##[error]PowerShell exited with code '1'.

Environment data

unknown

Version

3.0.2

Visuals

No response

cosmic-jester-uk avatar Jul 31 '24 13:07 cosmic-jester-uk

@cosmic-jester-uk Thanks for reporting! Is this still happening? I noticed early yesterday we had some flakey downloads (an issue that seemed to be transient because for about 15 minutes some downloads would fail). Could you send us a timestamp of when this happened and if it continues to happen please comment here with the timestamp. I couldn't find anything unusual happening yesterday, but more specificity could help us narrow down the problem.

alerickson avatar Jul 31 '24 15:07 alerickson

Hello, thanks for responding. I ran it just now at (31/07/2024 17:25:00 GMT), here is the excerpt from the console: VERBOSE: Searching repository '[https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts''](https://www.powershellgallery.com/api/v2/FindPackagesById()?id=%27Az.Accounts%27%27) for ''. VERBOSE: InstallPackage' - name='Az.Accounts', version='3.0.2',destination='C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\1390478760' VERBOSE: DownloadPackage' - name='Az.Accounts', version='3.0.2',destination='C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\1390478760\Az.Accounts.3.0.2\ Az.Accounts.3.0.2.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Az.Accounts/3.0.2' VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/3.0.2'. VERBOSE: An error occurred while sending the request. VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/3.0.2' for '2' more times VERBOSE: An error occurred while sending the request. VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/3.0.2' for '1' more times VERBOSE: An error occurred while sending the request. VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/3.0.2' for '0' more times VERBOSE: Downloading package 'Az.Accounts' failed, please make sure 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/3.0.2' is accessable. WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/3.0.2' is not valid.

cosmic-jester-uk avatar Jul 31 '24 16:07 cosmic-jester-uk

If I try a manual download on my PC it works fine. If I try a manual download on the Virtual Machine that I need the package on, I get this: Hmmm… can't reach this page It looks like psg-prod-eastus.azureedge.net closed the connection This makes me think it might be a firewall issue with that VM. It is strange that it happened exactly at the same time the outage happened yesterday. Let me know if you want me to check anything else.

cosmic-jester-uk avatar Jul 31 '24 16:07 cosmic-jester-uk

@cosmic-jester-uk is this still an issue?

SydneyhSmith avatar Aug 27 '24 19:08 SydneyhSmith