deploy times out

when deploy from my local machine

Running order-notes release_command: ./bin/rails db:prepare
Starting machine

-------
 ✔ release_command 286ee37be40398 completed successfully
-------
-------
Updating existing machines in 'order-notes' with rolling strategy

-------
 ✔ [1/2] Cleared lease for 91852391cd96d8
 ✔ [2/2] Cleared lease for d89169ef4e4e38
-------
Error: failed to update machine 91852391cd96d8: Unrecoverable error: timeout reached waiting for health checks to pass for machine 91852391cd96d8: failed to get VM 91852391cd96d8: Get "https://api.machines.dev/v1/apps/order-notes/machines/91852391cd96d8": net/http: request canceled

from the github action

nothing stands out in the fly logs

Here’s the error:

May we see the healthcheck definitions for your project?

here is my toml

# routes.rb
get "/health_check", to: proc { [200, {}, ["ok"]] }, as: :rails_health_check
# Gemfile
gem "dockerfile-rails", ">= 1.6", :group => :development

OK, good stuff. Next things to consider trying:

  1. Build your Docker project locally, and see if your healthcheck works there
  2. Remove the healthcheck temporarily from your config in the hope that your machine stays alive, so you can shell into the machine and see if the listener is active

Hmm, in your logs I can see Fly’s SSH listener, but not a web listener from your side. Though I am not familiar with Rails, I wonder if you need to run a command to do this. Item 1 above will allow you to check if the app is generally working.