paketo-buildpacks / jam

Apache License 2.0
12 stars 12 forks source link

Error: No such file or directory for docker >=25.0.0 #335

Closed pacostas closed 8 months ago

pacostas commented 8 months ago

Expected Behavior

jam create-stack should create a build.oci and run.oci output files

Current Behavior

jam create-stack fails with bellow error :

Using jam 2.7.0
Building io.buildpacks.stacks.jammy
  Building on linux/amd64
    Building base images
Error: open /tmp/2573542004/wsnpmg4jaz/blobs/sha256/d101c9453715a978a2a520f553588e77dfb4236762175eba61c5c264a449c75d: no such file or directory
Usage:
  jam create-stack [flags]

Flags:
      --build-output string   path to output the build image OCI archive (required)
      --build-ref string      reference that specifies where to publish the build image (required)
      --config string         path to a stack descriptor file (required)
  -h, --help                  help for create-stack
      --label strings         additional image label to be added to build and run image
      --publish               publish to a registry
      --run-output string     path to output the run image OCI archive (required)
      --run-ref string        reference that specifies where to publish the run image (required)
      --secret strings        secret to be passed to your Dockerfile
      --unbuffered            do not buffer image contents into memory for fast access

failed to execute: open /tmp/2573542004/wsnpmg4jaz/blobs/sha256/d101c9453715a978a2a520f553588e77dfb42367

Possible Solution

Steps to Reproduce

  1. Install Docker version 25 and above
  2. git clone https://github.com/paketo-buildpacks/jammy-base-stack.git
  3. cd jammy-base-stack
  4. ./scripts/create.sh

Motivations

sophiewigmore commented 8 months ago

What version of Docker were you using before 25?

pacostas commented 8 months ago

24.0.9

sophiewigmore commented 8 months ago

Okay, I'll investigate. Have you run into any issues with buildpacks or anything else while using Docker 25? Just asking because I saw https://github.com/moby/moby/issues/47218 also

sophiewigmore commented 8 months ago

I will try to reproduce this myself and get back to you

matthenry87 commented 8 months ago

Also experiencing this with:

jam 2.7.0 Docker version 25.0.3, build 4debf41

This is a huge pain, because it's not simple to downgrade docker.

pacostas commented 8 months ago

Okay, I'll investigate. Have you run into any issues with buildpacks or anything else while using Docker 25? Just asking because I saw moby/moby#47218 also

Yes, another issue i had was with skopeo, this one https://github.com/containers/skopeo/issues/2202

sophiewigmore commented 8 months ago

@matthenry87 @pacostas I merged in some docker library go.mod bumps just now and released https://github.com/paketo-buildpacks/jam/releases/tag/v2.7.1. Can you please try it out with Docker 25 and let me know if the issues are resolved?

matthenry87 commented 8 months ago

Works now, thanks!

pacostas commented 8 months ago

@sophiewigmore yeap, it works! thank you ! :) Feel free to close this issue.