-
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
COPY rpc error: code = Unknown desc = not found: not found #785
Comments
Hi @tonistiigi - I saw the status/needs-more-info label (fair enough!), but no comment. Is there something in particular I should collect if this happens again? |
I'm seeing this as well. Building on Ubuntu with Docker version 18.09.1, build 4c52b90 and buildkit. # syntax=docker/dockerfile-upstream:experimental
FROM maven:3.5-jdk-8-alpine as build
...
COPY settings.xml /root/settings.xml |
We need some way to reproduce it. Eg. maybe on load if this is flaky. Or if this requires specific state maybe the state directory can be sent. If this proves impossible we could probably prepare a debug build that would gather more information when this happens. |
I suspect the cause might be low disk space. |
This might be related to my issue: #974 |
Definitely not low on space:
|
@tonistiigi What can I do to help provide a repro? My team is blocked on this (we have to use BuildKit, or resort to hacks, to get SSH agent forwarding), and I'm willing to do anything that'll help resolve this. |
I have an explanation of how exactly this bug is tickled: #974 (comment) |
@tonistiigi #1023 sounds very much to me like the something that could have happened in my case. I'm happy to close the issue on that basis, since it was difficult to tickle in the first place. Thanks for looking at this, I'm glad to see plausible resolution :) |
Any workaround for this, apart from upgrading? |
@quazgar |
full diff: moby/buildkit@f704282...ae10b29 fixes: - moby/buildkit#1144 Fix socket handling - fsutil: Handle copying unix sockets in local sources - update github.com/containerd/continuity to 75bee3e2ccb6 - update github.com/tonistiigi/fsutil to 3d2716dd0a4d - moby/buildkit#1150 ssh: Fix file descriptor leak when doing SSH forwarding - fixes moby/buildkit#1146 SSH Forwarding Doesn't Release File Descriptors - moby/buildkit#1156 llbsolver: Fix using multiple remote cache importers - moby/buildkit#1159 http: Handle missing but unambiguous ETags in response - fixes moby/buildkit#905 ADD from url fails with 'invalid not-modified ETag' - fixes moby/buildkit#784 invalid not-modified ETag with local network ADD in docker - moby/buildkit#1166 solver: Fix possible inefficient parallelization in solver - fix cases where some events were dropped resulting inefficient parallelization. - moby/buildkit#1168 vendor: update go-runc to e029b79d - moby/buildkit#1140 contenthash: Fix bug with symlink in source path of a copy operation - fixes moby/buildkit#974 COPY --from fails when source path involves a symlink - fixes moby/buildkit#785 COPY rpc error: code = Unknown desc = not found: not found - fixes moby/buildkit#958 Issue COPY a file to a symlink directory - moby/buildkit#1139 executor: oom_score_adj is no longer set from main process Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
I have a very simple Dockerfile. The
dir/subdir
path contains lots of binaries, about 500MiB over 7,000 files.It fails with the error message:
The failure was repeatable.
I have copied the directory in order to reproduce it from another location, and it does not reproduce there.
Subsequent to doing this, the docker build in the original location now works. I observed it re-upload the build context. So I suspect that something went wrong with the build context cache? It's possible that I interrupted the build context cache upload at some point, so I suspect there could be an issue with the build context cache being uploaded.
Sorry for the nebulous issue without a clear reproducer but I wanted to document that I had hit this issue. Please feel free to close if there are no usable leads here.
I suspect that clearing out the build cache would have helped.
I'm running docker for Mac.
Expand docker version and docker info
The text was updated successfully, but these errors were encountered: