failed to deploy

I have a Remix run indie stack app that I have deployed. I tested locally with run build and start and locally app works fine.

The issue seems to be with

v0 is being deployed

191ac3fb5c: iad pending

201ac3fb5c: iad running unhealthy [health checks: 2 total, 1 critical]

211ac3fb5c: iad running unhealthy [health checks: 2 total, 2 critical]

221ac3fb5c: iad running unhealthy [health checks: 2 total, 1 passing, 1 critical]

23Failed Instances

24

25Failure #1

26

27 → v0 failed - Failed due to unhealthy allocations - no stable job version to auto revert to and deploying as v1

app = “bitoflearning-9a57”
kill_signal = “SIGINT”
kill_timeout = 5
processes =

[experimental]
allowed_public_ports =
auto_rollback = true
cmd = “start.sh”
entrypoint = “sh”

[mounts]
source = “data”
destination = “/data”

[[services]]
internal_port = 8_080
processes = [ “app” ]
protocol = “tcp”
script_checks =

[services.concurrency]
hard_limit = 25
soft_limit = 20
type = “connections”

[[services.ports]]
handlers = [ “http” ]
port = 80
force_https = true

[[services.ports]]
handlers = [ “tls”, “http” ]
port = 443

[[services.tcp_checks]]
grace_period = “1s”
interval = “15s”
restart_limit = 0
timeout = “2s”

[[services.http_checks]]
interval = “10s”
grace_period = “5s”
method = “get”
path = “/healthcheck”
protocol = “http”
timeout = “2s”
tls_skip_verify = false
headers = { }

I fixed the fly.toml file to read as follows but still seeing the same

unhealthy check

error

app = “bitoflearning-9a57”

kill_signal = “SIGINT”
kill_timeout = 5
processes =

[experimental]
allowed_public_ports =
auto_rollback = true
cmd = “start.sh”
entrypoint = “sh”

[mounts]
source = “data”
destination = “/data”

[[services]]
internal_port = 8080
processes = [“app”]
protocol = “tcp”
script_checks =

[services.concurrency]
hard_limit = 25
soft_limit = 20
type = “connections”

[[services.ports]]
handlers = [“http”]
port = 80
force_https = true

[[services.ports]]
handlers = [“tls”, “http”]
port = 443

[[services.tcp_checks]]
grace_period = “1s”
interval = “15s”
restart_limit = 0
timeout = “2s”

[[services.http_checks]]
interval = “10s”
grace_period = “5s”
method = “get”
path = “/healthcheck”
protocol = “http”
timeout = “2s”
tls_skip_verify = false
[services.http_checks.headers]

what does the log on fly says?

also, you might want to try and increase the grace period just to be on the safe side…if your app takes some time to boot, 2s might be not enough

1 Like

Thanks @luizkowalski for looking into this, it seems the issue was outside fly.io and was resolved via Deploy fly.io error, app runs fine locally · Issue #132 · remix-run/indie-stack · GitHub

My app is functioning nicely at https://bitoflearning-9a57.fly.dev/

Was meaning to close this issue but completely forgot, sorry about that, my first time with remix and fly so still getting my feat wet.