-
Notifications
You must be signed in to change notification settings - Fork 505
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
Facing build issue with failed to prepare sha error #2883
Comments
Can we get some help here, facing similar issue on my project |
Facing the same issue on my project as well. This is happening repeatedly and very often. Would be great to have this resolved |
I did a quick search in the buildkit, docker, and containerd codebase, and can't find a direct reference to anything creating a However, I did find a reference to creating a func NewAtomicFileWriter(filename string, perm os.FileMode) (io.WriteCloser, error) {
f, err := os.CreateTemp(filepath.Dir(filename), ".tmp-"+filepath.Base(filename))
if err != nil {
return nil, err
} But it's not directly clear if the error originates from buildkit (or docker) code, or if it's an error produced by the code running inside the container (in this case The example provided unfortunately looks to depend on a custom base image (
|
Hi, |
I'm currently experiencing the same on one of our docker hosts. ARG REGISTRY=our-registry.com
FROM ${REGISTRY}/base-image:tag
COPY dependencies.txt /opt/app/etc/dependencies.txt
ADD build/results/ /opt/app/
RUN yum makecache && \
yum makecache && yum install -y $(cat /opt/app/etc/dependencies.txt) && \
yum clean all && rm -rf /var/yum/cache
... And the build currently fails on step 3/4 (ADD)
Stracing the Docker daemon shows that the file is tried to be opened, but obviously the directory does not exist, as the
Also I could not find any reference to a directory creation for
So it seems like it has something to do with the cache. |
Contributing guidelines
I've found a bug and checked that ...
Description
ERROR: failed to solve: failed to prepare sha256:6ef31b9aac55f699e551706c154f1b66955d5e4379da9e6ffc45d5163cde3777 as xyx2mcarp3p5pksqoa7y6rv90: open /var/lib/docker/overlay2/2a1d88ce0a17b395ae852bb3c22bc4821b23f90f01c2caacc0503cc783a73fc9/.tmp-committed4135229564: no such file or directory
getting this error repeatedly on trying to build an alpine image on ubuntu based jenkins server
Expected behaviour
builds without any errors
Actual behaviour
throwing above mentioned error
Buildx version
github.com/docker/buildx v0.19.3 48d6a39
Docker info
Builders list
Configuration
Build logs
Additional info
No response
The text was updated successfully, but these errors were encountered: