400 Bad Request when pushing to Fly.io's registry

2025-03-22 17:38:12.755	
#11 [stage-2 1/1] COPY --from=build /app /app
2025-03-22 17:38:12.755	
#10 ...
2025-03-22 17:38:12.076	
#7 resolve docker.io/oven/bun:1.2.1-slim@sha256:64ced04eeed024c0aedfe26902c5be0e93db58c4f59ec16001658d3ed30b96c7 done
2025-03-22 17:38:12.076	
#7 [base 1/2] FROM docker.io/oven/bun:1.2.1-slim@sha256:64ced04eeed024c0aedfe26902c5be0e93db58c4f59ec16001658d3ed30b96c7
2025-03-22 17:38:12.076	
#6 DONE 0.0s
2025-03-22 17:38:12.076	
#6 [build 4/4] COPY . .
2025-03-22 17:38:12.076	
#5 DONE 0.2s
2025-03-22 17:38:12.076	
#5 transferring context: 4.20kB 0.2s done
2025-03-22 17:38:11.910	
#5 [internal] load build context
2025-03-22 17:38:11.910	
#4 CACHED
2025-03-22 17:38:11.910	
#4 [base 2/2] WORKDIR /app/app_schema
2025-03-22 17:38:11.910	
#3 DONE 0.1s
2025-03-22 17:38:11.702	
#3 transferring context: 2B 0.1s done
2025-03-22 17:38:11.702	
#3 [internal] load .dockerignore
2025-03-22 17:38:11.573	
#2 DONE 0.1s
2025-03-22 17:38:11.573	
#2 [internal] load metadata for docker.io/oven/bun:1.2.1-slim
2025-03-22 17:38:11.572	
#1 DONE 0.2s
2025-03-22 17:38:11.442	
#1 transferring dockerfile: 864B 0.2s done
2025-03-22 17:38:11.442	
#1 [internal] load build definition from Dockerfile
2025-03-22 17:38:11.186	
--> build:  (​)
2025-03-22 17:38:11.186	
==> Building image with Depot
2025-03-22 17:38:10.537	
Waiting for depot builder...
2025-03-22 17:38:10.536	
Error: failed to fetch an image or build from source: error building: failed to solve: failed to push registry.fly.io/app-adbe3cc0-882e-44f0-8588-98e9dd6890a4:deployment-01JPZBF6ZA3GVDGJP99H4DZ2TR: failed commit on ref "manifest-sha256:abb7fe18e56784b50cb33e04d8f0bcb7e297f2d95fd7e87ad8fd59f2e09d46b9": unexpected status from PUT request to https://registry.fly.io/v2/app-adbe3cc0-882e-44f0-8588-98e9dd6890a4/manifests/deployment-01JPZBF6ZA3GVDGJP99H4DZ2TR: 400 Bad Request
2025-03-22 17:38:10.536	
Warning: Metrics token unavailable: context canceled
2025-03-22 17:38:10.385	
WARN failed to finish build in graphql: input:3: finishBuild Could not find SourceBuild
2025-03-22 17:38:10.313	
==> Building image
2025-03-22 17:38:10.156	
WARN failed to finish build in graphql: input:3: finishBuild Could not find SourceBuild
2025-03-22 17:38:10.152	
------
2025-03-22 17:38:10.152	
> exporting to image:
2025-03-22 17:38:10.152	
------
2025-03-22 17:38:10.152	
#7 [base 1/2] FROM docker.io/oven/bun:1.2.1-slim@sha256:64ced04eeed024c0aedfe26902c5be0e93db58c4f59ec16001658d3ed30b96c7
2025-03-22 17:38:10.151	
#13 ERROR: failed to push registry.fly.io/app-adbe3cc0-882e-44f0-8588-98e9dd6890a4:deployment-01JPZBF6ZA3GVDGJP99H4DZ2TR: failed commit on ref "manifest-sha256:abb7fe18e56784b50cb33e04d8f0bcb7e297f2d95fd7e87ad8fd59f2e09d46b9": unexpected status from PUT request to https://registry.fly.io/v2/app-adbe3cc0-882e-44f0-8588-98e9dd6890a4/manifests/deployment-01JPZBF6ZA3GVDGJP99H4DZ2TR: 400 Bad Request
2025-03-22 17:38:10.140	
#13 pushing manifest for registry.fly.io/app-adbe3cc0-882e-44f0-8588-98e9dd6890a4:deployment-01JPZBF6ZA3GVDGJP99H4DZ2TR@sha256:abb7fe18e56784b50cb33e04d8f0bcb7e297f2d95fd7e87ad8fd59f2e09d46b9 1.3s done
2025-03-22 17:38:09.878	
------
2025-03-22 17:38:09.878	
> exporting to image:
2025-03-22 17:38:09.878	
------
2025-03-22 17:38:09.878	
#12 [base 1/2] FROM docker.io/oven/bun:1.2.1-slim@sha256:64ced04eeed024c0aedfe26902c5be0e93db58c4f59ec16001658d3ed30b96c7
2025-03-22 17:38:09.878	
#14 ERROR: failed to push registry.fly.io/app-adbe3cc0-882e-44f0-8588-98e9dd6890a4:deployment-01JPZBF2Z1MG94FNTGQ4DQAZEJ: failed commit on ref "manifest-sha256:abb7fe18e56784b50cb33e04d8f0bcb7e297f2d95fd7e87ad8fd59f2e09d46b9": unexpected status from PUT request to https://registry.fly.io/v2/app-adbe3cc0-882e-44f0-8588-98e9dd6890a4/manifests/deployment-01JPZBF2Z1MG94FNTGQ4DQAZEJ: 400 Bad Request

I am getting an error when pushing to Fly.io’s registry.

  • App ID is app-adbe3cc0-882e-44f0-8588-98e9dd6890a4
  • No machines yet

Eventually this goes away but it looks like it takes a lot of attempts before a push can go through right now.