-
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
Failed to export cache - invalid incomplete links #1509
Comments
Can you make a runnable reproducer for this issue please. The error message indicates that the cache chain is corrupt/invalid when moving (linking) from one key to the next. |
Hi @tonistiigi and thanks for your reactivity on this case.
Yes sure, I'll try to do it if my additional tests do no lead to something interesting (see my additional explanation below). I finally isolate the problem, it comes from one When I have this
When I change the copy by adding a
With or without
Do you have any additional clue about this problem or do you still need a reproducible runner to to debug the issue in much more details (i'm worried it would be tedious to do because our Multi-stage build is fat and depends on private AWS ECR repositories 😕) ? Thanks |
I doubt this is related to |
Hi @tonistiigi, thanks for your response. For those who have the same problem here is a small reproducible sample : https://github.com/bgaillard/moby-1509 Simply clone the repo and run
As you can see in the sample I have several Do you see the error in this file ? Is the behavior normal / expected ? If yes perhaps it would be good to have a much more clear error than |
I encountered this with a
As this is rebuilding a cache image, using the previous image as the cache, the
Is the same as
Which is technically true, in terms of caching - both operations end up with the exact same files, even though they're different operations. The cache exports fine if there are changes to package.json, but I would've hoped this sort of thing would be possible even with no changes. As a workaround, I changed the The working version of the
This is build with
The cache is synced to/from S3 before and after the build, so it's using the cache as normal. (I've shortened all the repo names here, but the syntax matches exactly what didn't work, and what the workaround is) |
The fix is working great, BTW. Just got around to testing this. 👏 |
Hi, I opened this case following discussions in aws/containers-roadmap#505 (comment)
I'm currently trying to build a Multi-stage Dockerfile with 9 stages using the following command (secret information have been replaced with
XXXXXXX
)This command seems to build our Docker image correctly. Also when the
--import-cache
and--export-cache
options are not used the command correctly pushes the image on our Amazon ECR Docker repository.But, when the
--import-cache
and--export-cache
options are used I encounter the following error.I initially though the error was due to the export cache type
registry
but I also tried it with the typeinline
and encounter the same error.My version of Docker in use is the following (insecure registry IPs have been hidden with
X.X.X.X
).I searched the internet to find other users having the same problem but found absolutely nothing. The only reference to
invalid incomplete links
I found is in source code here incache/remotecache/v1/utils.go#L151
.I'm not used to develop in Go and do not understand what the error I encounter means.
What are those "links" ? Why are they "incomplete" / "invalid" ? How can I identify what's the source of the error enabling debugging somewhere ?
The text was updated successfully, but these errors were encountered: