PowerShell / PowerShellGallery

228 stars 65 forks source link

PowerShell Gallery is currently unavailable - AGAIN #223

Closed sameer-kumar closed 2 years ago

sameer-kumar commented 2 years ago

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?

SydneyhSmith commented 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?

sameer-kumar commented 2 years ago

Its disappeared now. Nothing changed in our pipelines. I don't know what was the issue.

sameer-kumar commented 2 years ago

Its happening again. Last error noted on 04/14/22. Following failed attempts:

  1. 6:15 pm
  2. 6:30 pm
  3. 7:25 pm All times are in eastern time zone.
SydneyhSmith commented 2 years ago

Thanks for the info, wanted to update you that this is not showing in our monitoring so we are investigating what could be happening

jbolduan commented 2 years ago

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.

SydneyhSmith commented 2 years ago

Thanks, we are investigating the issue and working to get the gallery up as quickly as possible...will try to post updates as available

SydneyhSmith commented 2 years ago

This is now resolved, please let us know if you are still experiencing any issues

angel-cdo commented 2 years ago

Still experiencing the issue (from several locations) image

GunArm commented 2 years ago

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.

alerickson commented 2 years ago

@GunArm @Angel-CDO if you use the browser are you able to go to www.powershellgallery.com?

GunArm commented 2 years ago

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
mzarglis commented 2 years ago

Still down for me ( east coast NA)

GunArm commented 2 years ago

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

GunArm commented 2 years ago

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?

mzarglis commented 2 years ago

@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

SydneyhSmith commented 2 years ago

Checking back in-- anyone still experiencing issues downloading from the site?

mzarglis commented 2 years ago

@SydneyhSmith Resolved for me. Thanks!

GunArm commented 2 years ago

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.

RZABob commented 1 year ago

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.

https://dev.to/darksmile92/powershell-disabled-support-for-tls-1-0-for-the-gallery-update-module-and-install-module-broken-1oii