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

persistent failure if initial manifest fetch fails #351

Open
bcressey opened this issue Aug 22, 2024 · 0 comments
Open

persistent failure if initial manifest fetch fails #351

bcressey opened this issue Aug 22, 2024 · 0 comments

Comments

@bcressey
Copy link
Contributor

On a new build host, I ran twoliter fetch without first configuring Docker to use the containerd snapshotter, or installing crane.

This failed, and the following directory was created under build:

build/external-kits/cache/sha256-b075d3764a0efc5f17bc4b27b040efa438310db30e9145588c32393ceeead9fa

Even after installing crane, I continued to see this error:

$ make
Found Twoliter v0.4.4 installed.
Skipping installation.
[2024-08-22T17:01:54Z TRACE twoliter::project] Looking for Twoliter.toml in '.'
[2024-08-22T17:01:54Z TRACE twoliter::project] This project does not have a Release.toml file (this is not a problem)
[2024-08-22T17:01:54Z DEBUG twoliter::project] Project file loaded from '/home/ec2-user/bottlerocket-playground/Twoliter.toml'
Error: Unable to read from '/home/ec2-user/bottlerocket-playground/build/external-kits/cache/sha256-b075d3764a0efc5f17bc4b27b040efa438310db30e9145588c32393ceeead9fa/index.json'

Caused by:
    No such file or directory (os error 2)
make: *** [Makefile:28: fetch] Error 1

If the directory exists, Twoliter assumes that index.json will be present, but it might not be. I'd expect it to recover from this error gracefully.

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

1 participant