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

GHA failed to solve: maximum timeout reached #2492

Closed
lucacome opened this issue Nov 29, 2021 · 6 comments
Closed

GHA failed to solve: maximum timeout reached #2492

lucacome opened this issue Nov 29, 2021 · 6 comments

Comments

@lucacome
Copy link

I've seen this error a few times lately:

#19 exporting cache
#19 preparing build cache for export done
#19 ERROR: maximum timeout reached
------
 > exporting cache:
------
error: failed to solve: maximum timeout reached
Error: buildx failed with: error: failed to solve: maximum timeout reached

Would it make sense to not have the build fail if the cache can't be exported?

@ghostwriter
Copy link

If I'm not mistaken, I believe GitHub Action Cache is returning Error 429 when importing/exporting cache, which causes Buildkit to Exponentially backoff and the build process to timeout.

@lucacome
Copy link
Author

I'd like to bump this issue as it seems like the number of timeout issues has increased.

Almost same output as before:

#20 preparing build cache for export 307.8s done
#20 ERROR: maximum timeout reached
------
 > exporting to GitHub cache:
------
ERROR: failed to solve: maximum timeout reached
Error: buildx failed with: ERROR: failed to solve: maximum timeout reached

I don't know if it's a coincidence, but it seems to happen more if multiple PRs run the workflow at the same time.

@mnapoli
Copy link

mnapoli commented Jan 17, 2023

I am experiencing this problem randomly as well.

@lucacome
Copy link
Author

I'd really like to at least have the option to make it fail "silently". A lot of my builds are failing because of this and I'd prefer to lose the cache and finish the pipeline rather than failing and having to restart the entire build process.

@dotansimha
Copy link

dotansimha commented Oct 23, 2023

Seems like this has become relevant again. Today most of the attempts to push a Docker image failed with maximum timeout reached.

Update (Nov 26): Still having the same issues. We are building ~10 images and it seems like it timeouts ~20% of the times.

@danielsantiago
Copy link

In May the ignore-error=true option was added to ignore errors when remote cache-exports fail. #3430

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