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

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

Open
3 tasks done
cosmic-jester-uk opened this issue Jul 31, 2024 · 4 comments
Open
3 tasks done

Comments

@cosmic-jester-uk
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • 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

@alerickson
Copy link
Member

@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.

@cosmic-jester-uk
Copy link
Author

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
Copy link
Author

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.

@SydneyhSmith
Copy link
Contributor

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

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

3 participants