Hi! Huge fan of fly.io; I’ve migrated my Foundations of Software Engineering class off of Heroku and on to fly and it’s been great minus the occasional fraud alerts (most of my students are far from home and I imagine their billing info looks a bit suspect. ).
One of my student teams is consistently hitting this issue with remote-only deploys via the GitHub action; I can reproduce it using flyctl locally as well.
Doing a fly deploy with my local Docker instead works fine so it seems that maybe this builder is in a weird state? Not sure how to debug. Results follow:
❯ fly deploy --remote-only
==> Verifying app config
--> Verified app config
==> Building image
Remote builder fly-builder-wild-wind-5916 ready
==> Building image with Buildpacks
--> docker host: 20.10.12 linux x86_64
bionic: Pulling from cloudfoundry/cnb
Digest: sha256:bae0a6b7ec5d51867eb49ac598775bb5fa8788bba458d2edfda314611be554a8
Status: Image is up to date for cloudfoundry/cnb:bionic
base-cnb: Pulling from paketobuildpacks/run
Digest: sha256:6c62bcb8377f584b26dab3693e093e049f65ca8af2aeb6365a4ba44bf37da7d4
Status: Image is up to date for paketobuildpacks/run:base-cnb
===> DETECTING
7 of 18 buildpacks participating
paketo-buildpacks/ca-certificates 1.0.1
paketo-buildpacks/bellsoft-liberica 5.2.0
paketo-buildpacks/gradle 3.3.1
paketo-buildpacks/executable-jar 3.1.3
paketo-buildpacks/apache-tomcat 2.4.1
paketo-buildpacks/dist-zip 2.2.2
paketo-buildpacks/spring-boot 3.4.0
===> ANALYZING
Restoring metadata for "paketo-buildpacks/ca-certificates:helper" from app image
Restoring metadata for "paketo-buildpacks/bellsoft-liberica:helper" from app image
Restoring metadata for "paketo-buildpacks/bellsoft-liberica:java-security-properties" from app image
Restoring metadata for "paketo-buildpacks/bellsoft-liberica:jre" from app image
Restoring metadata for "paketo-buildpacks/bellsoft-liberica:jvmkill" from app image
Restoring metadata for "paketo-buildpacks/bellsoft-liberica:jdk" from cache
Restoring metadata for "paketo-buildpacks/gradle:application" from cache
Restoring metadata for "paketo-buildpacks/gradle:cache" from cache
Restoring metadata for "paketo-buildpacks/executable-jar:class-path" from app image
===> RESTORING
Restoring data for "paketo-buildpacks/bellsoft-liberica:jdk" from cache
Restoring data for "paketo-buildpacks/gradle:application" from cache
Restoring data for "paketo-buildpacks/gradle:cache" from cache
ERROR: failed to restore: restoring data: layer with SHA 'sha256:7ea7256a11d95abe7862f3a1db9ec5419187b5a2452065d34dc31dbb5e2f96ec' not found: stat /cache/committed/sha256:7ea7256a11d95abe7862f3a1db9ec5419187b5a2452065d34dc31dbb5e2f96ec.tar: no such file or directory
Error failed to fetch an image or build from source: executing lifecycle: failed with status code: 46