Skip to content

Instantly share code, notes, and snippets.

@khaiql
Created July 20, 2022 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khaiql/20a1ce012ed30e73e91c359701ca730d to your computer and use it in GitHub Desktop.
Save khaiql/20a1ce012ed30e73e91c359701ca730d to your computer and use it in GitHub Desktop.
Debug fly deployment
DEBUG Loaded flyctl config from/Users/sle/.fly/config.yml
DEBUG trying remote docker daemon
DEBUG Trying 'Local Image Reference' strategy
DEBUG local docker daemon not available, skipping
DEBUG result image:<nil> error:<nil>
DEBUG Trying 'Remote Image Reference' strategy
DEBUG --> POST https://api.fly.io/graphql {{"query":"query ($appName: String!, $imageRef: String!) { app(name: $appName) { id image(ref: $imageRef) { id digest ref compressedSize } } }","variables":{"appName":"bookforward-prod-us","imageRef":"registry.fly.io/bookforward-prod-us:master-200720221209"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (390.1ms) {"data":{"app":{"id":"bookforward-prod-us","image":{"id":"img_nk3yvl7knqo4ome7","digest":"sha256:a1d457984b447986eaf96f8a861fa61973e45045e34e426acaf41d47abbc5253","ref":"registry.fly.io/bookforward-prod-us:master-200720221209","compressedSize":417114307}}}}
DEBUG result image:&{ID:img_nk3yvl7knqo4ome7 Tag:registry.fly.io/bookforward-prod-us:master-200720221209 Size:417114307} error:<nil>
DEBUG --> POST https://api.fly.io/graphql {{"query":"mutation($input: DeployImageInput!) { deployImage(input: $input) { release { id version reason description deploymentStrategy user { id email name } evaluationId createdAt } releaseCommand { id command evaluationId } } }","variables":{"input":{"appId":"bookforward-prod-us","image":"registry.fly.io/bookforward-prod-us:master-200720221209","services":null,"definition":{"deploy":{"strategy":"bluegreen"},"env":{"PORT":"8080","SERVER_COMMAND":"foreman start -f Procfile.prod"},"experimental":{"allowed_public_ports":[],"auto_rollback":true},"kill_signal":"SIGINT","kill_timeout":5,"metrics":{"path":"/metrics","port":9394},"processes":[],"services":[{"concurrency":{"hard_limit":25,"soft_limit":20,"type":"connections"},"http_checks":[],"internal_port":8080,"ports":[{"force_https":true,"handlers":["http"],"port":80},{"handlers":["tls","http"],"port":443}],"processes":["app"],"protocol":"tcp","script_checks":[],"tcp_checks":[{"grace_period":"1s","interval":"15s","restart_limit":0,"timeout":"2s"}]}],"statics":[{"guest_path":"/app/public","url_prefix":"/"}]},"strategy":null}}}
}
DEBUG <-- 200 https://api.fly.io/graphql (765.3ms) {"data":{"deployImage":{"release":{"id":"XaYvVXJNNq9YPTD4GLXDJLAJ","version":95,"reason":"","description":"Release","deploymentStrategy":"BLUEGREEN","user":{"id":"VjzD9GaZXea0nCKYY","email":"khai.le@live.com","name":"Scott Le"},"evaluationId":"ea6916c4-aaeb-0dcf-6cc7-eb6941bef7c1","createdAt":"2022-07-20T12:23:18Z"},"releaseCommand":null}}}
DEBUG --> POST https://api.fly.io/graphql {{"query":"query ($appName: String!, $deploymentId: ID!, $evaluationId: String!) { app(name: $appName) { deploymentStatus(id: $deploymentId, evaluationId: $evaluationId) { id inProgress status successful description version desiredCount placedCount healthyCount unhealthyCount allocations { id idShort status region desiredStatus version healthy failed canary restarts checks { status serviceName } } } } }","variables":{"appName":"bookforward-prod-us","deploymentId":"","evaluationId":"ea6916c4-aaeb-0dcf-6cc7-eb6941bef7c1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (355.87ms) {"data":{"app":{"deploymentStatus":null}}}
DEBUG --> POST https://api.fly.io/graphql {{"query":"query ($appName: String!, $deploymentId: ID!, $evaluationId: String!) { app(name: $appName) { deploymentStatus(id: $deploymentId, evaluationId: $evaluationId) { id inProgress status successful description version desiredCount placedCount healthyCount unhealthyCount allocations { id idShort status region desiredStatus version healthy failed canary restarts checks { status serviceName } } } } }","variables":{"appName":"bookforward-prod-us","deploymentId":"","evaluationId":"ea6916c4-aaeb-0dcf-6cc7-eb6941bef7c1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (362.24ms) {"data":{"app":{"deploymentStatus":null}}}
DEBUG --> POST https://api.fly.io/graphql {{"query":"query ($appName: String!, $deploymentId: ID!, $evaluationId: String!) { app(name: $appName) { deploymentStatus(id: $deploymentId, evaluationId: $evaluationId) { id inProgress status successful description version desiredCount placedCount healthyCount unhealthyCount allocations { id idShort status region desiredStatus version healthy failed canary restarts checks { status serviceName } } } } }","variables":{"appName":"bookforward-prod-us","deploymentId":"","evaluationId":"ea6916c4-aaeb-0dcf-6cc7-eb6941bef7c1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (389.58ms) {"data":{"app":{"deploymentStatus":null}}}
DEBUG --> POST https://api.fly.io/graphql {{"query":"query ($appName: String!, $deploymentId: ID!, $evaluationId: String!) { app(name: $appName) { deploymentStatus(id: $deploymentId, evaluationId: $evaluationId) { id inProgress status successful description version desiredCount placedCount healthyCount unhealthyCount allocations { id idShort status region desiredStatus version healthy failed canary restarts checks { status serviceName } } } } }","variables":{"appName":"bookforward-prod-us","deploymentId":"","evaluationId":"ea6916c4-aaeb-0dcf-6cc7-eb6941bef7c1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (402.79ms) {"data":{"app":{"deploymentStatus":{"id":"b09947fb-4214-782a-6d6f-63d3ba88569d","inProgress":true,"status":"running","successful":false,"description":"Deployment is running","version":95,"desiredCount":1,"placedCount":1,"healthyCount":0,"unhealthyCount":0,"allocations":[]}}}}
DEBUG --> POST https://api.fly.io/graphql {{"query":"query ($appName: String!, $deploymentId: ID!, $evaluationId: String!) { app(name: $appName) { deploymentStatus(id: $deploymentId, evaluationId: $evaluationId) { id inProgress status successful description version desiredCount placedCount healthyCount unhealthyCount allocations { id idShort status region desiredStatus version healthy failed canary restarts checks { status serviceName } } } } }","variables":{"appName":"bookforward-prod-us","deploymentId":"b09947fb-4214-782a-6d6f-63d3ba88569d","evaluationId":"ea6916c4-aaeb-0dcf-6cc7-eb6941bef7c1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (349.61ms) {"data":{"app":{"deploymentStatus":{"id":"b09947fb-4214-782a-6d6f-63d3ba88569d","inProgress":true,"status":"running","successful":false,"description":"Deployment is running","version":95,"desiredCount":1,"placedCount":1,"healthyCount":0,"unhealthyCount":0,"allocations":[]}}}}
DEBUG --> POST https://api.fly.io/graphql {{"query":"query ($appName: String!, $deploymentId: ID!, $evaluationId: String!) { app(name: $appName) { deploymentStatus(id: $deploymentId, evaluationId: $evaluationId) { id inProgress status successful description version desiredCount placedCount healthyCount unhealthyCount allocations { id idShort status region desiredStatus version healthy failed canary restarts checks { status serviceName } } } } }","variables":{"appName":"bookforward-prod-us","deploymentId":"b09947fb-4214-782a-6d6f-63d3ba88569d","evaluationId":"ea6916c4-aaeb-0dcf-6cc7-eb6941bef7c1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (343.82ms) {"data":{"app":{"deploymentStatus":{"id":"b09947fb-4214-782a-6d6f-63d3ba88569d","inProgress":true,"status":"running","successful":false,"description":"Deployment is running","version":95,"desiredCount":1,"placedCount":1,"healthyCount":0,"unhealthyCount":0,"allocations":[]}}}}
DEBUG --> POST https://api.fly.io/graphql {{"query":"query ($appName: String!, $deploymentId: ID!, $evaluationId: String!) { app(name: $appName) { deploymentStatus(id: $deploymentId, evaluationId: $evaluationId) { id inProgress status successful description version desiredCount placedCount healthyCount unhealthyCount allocations { id idShort status region desiredStatus version healthy failed canary restarts checks { status serviceName } } } } }","variables":{"appName":"bookforward-prod-us","deploymentId":"b09947fb-4214-782a-6d6f-63d3ba88569d","evaluationId":"ea6916c4-aaeb-0dcf-6cc7-eb6941bef7c1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (300.23ms) {"data":{"app":{"deploymentStatus":{"id":"b09947fb-4214-782a-6d6f-63d3ba88569d","inProgress":true,"status":"running","successful":false,"description":"Deployment is running","version":95,"desiredCount":1,"placedCount":1,"healthyCount":0,"unhealthyCount":0,"allocations":[]}}}}
DEBUG --> POST https://api.fly.io/graphql {{"query":"query ($appName: String!, $deploymentId: ID!, $evaluationId: String!) { app(name: $appName) { deploymentStatus(id: $deploymentId, evaluationId: $evaluationId) { id inProgress status successful description version desiredCount placedCount healthyCount unhealthyCount allocations { id idShort status region desiredStatus version healthy failed canary restarts checks { status serviceName } } } } }","variables":{"appName":"bookforward-prod-us","deploymentId":"b09947fb-4214-782a-6d6f-63d3ba88569d","evaluationId":"ea6916c4-aaeb-0dcf-6cc7-eb6941bef7c1"}}
}
DEBUG --> POST https://api.fly.io/graphql {{"query":"query ($appName: String!, $deploymentId: ID!, $evaluationId: String!) { app(name: $appName) { deploymentStatus(id: $deploymentId, evaluationId: $evaluationId) { id inProgress status successful description version desiredCount placedCount healthyCount unhealthyCount allocations { id idShort status region desiredStatus version healthy failed canary restarts checks { status serviceName } } } } }","variables":{"appName":"bookforward-prod-us","deploymentId":"b09947fb-4214-782a-6d6f-63d3ba88569d","evaluationId":"ea6916c4-aaeb-0dcf-6cc7-eb6941bef7c1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (322.79ms) {"data":{"app":{"deploymentStatus":{"id":"b09947fb-4214-782a-6d6f-63d3ba88569d","inProgress":true,"status":"running","successful":false,"description":"Deployment is running","version":95,"desiredCount":1,"placedCount":1,"healthyCount":1,"unhealthyCount":0,"allocations":[]}}}}
DEBUG --> POST https://api.fly.io/graphql {{"query":"query ($appName: String!, $deploymentId: ID!, $evaluationId: String!) { app(name: $appName) { deploymentStatus(id: $deploymentId, evaluationId: $evaluationId) { id inProgress status successful description version desiredCount placedCount healthyCount unhealthyCount allocations { id idShort status region desiredStatus version healthy failed canary restarts checks { status serviceName } } } } }","variables":{"appName":"bookforward-prod-us","deploymentId":"b09947fb-4214-782a-6d6f-63d3ba88569d","evaluationId":"ea6916c4-aaeb-0dcf-6cc7-eb6941bef7c1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (334.55ms) {"data":{"app":{"deploymentStatus":{"id":"b09947fb-4214-782a-6d6f-63d3ba88569d","inProgress":true,"status":"running","successful":false,"description":"Deployment is running","version":95,"desiredCount":1,"placedCount":1,"healthyCount":1,"unhealthyCount":0,"allocations":[]}}}}
DEBUG --> POST https://api.fly.io/graphql {{"query":"query ($appName: String!, $deploymentId: ID!, $evaluationId: String!) { app(name: $appName) { deploymentStatus(id: $deploymentId, evaluationId: $evaluationId) { id inProgress status successful description version desiredCount placedCount healthyCount unhealthyCount allocations { id idShort status region desiredStatus version healthy failed canary restarts checks { status serviceName } } } } }","variables":{"appName":"bookforward-prod-us","deploymentId":"b09947fb-4214-782a-6d6f-63d3ba88569d","evaluationId":"ea6916c4-aaeb-0dcf-6cc7-eb6941bef7c1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (282.74ms) {"data":{"app":{"deploymentStatus":{"id":"b09947fb-4214-782a-6d6f-63d3ba88569d","inProgress":false,"status":"successful","successful":true,"description":"Deployment completed successfully","version":95,"desiredCount":1,"placedCount":1,"healthyCount":1,"unhealthyCount":0,"allocations":[]}}}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment