ansible / galaxy

Legacy Galaxy still available as read-only on https://old-galaxy.ansible.com - looking for the new galaxy -> https://github.com/ansible/galaxy_ng
Apache License 2.0
855 stars 329 forks source link

https://galaxy.ansible.com/api has been flaky most of the day #3345

Open CVanF5 opened 7 months ago

CVanF5 commented 7 months ago

Seems like the API has been up and down all day today, and I don't appear to be alone

Some requests fail

$ curl -i https://galaxy.ansible.com/api/
HTTP/2 504 
date: Fri, 05 Apr 2024 20:30:46 GMT
content-type: text/plain; charset=UTF-8
content-length: 15
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=gfU2M3S1rrGhQyfty3pc6fzPgGNUmIOe3b19mTxGDDDl6cJKqnzXYPmdQgyZIhykXYZfp9oX6PO1JoJkUN3no0rUtGa%2FArZmNUHuoNp1U8rxr7aKKOfmpFMjzXHGJbgQk2CFVQ%3D%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
x-frame-options: SAMEORIGIN
referrer-policy: same-origin
cache-control: private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
expires: Thu, 01 Jan 1970 00:00:01 GMT
server: cloudflare
cf-ray: 86fc4ad0195642fd-EWR

Other requests succeed:

$ curl -i https://galaxy.ansible.com/api/
HTTP/2 200 
date: Fri, 05 Apr 2024 20:23:38 GMT
content-type: application/json
content-length: 300
vary: Accept, Accept-Language, Cookie
allow: GET, HEAD, OPTIONS
correlation-id: 326f577ed9cf4bef94d2eb5812e0ae38
access-control-expose-headers: Correlation-ID
content-language: en-us
x-frame-options: DENY
x-content-type-options: nosniff
referrer-policy: same-origin
cross-origin-opener-policy: same-origin
set-cookie: 5ceea3ad3c3a60af203c126b07e8ab00=230ec704b1fead21a2896ab47985227a; path=/; HttpOnly; Secure; SameSite=None
cache-control: private
cf-cache-status: DYNAMIC
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=XqjsYUpEKxYbp9nSEVkfLGrZDttr7fIeQyFORpTbACMLkmJOyYce9Oj%2BXvfop2agyTb8MhiYyg5T%2BlnaC2bDp%2BsSNyLHUrwryrE%2B7iO3sn9%2BxEHVcbky7PCs%2BCwTPTvSsSgKFg%3D%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 86fc41cf98ca6fd7-IAD
liquidspikes commented 7 months ago

We are seeing the same issue.

ubmagh commented 7 months ago

same here

ariskk commented 7 months ago

Getting a lot of this while running ansible-galaxy install -r ansible/galaxy-requirements.yml

Starting galaxy collection install process
Process install dependency map
ERROR! Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': The read operation timed out

It works ~25% of the time since yesterday morning.

MichaelTurekCGI commented 7 months ago

Increasing the timeout seems to be a sufficient workaround when running ansible-galaxy install:

ansible-galaxy install -r ansible/galaxy-requirements.yml --timeout 300
alexanderbazhenoff commented 7 months ago

I have the same issues all the day from time to time with ansible-core 2.16.5 (also tries 2.15.10). It's absolute random on failing during ansible-galaxy install -r requierments.yml or using molecule 24.2.0 on dependencies stage. Also tried this recomendation. Glad that I found this issue when I'm went to write a new one :)

ansible-galaxy install -r ansible/galaxy-requirements.yml --timeout 300

Looks likt it's also possible via environment variable ANSIBLE_GALAXY_SERVER_TIMEOUT and molecule.yml file:

dependency:
  name: galaxy
  env:
    ANSIBLE_GALAXY_SERVER_TIMEOUT: 300