Deploy stuck on healthcheck

After adding a healtcheck like this:

[http_service]
  processes = ["app"]
  internal_port = 3000
  force_https = true
  auto_stop_machines = "off"
  auto_start_machines = false

[[http_service.checks]]
  grace_period = "15s"
  interval = "120s"
  method = "GET"
  timeout = "10s"
  path = "/up"

my deploy is stuck at ⠴ [2/2] Checking health of machine e784e437b09d68

despite the logs indicating the healthcheck passed:

 2024-08-19T20:46:23.200 app[e784e437b09d68] waw [info] [326] * Listening on http://0.0.0.0:3000

2024-08-19T20:46:23.200 app[e784e437b09d68] waw [info] [326] Use Ctrl-C to stop

2024-08-19T20:46:23.210 app[e784e437b09d68] waw [info] [326] - Worker 0 (PID: 346) booted in 0.01s, phase: 0

2024-08-19T20:46:23.213 app[e784e437b09d68] waw [info] [326] - Worker 1 (PID: 353) booted in 0.0s, phase: 0

2024-08-19T20:46:27.598 health[e784e437b09d68] waw [error] Health check on port 3000 has failed. Your app is not responding properly. Services exposed on ports [80, 443] will have intermittent failures until the health check passes.

2024-08-19T20:46:28.887 app[e784e437b09d68] waw [info] I, [2024-08-19T20:46:28.886701 #353] INFO -- : [a8cd9468-ece7-460b-a01c-64ed013682a9] Started GET "/up" for 172.19.24.161 at 2024-08-19 20:46:28 +0000

2024-08-19T20:46:28.894 app[e784e437b09d68] waw [info] I, [2024-08-19T20:46:28.894322 #353] INFO -- : [a8cd9468-ece7-460b-a01c-64ed013682a9] Processing by Rails::HealthController#show as HTML

2024-08-19T20:46:28.905 app[e784e437b09d68] waw [info] I, [2024-08-19T20:46:28.904709 #353] INFO -- : [a8cd9468-ece7-460b-a01c-64ed013682a9] Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)

2024-08-19T20:46:29.398 health[e784e437b09d68] waw [info] Health check on port 3000 is now passing.

2024-08-19T20:46:38.917 app[e784e437b09d68] waw [info] I, [2024-08-19T20:46:38.916696 #353] INFO -- : [c5e62dda-6040-4de4-b13b-a61a037d109b] Started GET "/up" for 172.19.24.161 at 2024-08-19 20:46:38 +0000

2024-08-19T20:46:38.919 app[e784e437b09d68] waw [info] I, [2024-08-19T20:46:38.919271 #353] INFO -- : [c5e62dda-6040-4de4-b13b-a61a037d109b] Processing by Rails::HealthController#show as HTML

2024-08-19T20:46:38.920 app[e784e437b09d68] waw [info] I, [2024-08-19T20:46:38.920405 #353] INFO -- : [c5e62dda-6040-4de4-b13b-a61a037d109b] Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms) 

There’s constant requests to my healthcheck endpoint which succeed, but deploy is still stuck on the same ⠏ [2/2] Checking health of machine e784e437b09d68.

Any ideas what might be wrong?

No idea, try reducing the interval from 2 minutes down to 5s or something… maybe the CLI hung waiting? :person_shrugging:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.