Galaxy API returning HTTP Error 500: Internal Server Error when fetching collection artifacts

Hello,

The Ansible Galaxy API endpoint is currently returning 500 Internal Server Errors when attempting to download collection tarballs. This is breaking our automated installer pipelines.

Here is the exact stdout trace showing successful dependency resolution but an immediate failure during the artifact download phase:

Downloading https://ansible.com
[ERROR]: Failed to download collection tar from ‘default’: HTTP Error 500: Internal Server Error

The issue occurs consistently across multiple collections (e.g., awx.awx, amazon.aws) and results in non-zero return codes (rc: 1) during ansible-galaxy collection install commands.

same here…

Hi
This has been escalated inside of Red Hat.

Also seeing this — same symptom but different collections (community.proxmox,
community.general), so it’s not scoped to the ones already mentioned above.

One detail that might help narrow it down: the metadata/index endpoint still
works fine, it’s specifically the artifact download that 500s.

Metadata (200 OK):
curl -s “Collection Version – Django REST framework”

Artifact download (500):
curl -sL -w “%{http_code}\n” “https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/artifacts/community-proxmox-2.1.0.tar.gz”

Still reproducing as of this reply.

same for me, got patching to do lmao

my way to contour this situation was to switch to github method on the requirements.yml

ansible galaxy is avaible again for me. Cheers

Hi
There was a backend AWS IAM issue, which has been resolved.

Related and perhaps useful: "ansible-galaxy collection download" always downloads? - #9 by dnmvisser

What we are doing to improve this:

If ansible-galaxy would support some sort of caching then this would be much less of a problem. I added it as a feature request last year: 'ansible-galaxy collection download' always downloads · Issue #86233 · ansible/ansible · GitHub

I agree, some caching would take a lot of the pain out of these outages. Until then, what helped me was keeping a local copy of the collection tarballs I depend on, so a Galaxy outage does not block a deploy — the collections already downloaded in ~/.ansible/collections stay usable, and for CI I cache them as build artifacts. It is not as clean as a proper cache in ansible-galaxy, but it meant the October outage was a nuisance rather than a blocker for us.

Adding an artifact cache would reduce a single API call per collection if the same artifact version is installed to multiple locations, and for the download subcommand in general. Since almost all API responses are already cached, and install does not download artifacts for requirements that are already satisfied, I don’t think the general use case or galaxy.ansible.com benefits from ansible-galaxy adding a second cache. If you do need to install the same artifact to multiple locations, please leave feedback on the related pull requests, Skip download when collection artifact is already valid by shreyashx16 · Pull Request #86474 · ansible/ansible · GitHub (changing the UX for download to be similar to install), and [DNM] cache collection artifacts downloaded from galaxy servers by s-hertel · Pull Request #87891 · ansible/ansible · GitHub (backward compatible, caches the artifact for install and download).