docs icon indicating copy to clipboard operation
docs copied to clipboard

Errors when executing the builder creation as described on `create-a-builder`

Open andrashatvani opened this issue 1 year ago • 1 comments

On Page: Create a builder

~/IdeaProjects/buildpack-samples on  main! ⌚ 16:12:08
$
pack builder create my-builder:jammy --config ./builder.toml
jammy: Pulling from cnbs/sample-base-run
Digest: sha256:360b4f1a793fbf2ab750e572a68b43a31fe3d01188745b1eef965c9a2a3742e3
Status: Image is up to date for cnbs/sample-base-run:jammy
jammy: Pulling from cnbs/sample-base-build
Digest: sha256:7d2744146e58be6788330243f1ce6ac65579605d87a5facbf1b1b42ee76055c8
Status: Image is up to date for cnbs/sample-base-build:jammy
ERROR: failed to add buildpacks to builder: downloading buildpack: extracting from registry samples/buildpacks/hello-processes: fetching image: image samples/buildpacks/hello-processes does not exist on the daemon: not found

And then, when I comment out hello-processes in both, the buildpacks and the orders, then I get the following error:

~/IdeaProjects/buildpack-samples on  main! ⌚ 16:13:13
$
pack builder create my-builder:jammy --config ./builder.toml
jammy: Pulling from cnbs/sample-base-run
Digest: sha256:360b4f1a793fbf2ab750e572a68b43a31fe3d01188745b1eef965c9a2a3742e3
Status: Image is up to date for cnbs/sample-base-run:jammy
jammy: Pulling from cnbs/sample-base-build
Digest: sha256:7d2744146e58be6788330243f1ce6ac65579605d87a5facbf1b1b42ee76055c8
Status: Image is up to date for cnbs/sample-base-build:jammy
hello-universe: Pulling from cnbs/sample-package
3b6556a21018: Download complete
16d07a055e86: Download complete
40ea37e36512: Download complete
Digest: sha256:ec152cd96246afa1376366e3224076cb47c82709d8a7b272ef1b7d7e3d81b1ae
Status: Downloaded newer image for cnbs/sample-package:hello-universe
ERROR: creating samples/[email protected] tar file at path /Volumes/ramdisk/X/create-builder-scratch1286101751/buildpack-0: archive/tar: invalid tar header
creating samples/[email protected] tar file at path /Volumes/ramdisk/X/create-builder-scratch1286101751/buildpack-1: archive/tar: invalid tar header
creating samples/[email protected] tar file at path /Volumes/ramdisk/X/create-builder-scratch1286101751/buildpack-2: archive/tar: invalid tar header

I'm on macOS 14.2.1.

andrashatvani avatar Jan 12 '24 15:01 andrashatvani

Do you find the same issue when running the build on Linux?

AidanDelaney avatar Jan 16 '24 06:01 AidanDelaney