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

Error: checking if cached image exists from a previous build: getting top layer info: layer not known #5615

Open
vrothberg opened this issue Jul 2, 2024 · 5 comments

Comments

@vrothberg
Copy link
Member

I have four parallel build jobs running. Each using the same base image. It pretty much builds down to podman build -t test-$iteration . followed by a podman rmi test-$iteration.

Sporadically, I get the error mentioned in the title. I did not check the code but it seems that buildah should consider an image to not exist when the top-layer has been removed.

Cc: @nalind @mheon

@nburlett
Copy link

I saw this as well, but I was not running parallel builds with the same base image. I was running two separate buildah unshare buildah bud ... commands, but with completely different dockerfiles that share no layers. This was with the podman 5.1.2 image from quay.io with buildah 1.35.1 installed. The job was running in jenkins on k8s and passed on a retry.

Copy link

A friendly reminder that this issue had no activity for 30 days.

@edsantiago
Copy link
Member

oops, I only just noticed this. I'm 99% sure this is the same as #5674. You can work around it by adding --layers=false to all the builds commands.

@nburlett
Copy link

I've since switched to using --layers --cache-from $privaterepo --cache-to $privaterepo and I'm not seeing any failures.

In #5674 the reported issue is from building the same image twice. In my cases I was seeing an error building two unrelated images which I thought had no layers in common. I don't have the logs any more for the old builds so I can't double check.

@rhatdan
Copy link
Member

rhatdan commented Sep 3, 2024

Can we now close this issue?

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

4 participants