Phoenix Build Fails

Following the directions here: Deploy an Elixir Phoenix Application · Fly Docs for deploying a Phoenix app fails at the deploy step.

App Monitoring Logs

$ fly logs -a xxx-test-app

Waiting for logs...

2022-06-29T22:01:55.046 runner[4e09d15e] ord [info] Starting instance

2022-06-29T22:01:55.316 runner[4e09d15e] ord [info] Configuring virtual machine

2022-06-29T22:01:55.317 runner[4e09d15e] ord [info] Pulling container image

2022-06-29T22:01:56.370 runner[4e09d15e] ord [info] Unpacking image

2022-06-29T22:01:58.176 runner[4e09d15e] ord [info] Preparing kernel init

2022-06-29T22:01:59.599 runner[4e09d15e] ord [info] Configuring firecracker

2022-06-29T22:01:59.600 runner[4e09d15e] ord [info] Starting virtual machine

2022-06-29T22:01:59.796 app[4e09d15e] ord [info] Starting init (commit: 5556859)...

2022-06-29T22:01:59.858 app[4e09d15e] ord [info] Setting up swapspace version 1, size = 512 MiB (536866816 bytes)

2022-06-29T22:01:59.859 app[4e09d15e] ord [info] no label, UUID=67164bd0-5aee-484b-b9ae-db4f392f211f

2022-06-29T22:01:59.865 app[4e09d15e] ord [info] Preparing to run: `/app/bin/migrate` as nobody

2022-06-29T22:01:59.880 app[4e09d15e] ord [info] 2022/06/29 22:01:59 listening on [fdaa:0:72c3:a7b:9ad9:4e09:d15e:2]:22 (DNS: [fdaa::3]:53)


# fly.toml file generated for xxx-test-app on 2022-06-29T16:19:41-05:00

app = "xxx-test-app"
kill_signal = "SIGTERM"
kill_timeout = 5
processes = []

  release_command = "/app/bin/migrate"

  PHX_HOST = ""

  allowed_public_ports = []
  auto_rollback = true

  http_checks = []
  internal_port = 4000
  processes = ["server"]
  protocol = "tcp"
  script_checks = []
    hard_limit = 25
    soft_limit = 20
    type = "connections"

    force_https = true
    handlers = ["http"]
    port = 80

    handlers = ["tls", "http"]
    port = 443

    grace_period = "30s"
    interval = "15s"
    restart_limit = 0
    timeout = "2s"

The builder appears to succeed and pushing the image up to the fly registry, it’s when the main app receives it, that it fails and either errors out, or immediately goes dead. Restarting doesn’t do anything.

I have made the changes to the environment port and to the internal port.

Please advise