Closed sameer-kumar closed 2 years ago
Thanks for opening this issue @sameer-kumar our monitoring didnt indicate an outage at this time, although we are doing more investigation, are you still experiencing this issue?
Its disappeared now. Nothing changed in our pipelines. I don't know what was the issue.
Its happening again. Last error noted on 04/14/22. Following failed attempts:
Thanks for the info, wanted to update you that this is not showing in our monitoring so we are investigating what could be happening
It appears to be offline hard right now, website is down and unable to publish a module using our Azure DevOps pipeline.
Edit: I should note the status page only shows a login issue earlier in the day but not the current outage.
Thanks, we are investigating the issue and working to get the gallery up as quickly as possible...will try to post updates as available
This is now resolved, please let us know if you are still experiencing any issues
Still experiencing the issue (from several locations)
I am also still experiencing the issue. It has not changed since the psgallery_status.md was updated 2 hours ago to say resolved. I get exactly the same output as @Angel-CDO above (no need to repaste it). I get this result both from PCs on my network as well as from EC2s exiting aws.
I tried flushing my DNS cache on the off chance that would help but no cigar.
@GunArm @Angel-CDO if you use the browser are you able to go to www.powershellgallery.com?
Yes I am, and before it was "resolved" I was not able to. So that did change.
PS C:\WINDOWS\system32> curl www.powershellgallery.com | head
StatusCode : 200
StatusDescription : OK
Content : <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale...
PS C:\WINDOWS\system32> Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
Get-PSGalleryApiAvailability : PowerShell Gallery is currently unavailable. Please try again later.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:4302 char:9
+ Get-PSGalleryApiAvailability -Repository $Name
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Get-PSGalleryApiAvailability], InvalidOperationException
+ FullyQualifiedErrorId : PowerShellGalleryUnavailable,Get-PSGalleryApiAvailability
PS C:\WINDOWS\system32> Find-Module -Name PSReadLine -Repository PSGallery |Get-Member
Get-PSGalleryApiAvailability : PowerShell Gallery is currently unavailable. Please try again later.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1342 char:9
+ Get-PSGalleryApiAvailability -Repository $Repository
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Get-PSGalleryApiAvailability], InvalidOperationException
+ FullyQualifiedErrorId : PowerShellGalleryUnavailable,Get-PSGalleryApiAvailability
Get-PSGalleryApiAvailability : PowerShell Gallery is currently unavailable. Please try again later.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:4475 char:9
+ Get-PSGalleryApiAvailability -Repository $Name
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Get-PSGalleryApiAvailability], InvalidOperationException
+ FullyQualifiedErrorId : PowerShellGalleryUnavailable,Get-PSGalleryApiAvailability
Get-Member : You must specify an object for the Get-Member cmdlet.
At line:1 char:53
+ Find-Module -Name PSReadLine -Repository PSGallery |Get-Member
+ ~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Get-Member], InvalidOperationException
+ FullyQualifiedErrorId : NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand
Still down for me ( east coast NA)
To add: After getting home from work I tried running it on my home computer, and it succeeds. I remoted back into work and it still fails both from my work and from an EC2 with no outgoing firewall rules. As mentioned above I ran ipconfig /flushdns
, however I only know enough about DNS to know it's layered and incomprehensible. Maybe some kind of propagation issue, although I can access the site in a browser...?
What is the relationship between www.powershellgallery.com and the endpoint to the gallery api? Is the api just a different port on that hostname?
@GunArm
For the packages there is probably multiple regional CDNs which why it may work from some places and not others as DNS propogates and caches timeout
Checking back in-- anyone still experiencing issues downloading from the site?
@SydneyhSmith Resolved for me. Thanks!
Still reporting unavailable for me
Edit: Interestingly, I opened a second powershell window and it works in the new window, but still not in the old one. I don't really understand that, but obviously that's on my end so seems resolved.
Running into this now. Common workarounds haven't resolved it. Just me? EDIT: I did get around this, minutes after posting. The blog post below got me 99% of the way there, but there's another trick: you might have to close PowerShell and open a fresh one in between steps, and you might have to set Tls12 each time.
Our Azure DevOps pipelines are failing while installing modules from POSH gallery. This all started this morning 04/05/22.
Here is the error from pipeline task:
System.Management.Automation.RuntimeException: PowerShell Gallery is currently unavailable. Please try again later.
TLS1.2 is already configured in the task:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Ssl3, [Net.SecurityProtocolType]::Tls, [Net.SecurityProtocolType]::Tls12
This is the command which fails:
Install-Module -Name cNtfsAccessControl -RequiredVersion $requiredVersion -Repository 'PSGallery'
Is it just us?