Unable to access app on hostname

Getting a 503 response when trying to access my node app via the hostname link on the dashboard. Deployment succeeded, app is running and instance is healthy. What am I missing?

Hi!

What port is your app listening on?

Do you have a services section in your fly.toml file that has that correct port set as the internal_port

Yep listening on 8080, this is what my fly.toml file looks like:

app = "**redacted**"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[env]

[experimental]
  allowed_public_ports = []
  auto_rollback = true

[[services]]
  http_checks = []
  internal_port = 8080
  processes = ["app"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25
    soft_limit = 20
    type = "connections"

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

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

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

So I just checked it this morning and it’s running fine now. How strange!

1 Like