Looks like this, which is not what I expect. There should be 1 instance running. Running a new deployment with the drug logs didn’t tell me much more.
==> Creating release
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":"lks","image":"registry.fly.io/lks:deployment-1654195030","services":null,"definition":{"env":{"DATABASE_PATH":"/data/prod.db","PHX_HOST":"lks.fly.dev","PORT":"8080"},"experimental":{"allowed_public_ports":[],"auto_rollback":true},"kill_signal":"SIGTERM","kill_timeout":5,"mounts":{"destination":"/data","source":"data"},"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"}]}]},"strategy":null}}}
}
DEBUG <-- 200 https://api.fly.io/graphql (1.04s) {"data":{"deployImage":{"release":{"id":"YgoYklRLL8Xo3fz7K9Jle02n","version":20,"reason":"","description":"Release","deploymentStrategy":"ROLLING","user":{"id":"KXJVBG8Zpm8aoT9G3","email":"hannes.nevalainen@me.com","name":"Hannes Nevalainen"},"evaluationId":"eb5ee755-7557-52c6-1976-4e3b6eea13d1","createdAt":"2022-06-02T18:38:05Z"},"releaseCommand":null}}}
--> release v20 created
--> You can detach the terminal anytime without stopping the deployment
==> Monitoring deployment
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":"lks","deploymentId":"","evaluationId":"eb5ee755-7557-52c6-1976-4e3b6eea13d1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (306.72ms) {"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":"lks","deploymentId":"","evaluationId":"eb5ee755-7557-52c6-1976-4e3b6eea13d1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (204.47ms) {"data":{"app":{"deploymentStatus":{"id":"d7140186-9de8-0625-01ac-2a373a4386a4","inProgress":true,"status":"running","successful":false,"description":"Deployment is running","version":20,"desiredCount":1,"placedCount":0,"healthyCount":0,"unhealthyCount":0,"allocations":[]}}}}
v20 is being deployed
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":"lks","deploymentId":"d7140186-9de8-0625-01ac-2a373a4386a4","evaluationId":"eb5ee755-7557-52c6-1976-4e3b6eea13d1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (169.61ms) {"data":{"app":{"deploymentStatus":{"id":"d7140186-9de8-0625-01ac-2a373a4386a4","inProgress":true,"status":"running","successful":false,"description":"Deployment is running","version":20,"desiredCount":1,"placedCount":0,"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":"lks","deploymentId":"d7140186-9de8-0625-01ac-2a373a4386a4","evaluationId":"eb5ee755-7557-52c6-1976-4e3b6eea13d1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (166.35ms) {"data":{"app":{"deploymentStatus":{"id":"d7140186-9de8-0625-01ac-2a373a4386a4","inProgress":true,"status":"running","successful":false,"description":"Deployment is running","version":20,"desiredCount":1,"placedCount":0,"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":"lks","deploymentId":"d7140186-9de8-0625-01ac-2a373a4386a4","evaluationId":"eb5ee755-7557-52c6-1976-4e3b6eea13d1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (275.37ms) {"data":{"app":{"deploymentStatus":{"id":"d7140186-9de8-0625-01ac-2a373a4386a4","inProgress":true,"status":"running","successful":false,"description":"Deployment is running","version":20,"desiredCount":1,"placedCount":0,"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":"lks","deploymentId":"d7140186-9de8-0625-01ac-2a373a4386a4","evaluationId":"eb5ee755-7557-52c6-1976-4e3b6eea13d1"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (183.23ms) {"data":{"app":{"deploymentStatus":{"id":"d7140186-9de8-0625-01ac-2a373a4386a4","inProgress":true,"status":"running","successful":false,"description":"Deployment is running","version":20,"desiredCount":1,"placedCount":0,"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":"lks","deploymentId":"d7140186-9de8-0625-01ac-2a373a4386a4","evaluationId":"eb5ee755-7557-52c6-1976-4e3b6eea13d1"}}
Then it just continues with the “monitoring”…
$ fly status --all
App
Name = lks
Owner = lagunen
Version = 20
Status = pending
Hostname = lks.fly.dev
Deployment Status
ID = d7140186-9de8-0625-01ac-2a373a4386a4
Version = v20
Status = running
Description = Deployment is running
Instances = 1 desired, 0 placed, 0 healthy, 0 unhealthy
Instances
ID PROCESS VERSION REGION DESIRED STATUS HEALTH CHECKS RESTARTS CREATED
a9a39ca8 app 18 ams stop complete 1 total, 1 passing 0 3h38m ago
a2b8a6d8 app 17 ams stop complete 1 total, 1 passing 0 2022-05-24T19:30:30Z