Hi all,
I am trying to deploy a basic, unmodified Phoenix app generated with mix phx.new --no-ecto --no-webpack test
.
I followed this official guide and the only changes from that flow are:
- I am not provisioning or using a DB
- I have modified the Dockerfile to remove references to
nodejs
assets
Environment:
- Erlang: 24.0.1
- Elixir: 1.12.1
- Phoenix: 1.5.9
- Docker Build: Alpine 3.13.3
- Docker Final: Alpine 3.13.3
I am running into cryptic deployment errors with no detail in the logs (flyctl logs
output below):
2021-06-25T14:16:19.451539499Z proxy[78cf7399] sin [warn] Health check status changed 'passing' => 'warning'
2021-06-25T14:16:30.241535982Z proxy[78cf7399] sin [error] Health check status changed 'warning' => 'critical'
2021-06-25T14:17:59.084636935Z runner[78cf7399] sin [info] Shutting down virtual machine
2021-06-25T14:17:59.362818009Z app[78cf7399] sin [info] Sending signal SIGTERM to main child process w/ PID 507
2021-06-25T14:17:59.363761686Z app[78cf7399] sin [info] 14:17:59.362 [info] SIGTERM received - shutting down
2021-06-25T14:18:01.364829239Z app[78cf7399] sin [info] Main child exited normally with code: 0
2021-06-25T14:18:01.365074944Z app[78cf7399] sin [info] Starting clean up.
2021-06-25T14:18:04.578037634Z runner[78cf7399] sin [info] Starting instance
2021-06-25T14:18:04.600596503Z runner[78cf7399] sin [info] Configuring virtual machine
2021-06-25T14:18:04.601492870Z runner[78cf7399] sin [info] Pulling container image
2021-06-25T14:18:05.536423944Z runner[78cf7399] sin [info] Unpacking image
2021-06-25T14:18:05.541977528Z runner[78cf7399] sin [info] Preparing kernel init
2021-06-25T14:18:05.940926148Z proxy[78cf7399] sin [info] Health check status changed 'critical' => 'passing'
2021-06-25T14:18:05.963694523Z runner[78cf7399] sin [info] Configuring firecracker
2021-06-25T14:18:06.238034542Z runner[78cf7399] sin [info] Starting virtual machine
2021-06-25T14:18:06.351047090Z app[78cf7399] sin [info] Starting init (commit: cc4f071)...
2021-06-25T14:18:06.365021317Z app[78cf7399] sin [info] Running: `bin/test start` as nobody
2021-06-25T14:18:06.372326336Z app[78cf7399] sin [info] 2021/06/25 14:18:06 listening on [fdaa:0:2e6e:a7b:f0f:78cf:7399:2]:22 (DNS: [fdaa::3]:53)
2021-06-25T14:18:07.371621581Z app[78cf7399] sin [info] Reaped child process with pid: 548, exit code: 0
2021-06-25T14:18:08.373370354Z app[78cf7399] sin [info] Reaped child process with pid: 569 and signal: SIGUSR1, core dumped? false
2021-06-25T14:18:13.653300820Z proxy[78cf7399] sin [warn] Health check status changed 'passing' => 'warning'
2021-06-25T14:18:21.860043995Z proxy[78cf7399] sin [error] Health check status changed 'warning' => 'critical'
2021-06-25T14:19:52.553677381Z runner[78cf7399] sin [info] Shutting down virtual machine
2021-06-25T14:19:52.813712435Z app[78cf7399] sin [info] Sending signal SIGTERM to main child process w/ PID 507
2021-06-25T14:19:52.814684545Z app[78cf7399] sin [info] 14:19:52.813 [info] SIGTERM received - shutting down
2021-06-25T14:19:54.816738719Z app[78cf7399] sin [info] Main child exited normally with code: 0
2021-06-25T14:19:54.817030962Z app[78cf7399] sin [info] Starting clean up.
I thought it might be a missing config :test, TestWeb.Endpoint, server: true
line in runtime.exs
but adding this line results in the same output.
I can confirm that the app works fine locally with mix phx.server
.