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

corrupted layer cache? #4095

Open
nrdxp opened this issue May 7, 2024 · 0 comments
Open

corrupted layer cache? #4095

nrdxp opened this issue May 7, 2024 · 0 comments
Labels
type:bug Something isn't working

Comments

@nrdxp
Copy link

nrdxp commented May 7, 2024

What went wrong?

I've seen this issue randomly a few times now, on multiple machines both locally and in CI

Error: async force execution for +vendor: unlazy force execution: failed to compute cache key: failed to get state for index 0 on <omitted>

I assume that it is referring to a corrupt cache layer or something to that effect. I notice that if I just modify the syntax of the affected layer, since that is enough to change the cache key, that usually gets it unstuck. I've also had success with earthly prune.

What should have happened?

I mean, ideally, layers or whatever is causing corruption here just wouldn't happen. Of course, we live in an imperfect world, but in this case it seems there could be a simple solution. If the layer is truly corrupt and no longer verifiable against the cache key, simply nuke the layer and continue instead of crashing? Maybe I'm misunderstanding the problem but it might work, not sure.

What earthly version?

v0.8.9

Buildkit Logs

No response

Other Helpful Information

As mentioned I've seen this more than once on more than one machine, and for multiple different build steps, so it doesn't seem to be related to any specific logic or syntax, just a general heisenbug it seems (best I can tell).

@nrdxp nrdxp added the type:bug Something isn't working label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant