Cannot deploy when using new buildkit feature: `Error: failed to fetch an image or build from source: failed to solve: node:22-slim: failed to resolve source metadata for docker.io/library/node:22-slim`

Validating /tmp/7e127403-1a92-4cc7-8baf-19acdca643a6fly.json
✓ Configuration is valid
WARN EYECREST_PUBLIC_KEY may be a potentially sensitive environment variable. Consider setting it as a secret, and removing it from the [env] section: https://fly.io/docs/apps/secrets/
WARN NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY may be a potentially sensitive environment variable. Consider setting it as a secret, and removing it from the [env] section: https://fly.io/docs/apps/secrets/
==> Building image
Connecting to buildkit daemon at fly-builder-fragrant-sound-9560.flycast:1234...
--> Connected to buildkit daemon at fly-builder-fragrant-sound-9560.flycast:1234
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 349B 0.1s done
#1 WARN: FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" (line 1)
#1 DONE 0.1s
#2 [internal] load metadata for docker.io/library/node:22-slim
#2 ERROR: failed to copy: httpReadSeeker: failed open: content at https://_api.internal:5000/v2/library/node/manifests/sha256:592806c161f33b1c2ab3ca78d9c6a6fa28c4790b1e6ccc518f0573d377a8ee73?ns=docker.io not found: not found
------
 > [internal] load metadata for docker.io/library/node:22-slim:
------
==> Building image
Connecting to buildkit daemon at fly-builder-fragrant-sound-9560.flycast:1234...
--> Connected to buildkit daemon at fly-builder-fragrant-sound-9560.flycast:1234
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 349B 0.1s done
#1 WARN: FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" (line 1)
#1 DONE 0.1s
#2 [internal] load metadata for docker.io/library/node:22-slim
#2 ERROR: failed to copy: httpReadSeeker: failed open: content at https://_api.internal:5000/v2/library/node/manifests/sha256:592806c161f33b1c2ab3ca78d9c6a6fa28c4790b1e6ccc518f0573d377a8ee73?ns=docker.io not found: not found
------
 > [internal] load metadata for docker.io/library/node:22-slim:
------
Error: failed to fetch an image or build from source: failed to solve: node:22-slim: failed to resolve source metadata for docker.io/library/node:22-slim: failed to copy: httpReadSeeker: failed open: content at https://_api.internal:5000/v2/library/node/manifests/sha256:592806c161f33b1c2ab3ca78d9c6a6fa28c4790b1e6ccc518f0573d377a8ee73?ns=docker.io not found: not found

These are the logs. It looks like Buildkit has issues connecting to an internal server

When I omit the buildkit option I now get 429 Too Many Requests - Server message: toomanyrequests: You have reached your unauthenticated pull rate limit. https://www.docker.com/increase-rate-limit

it’s odd that it only shows the first _api.internal ‘not found’ error and not any subsequent error(s), but yes, in both cases the issue is probably the same, Docker Hub rate-limiting pulls on external IP addresses used by some builders: Fly.io Status - Docker rate limit errors when using `fly deploy`

1 Like

Heads up, this is still happening. We’re getting 429s pulling golang:alpine from a stock depot builder, successful with --local-only.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.