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

Catch errors due to connection issues (e.g., pulling image from Az CR) #12

Open
gvegayon opened this issue Jan 22, 2025 · 0 comments
Open
Labels

Comments

@gvegayon
Copy link
Member

CDCgov/pyrenew-hew has experienced the same error twice:

Error: buildx failed with: ERROR: failed to solve: cfaprdbatchcr.azurecr.io/pyrenew-hew:dependencies-latest: failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://cfaprdbatchcr.azurecr.io/oauth2/token?scope=repository%3Apyrenew-hew%3Apull&service=cfaprdbatchcr.azurecr.io: 401 Unauthorized

A similar error has been reported using AzureCR + Kubernetes here, with users indicating it works on the second attempt (same as in pyrenew-hew). Although this seems to be an error with AzureCR, it may be a good feature of the twosteps-container-build action to try to catch this error and do k number of attempts waiting in between (probably an issue with the size of the container?).

attn @damonbayer and @dylanhmorris

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

No branches or pull requests

1 participant