This is running through GitHub actions though, I enabled LOG_LEVEL debug in my workflow:
==> Building image
DEBUG --> POST https://api.fly.io/graphql
DEBUG {
"query": "mutation($input: EnsureMachineRemoteBuilderInput!) { ensureMachineRemoteBuilder(input: $input) { machine { id state ips { nodes { family kind ip } } }, app { name organization { id slug } } } }",
"variables": {
"input": {
"appName": "XXX",
"organizationId": null
}
}
}
DEBUG {}
DEBUG <-- 504 https://api.fly.io/graphql (1m0.04s)
DEBUG <html><body><h1>504 Gateway Time-out</h1>
WARN Failed to start remote builder heartbeat: server returned a non-200 status code: 504
The server didn't respond in time.
</body></html>
DEBUG --> POST https://api.fly.io/graphql
DEBUG {
"query": "\nmutation ResolverCreateBuild ($input: CreateBuildInput!) {\n\tcreateBuild(input: $input) {\n\t\tid\n\t\tstatus\n\t}\n}\n",
"variables": {
"input": {
"appName": "XXX",
"builderType": "remote",
"clientMutationId": "",
"imageOpts": {
"buildArgs": {
"PHP_VERSION": "8.2"
},
"buildPacks": null,
"builder": "",
"builtIn": "",
"builtInSettings": null,
"dockerfilePath": "/home/runner/work/XXX/XXX/.fly/apps/XXX/Dockerfile",
"extraBuildArgs": null,
"imageLabel": "",
"imageRef": "",
"noCache": false,
"publish": true,
"tag": "registry.fly.io/XXX:deployment-01H5WQQQQDZYFJQRWSG0Y6BSGV",
"target": ""
},
"machineId": "",
"strategiesAvailable": [
"Buildpacks",
"Dockerfile",
"Builtin"
]
}
},
"operationName": "ResolverCreateBuild"
}
DEBUG {0xc00015ac60}
DEBUG <-- 200 https://api.fly.io/graphql (78.52ms)
DEBUG {
"data": {
"createBuild": {
"id": "2737349",
"status": "started"
}
}
}
DEBUG --> POST https://api.fly.io/graphql
DEBUG {
"query": "mutation($input: EnsureMachineRemoteBuilderInput!) { ensureMachineRemoteBuilder(input: $input) { machine { id state ips { nodes { family kind ip } } }, app { name organization { id slug } } } }",
DEBUG Trying 'Buildpacks' strategy
DEBUG no buildpack builder configured, skipping
DEBUG result image:<nil> error:<nil>
DEBUG Trying 'Dockerfile' strategy
"variables": {
"input": {
"appName": "XXX",
"organizationId": null
}
}
}
DEBUG {}
DEBUG <-- 504 https://api.fly.io/graphql (1m0.04s)
DEBUG result image:<nil> error:error connecting to docker: server returned a non-200 status code: 504
DEBUG <html><body><h1>504 Gateway Time-out</h1>
The server didn't respond in time.
</body></html>
DEBUG --> POST https://api.fly.io/graphql
DEBUG {
"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": "XXX",
"buildId": "2737349",
"builderMeta": {
"builderType": "",
"buildkitEnabled": false,
"dockerVersion": "",
"platform": "",
"remoteAppName": "",
"remoteMachineId": ""
},
"clientMutationId": "",
"finalImage": {
"id": "",
"sizeBytes": 0,
"tag": ""
},
"logs": "error connecting to docker: server returned a non-200 status code: 504",
"machineId": "",
"status": "failed",
"strategiesAttempted": [
{
"error": "",
"note": "no buildpack builder configured, skipping",
"result": "failed",
"strategy": "Buildpacks"
},
{
"error": "error connecting to docker: server returned a non-200 status code: 504",
"note": "",
"result": "failed",
"strategy": "Dockerfile"
}
],
"timings": {
"buildAndPushMs": 60043,
"buildMs": 60043,
"builderInitMs": 60043,
"contextBuildMs": -1,
"imageBuildMs": -1,
"pushMs": -1
}
}
},
"operationName": "ResolverFinishBuild"
}
DEBUG {0xc0008d6900}
DEBUG <-- 200 https://api.fly.io/graphql (121.9ms)
DEBUG {
"data": {
"finishBuild": {
"id": "2737349",
"status": "failed",
"wallclockTimeMs": 60169
}
}
}
DEBUG Task manager done
Error: failed to fetch an image or build from source: error connecting to docker: server returned a non-200 status code: 504