-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: failed to solve: failed to read dockerfile: failed to mount lhzivmrs3pheot21kx3b24aix: snapshot lhzivmrs3pheot21kx3b24aix does not exist: not found #2288
Comments
Seeing the same/similar error occasionally on Buildkit 0.9.0
|
@sipsma Any ideas? |
@sundong1982 @jamescook can you share any code that reproduces the error? Or at least more details on when it happens? The mount error is coming from here. The Dockerfile error is happening here. I looked into whether the change in |
@sipsma I haven't noticed this particular error in the past week, but we get either buildkit errors like this issue and #2088 or crashes (#2296 and #2303) almost daily. We're building many images in parallel as part of our CI pipeline. The pipeline is building 4 docker images per architecture (amd64 and arm64) via buildctl over two buildkitd workers (1 for each architecture). Problems occur on either architecture. My general observation is that the errors typically happen when there are multiple branches being built at once in the CI pipeline. I'm not sure what code I can/should share - can you clarify what you're looking for? Thanks for reaching out. |
Just here to say that I'm seeing a very similar issue. We are also building amd64, arm64 and windows images concurrently, and get the following issues: on Docker 20.x.x (doesn't seem to be an issue on Docker 19.x.x)
If you want to attempt to replicate, grab a copy of https://github.com/googleforgames/agones and go to the Happy to share more info if useful. |
Sharing my solution if someone experiences the same error. I noticed that my buildkit image was a bit outdated, so I just pulled the latest version ( |
service start:
Jul 30 18:06:13 hbase systemd[1]: Starting buildkitd.service...
Jul 30 18:06:13 hbase buildkitd[11991]: time="2021-07-30T18:06:13+08:00" level=warning msg="using host network as the default"
Jul 30 18:06:13 hbase buildkitd[11991]: time="2021-07-30T18:06:13+08:00" level=info msg="found worker "2shqc0nug0fd56wyrj8ylc9z7", labels=map[foo:bar org.mobyproject.buildkit.worker.containerd.namespace:k8s.io org.mobyproject.bui...
Jul 30 18:06:13 hbase buildkitd[11991]: time="2021-07-30T18:06:13+08:00" level=warning msg="platform linux/arm64 cannot pass the validation, kernel support for miscellaneous binary may have not enabled."
Jul 30 18:06:13 hbase buildkitd[11991]: time="2021-07-30T18:06:13+08:00" level=info msg="found 1 workers, default="2shqc0nug0fd56wyrj8ylc9z7""
Jul 30 18:06:13 hbase buildkitd[11991]: time="2021-07-30T18:06:13+08:00" level=warning msg="currently, only the default worker can be used."
Jul 30 18:06:13 hbase buildkitd[11991]: time="2021-07-30T18:06:13+08:00" level=info msg="running server on /run/buildkit/buildkitd.sock"
Jul 30 18:06:13 hbase systemd[1]: Started buildkitd.service.
Hint: Some lines were ellipsized, use -l to show in full.
buildctl build
--frontend=dockerfile.v0
--local context=.
--local dockerfile=.
--output type=image,name=docker.io/username/image:tag
[+] Building 0.0s (1/2)
ERROR [internal] load build definition from Dockerfile 0.0s
[internal] load build definition from Dockerfile:
error: failed to solve: failed to read dockerfile: failed to mount lhzivmrs3pheot21kx3b24aix: snapshot lhzivmrs3pheot21kx3b24aix does not exist: not found
use systemd
ExecStart=/usr/local/bin/buildkitd --oci-worker=false --containerd-worker=true
The text was updated successfully, but these errors were encountered: