Github actions fails frequently

Hi team,

This happens on a frequent basis. Following the is the log from github actions:

Failure #1

--> v2 failed - Failed due to unhealthy allocations - no stable job version to auto revert to and deploying as v3 

--> Troubleshooting guide at https://fly.io/docs/getting-started/troubleshooting/
Error abort

My fly.toml file

app = "guerdon-v2"
kill_signal = "SIGINT"
kill_timeout = 5
processes = [ ]

[env]
PORT = "8080"

[deploy]
release_command = "npx prisma migrate deploy"

[experimental]
allowed_public_ports = [ ]
auto_rollback = true

[[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 = { }

Because of the above issue I don’t see recent changes in my app.

Thanks,

On sshing using flyctl ssh console I see that files are not the latest one.

…points to the new deploy failing the declared (http and tcp) health checks (one of the reasons, if not the only reason).

See if this makes a difference:

# fly.toml
- internal_port = 8_080
+ internal_port = 8080

Still same issue:

Failure #1

--> v5 failed - Failed due to unhealthy allocations - no stable job version to auto revert to and deploying as v6 

--> Troubleshooting guide at https://fly.io/docs/getting-started/troubleshooting/
Error abort

Strange. Change grace_period for tcp_checks and http_checks to a higher value, and enable tls_skip_verify for http_checks to see if then works?

 [[services.tcp_checks]]
- grace_period = "1s"
+ grace_period = "10s"
  interval = "15s"
-  restart_limit = 0
+ restart_limit = 3
  timeout = "2s"

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