Getting an error with fly deploy
happening on both local and github actions:
WARN Failed to start remote builder heartbeat: server returned a non-200 status code: 500
Error: failed to fetch an image or build from source: error connecting to docker: server returned a non-200 status code: 500
I tried fly apps destroy
the fly-builder, same result.
This is the debug log where errors occurred
==> Building image
DEBUG trying remote docker daemon
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": "xxxxxxx",
"organizationId": null
}
}
}
DEBUG {}
DEBUG <-- 500 https://api.fly.io/graphql (4.62s)
DEBUG {
"errors": [
{
"message": "You hit a Fly API error with request ID: 01HCJDCDG18P9T4WRG0RRH0SQ0-sea",
"extensions": {
"code": "SERVER_ERROR",
"fly_request_id": "01HCJDCDG18P9T4WRG0RRH0SQ0-sea"
}
}
],
"data": {}
}
WARN Failed to start remote builder heartbeat: server returned a non-200 status code: 500
DEBUG <-- 500 https://api.fly.io/graphql (2.57s)
DEBUG {
"errors": [
{
"message": "You hit a Fly API error with request ID: 01HCJDCJ59Z85QYVNNBAB308BP-sea",
"extensions": {
"code": "SERVER_ERROR",
"fly_request_id": "01HCJDCJ59Z85QYVNNBAB308BP-sea"
}
}
],
"data": {}
}
DEBUG result image:<nil> error:error connecting to docker: server returned a non-200 status code: 500
DEBUG {
"query": "\n# @genqlient\nmutation ResolverFinishBuild ($input: FinishBuildInput!) {\n\tfinishBuild(input: $input) {\n\t\tid\n\t\tstatus\n\t\twallclockTimeMs\n\t}\n}\n",
"variables": {
"input": {
"appName": "xxxxxxxxxx",
"buildId": "3849606",
"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: 500",
"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: 500",
"note": "",
"result": "failed",
"strategy": "Dockerfile"
}
],
"timings": {
"buildAndPushMs": 2577,
"buildMs": 2577,
"builderInitMs": 2577,
"contextBuildMs": -1,
"imageBuildMs": -1,
"pushMs": -1
}
}
},
"operationName": "ResolverFinishBuild"
}