Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CVanF5 opened this issue Apr 5, 2024 · 5 comments
Open

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

CVanF5 opened this issue Apr 5, 2024 · 5 comments

Comments

@CVanF5
Copy link

CVanF5 commented Apr 5, 2024

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
Copy link

We are seeing the same issue.

@ubmagh
Copy link

ubmagh commented Apr 5, 2024

same here

@ariskk
Copy link

ariskk commented Apr 6, 2024

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
Copy link

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
Copy link

alexanderbazhenoff commented Apr 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants