Skip to content

Increasing failure rate when downloading packages - 504 (Gateway Time-out) #318

Open

Description

@ssmith80

Prerequisites

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

Steps to reproduce

Our Azure DevOps release pipeline installs the Az modules, and we have noticed a considerable increase in the frequency of 504 Gateway Time-out errors in the past few days. It has failed repeatedly in the last hour.

Expected behavior

We can pull the Az modules package in a timely manner.

Actual behavior

The process fails, with the following output:
‌Install-PSResource : ‌Response status code does not indicate success: 504 (Gateway Time-out).

Error details

‌Install-PSResource : ‌Response status code does not indicate success: 504 (Gateway Time-out). Request sent: https:www.powershellgallery.comapiv2FindPackagesById()?$filter=NormalizedVersion+ge+%274.0.1%27+and+Id+eq+%27Az.Accounts%27&$inlinecount=allpages&$skip=0&$orderby=NormalizedVersion+desc&id=%27Az.Accounts%27‌

Environment data

Azure DevOps

Version

?? Azure DevOps

Visuals

No response

Activity

  1. ssmith80 commented on Jun 19, 2025

    @ssmith80
    Author

    We are still experiencing this with high frequency...

    Image

  2. alerickson commented on Jun 19, 2025

    @alerickson
    Member

    Hi, the request from the error looks it's formatted strangely. Is this error consistent or intermittent?
    Can you share the output of:
    Get-PSResourceRepository -Name PSGallery

  3. boblodgett commented on Jun 20, 2025

    @boblodgett

    We are seeing slowness and timeouts as well. Seems something may have started around the 17th. Requests are not taking 900k MS before they timeout this is just our general AWS monitor for all our packages in PSG.

    Image
  4. alerickson commented on Jun 20, 2025

    @alerickson
    Member

    Hi Bo Blodgett (@boblodgett) we've had a few reports of this now. We're seeing failures and high amounts of specific exceptions but are still investigating the underlying issues. Our CPU is a bit high, so we've scaled up the instances we're using. Please report back here if the issue persists or resolves. We'll be monitoring our logs to see if these exceptions continue but it's helpful to have more reports with timestamps from users as well.

  5. boblodgett commented on Jun 23, 2025

    @boblodgett

    The duration has been normal since around 1PM on 6/20 PT.

    Image
  6. ssmith80 commented on Jun 24, 2025

    @ssmith80
    Author

    We had a much better day yesterday with no more 504s so this seems to have resolved the issue, thanks. I will report back should it start occurring again.

  7. pbo-top commented on Jun 26, 2025

    @pbo-top

    We had several pipelines failing this morning (7-8am CET) when they tried to install modules, and the PowerShell Gallery website was really slow and gave 504 in the browser randomly. Now, 9am it seems more responsive again. So still problems with stability.

  8. ssmith80 commented on Jul 22, 2025

    @ssmith80
    Author

    This is happening again this morning, and preventing us from deploying to production. Our release pipelines have been trying to pull from PSGallery for over an hour, some of which are timing out with 504s. I am concerned that this seems to happen too frequently for my liking - it is such a crucial step to our deployment. Please advise on a) fixing it short term and b) what are the longer term plans to stop this reoccuring?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions