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

BuildKit builds not able to see/use cache #670

Closed
beastawakens opened this issue Jul 13, 2023 · 2 comments
Closed

BuildKit builds not able to see/use cache #670

beastawakens opened this issue Jul 13, 2023 · 2 comments
Assignees

Comments

@beastawakens
Copy link
Collaborator

Trying out the dedicated build node on v3.12.3, I see that builds do not use a local cache, and we get this error at the start of the build:

time="2023-07-12T16:37:55Z" level=warning msg="local cache import at /var/lib/buildkit not found due to err: could not read /var/lib/buildkit/index.json: open /var/lib/buildkit/index.json: no such file or directory" spanID=377bca3a664358f9 traceID=14d8f7a50f357d8b1e6d653e0dc4588c

Which suggests that the /var/lib/buildkit path is not being written correctly. This lack of caching negates the main purpose of a dedicated build node. I can see that in https://github.com/convox/convox/blob/allow-different-build-node-amitype/pkg/build/buildkit.go#L214C1-L215 we're trying to use the path but I wonder if that needs to be created in the Dockerfile.buildkit (https://github.com/convox/convox/blob/allow-different-build-node-amitype/Dockerfile.buildkit) or in the buildkit-daemonless.sh (https://github.com/convox/convox/blob/allow-different-build-node-amitype/scripts/buildctl-daemonless.sh)?

@beastawakens
Copy link
Collaborator Author

@nightfury1204 Or maybe a volume needs mounting to persist it between builds? 🤔

@nightfury1204
Copy link
Collaborator

closed by #694

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

2 participants