Build failure "context deadline exceeded"

Having some issues deploying.

fly-builder-hidden-grass-4872 is a brand new builder, however, it doesn’t seem to be able to connect to docker.

  1. Is the laptop is trying to connect to docker or if the builder is trying to connect to docker?
  2. If it is the builder trying to connect to docker and failing, it seems that it has started in the FRA region which from checking status.fly.io is overloaded. If that is the issue is there a way to change the builder to be another region? The app itself is set to deploy in SJC.

Normal logs:

==> Verifying app config
--> Verified app config
==> Building image
Remote builder fly-builder-hidden-grass-4872 ready
==> Creating build context
--> Creating build context done
Error failed to fetch an image or build from source: error fetching docker server info: Get "http://[fdaa:0:7bb8:a7b:8a:4b35:8d2d:2]:2375/v1.41/info": context deadline exceeded

Debug logs:

==> Creating build context
--> Creating build context done
DEBUG fetching docker server info
DEBUG result image:<nil> error:error fetching docker server info: Get "http://[fdaa:0:7bb8:a7b:8a:4b35:8d2d:2]:2375/v1.41/info": context deadline exceeded
DEBUG --> POST https://api.fly.io/graphql

{
  "query": "\nmutation ResolverFinishBuild ($input: FinishBuildInput!) {\n\tfinishBuild(input: $input) {\n\t\tid\n\t\tstatus\n\t\twallclockTimeMs\n\t}\n}\n",
  "variables": {
    "input": {
      "appName": "REDACTED",
      "buildId": "582805",
      "builderMeta": {
        "builderType": "",
        "buildkitEnabled": false,
        "dockerVersion": "",
        "platform": "",
        "remoteAppName": "",
        "remoteMachineId": ""
      },
      "clientMutationId": "",
      "finalImage": {
        "id": "",
        "sizeBytes": 0,
        "tag": ""
      },
      "logs": "error fetching docker server info: Get \"http://[fdaa:0:7bb8:a7b:8a:4b35:8d2d:2]:2375/v1.41/info\": context deadline exceeded",
      "machineId": "",
      "status": "failed",
      "strategiesAttempted": [
        {
          "error": "",
          "note": "no buildpack builder configured, skipping",
          "result": "failed",
          "strategy": "Buildpacks"
        },
        {
          "error": "error fetching docker server info: Get \"http://[fdaa:0:7bb8:a7b:8a:4b35:8d2d:2]:2375/v1.41/info\": context deadline exceeded",
          "note": "",
          "result": "failed",
          "strategy": "Dockerfile"
        }
      ],
      "timings": {
        "buildAndPushMs": 11320,
        "buildMs": 10006,
        "builderInitMs": 0,
        "contextBuildMs": 0,
        "imageBuildMs": 10006,
        "pushMs": -1
      }
    }
  },
  "operationName": "ResolverFinishBuild"
}
DEBUG {0xc000bdfb90}
DEBUG <-- 200 https://api.fly.io/graphql (559.64ms)

{
  "data": {
    "finishBuild": {
      "id": "582805",
      "status": "failed",
      "wallclockTimeMs": 11909
    }
  }
}
Error failed to fetch an image or build from source: error fetching docker server info: Get "http://[fdaa:0:7bb8:a7b:8a:4b35:8d2d:2]:2375/v1.41/info": context deadline exceeded


Have you set the `PRIMARY_REGION’ flag in your fly.toml under the region section to the region you wish to deploy in? If so and it’s still yielding the same results, it’s a temporary restriction on the FRA region so it’s likely less time consuming to just wait it out :slight_smile:

1 Like

Yah, I tried again and the builder worked. Will have to keep the primary region idea in mind if it happens again.

1 Like