An error occurred during deployment.

I deployed an app with Rails 6.1.7 and ruby 3.0.0. Deployment was successful, but I got the following error I would like to fix it.

yuya@MuratanoMacBook-Air tudoi % fly open  
opening https://tudoi.fly.dev/ ...
yuya@MuratanoMacBook-Air tudoi % fly logs  
2023-05-21T06:52:11Z app[4d89440b430587] nrt [info][513] *  Min threads: 5
2023-05-21T06:52:11Z app[4d89440b430587] nrt [info][513] *  Max threads: 5
2023-05-21T06:52:11Z app[4d89440b430587] nrt [info][513] *  Environment: production
2023-05-21T06:52:11Z app[4d89440b430587] nrt [info][513] *   Master PID: 513
2023-05-21T06:52:11Z app[4d89440b430587] nrt [info][513] *      Workers: 4
2023-05-21T06:52:11Z app[4d89440b430587] nrt [info][513] *     Restarts: (✔) hot (✖) phased
2023-05-21T06:52:11Z app[4d89440b430587] nrt [info][513] * Preloading application
2023-05-21T06:52:11Z app[4d89440b430587] nrt [info][513] * Listening on http://0.0.0.0:3000
2023-05-21T06:52:11Z app[4d89440b430587] nrt [info][513] Use Ctrl-C to stop
2023-05-21T06:52:11Z app[4d89440b430587] nrt [info][513] - Worker 0 (PID: 523) booted in 0.01s, phase: 0
2023-05-21T06:52:11Z app[4d89440b430587] nrt [info][513] - Worker 1 (PID: 524) booted in 0.02s, phase: 0
2023-05-21T06:52:11Z app[4d89440b430587] nrt [info][513] - Worker 3 (PID: 529) booted in 0.01s, phase: 0
2023-05-21T06:52:11Z app[4d89440b430587] nrt [info][513] - Worker 2 (PID: 527) booted in 0.01s, phase: 0
2023-05-21T06:52:20Z runner[3d8d335ce11989] nrt [info]Pulling container image registry.fly.io/tudoi:deployment-01H0YH2578FVS866RJP11HPM2G
2023-05-21T06:52:34Z runner[3d8d335ce11989] nrt [info]Successfully prepared image registry.fly.io/tudoi:deployment-01H0YH2578FVS866RJP11HPM2G (13.756479563s)
2023-05-21T06:52:36Z app[3d8d335ce11989] nrt [info]Starting init (commit: 15f6405)...
2023-05-21T06:52:36Z app[3d8d335ce11989] nrt [info]Preparing to run: `/rails/bin/docker-entrypoint ./bin/rails server` as rails
2023-05-21T06:52:36Z app[3d8d335ce11989] nrt [info]2023/05/21 06:52:36 listening on [fdaa:2:1570:a7b:b4f1:9ef7:fba5:2]:22 (DNS: [fdaa::3]:53)
2023-05-21T06:52:38Z app[3d8d335ce11989] nrt [info]=> Booting Puma
2023-05-21T06:52:38Z app[3d8d335ce11989] nrt [info]=> Rails 6.1.7 application starting in production
2023-05-21T06:52:38Z app[3d8d335ce11989] nrt [info]=> Run `bin/rails server --help` for more startup options
2023-05-21T06:52:39Z app[3d8d335ce11989] nrt [info][513] Puma starting in cluster mode...
2023-05-21T06:52:39Z app[3d8d335ce11989] nrt [info][513] * Puma version: 5.6.5 (ruby 3.0.0-p0) ("Birdie's Version")
2023-05-21T06:52:39Z app[3d8d335ce11989] nrt [info][513] *  Min threads: 5
2023-05-21T06:52:39Z app[3d8d335ce11989] nrt [info][513] *  Max threads: 5
2023-05-21T06:52:39Z app[3d8d335ce11989] nrt [info][513] *  Environment: production
2023-05-21T06:52:39Z app[3d8d335ce11989] nrt [info][513] *   Master PID: 513
2023-05-21T06:52:39Z app[3d8d335ce11989] nrt [info][513] *      Workers: 4
2023-05-21T06:52:39Z app[3d8d335ce11989] nrt [info][513] *     Restarts: (✔) hot (✖) phased
2023-05-21T06:52:39Z app[3d8d335ce11989] nrt [info][513] * Preloading application
2023-05-21T06:52:39Z app[3d8d335ce11989] nrt [info][513] * Listening on http://0.0.0.0:3000
2023-05-21T06:52:39Z app[3d8d335ce11989] nrt [info][513] Use Ctrl-C to stop
2023-05-21T06:52:39Z app[3d8d335ce11989] nrt [info][513] - Worker 0 (PID: 523) booted in 0.01s, phase: 0
2023-05-21T06:52:39Z app[3d8d335ce11989] nrt [info][513] - Worker 1 (PID: 524) booted in 0.01s, phase: 0
2023-05-21T06:52:39Z app[3d8d335ce11989] nrt [info][513] - Worker 3 (PID: 526) booted in 0.01s, phase: 0
2023-05-21T06:52:39Z app[3d8d335ce11989] nrt [info][513] - Worker 2 (PID: 525) booted in 0.01s, phase: 0
2023-05-21T07:00:04Z app[4d89440b430587] nrt [info]Sending signal SIGINT to main child process w/ PID 513
2023-05-21T07:00:04Z app[4d89440b430587] nrt [info][513] - Gracefully shutting down workers...
2023-05-21T07:00:04Z app[4d89440b430587] nrt [info][  477.682045] Out of memory: Killed process 529 (ruby) total-vm:737932kB, anon-rss:93948kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:476kB oom_score_adj:0
2023-05-21T07:00:05Z app[4d89440b430587] nrt [info][513] === puma shutdown: 2023-05-21 07:00:05 +0000 ===
2023-05-21T07:00:05Z app[4d89440b430587] nrt [info][513] - Goodbye!
2023-05-21T07:00:05Z app[4d89440b430587] nrt [info]Exiting
2023-05-21T07:00:05Z app[4d89440b430587] nrt [info]Starting clean up.
2023-05-21T07:00:06Z app[4d89440b430587] nrt [info][  479.760686] reboot: Restarting system
2023-05-21T07:02:51Z app[3d8d335ce11989] nrt [info]Sending signal SIGINT to main child process w/ PID 513
2023-05-21T07:02:51Z app[3d8d335ce11989] nrt [info][513] - Gracefully shutting down workers...
2023-05-21T07:02:52Z app[3d8d335ce11989] nrt [info][  615.559656] Out of memory: Killed process 526 (ruby) total-vm:738064kB, anon-rss:94140kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:476kB oom_score_adj:0
2023-05-21T07:02:52Z app[3d8d335ce11989] nrt [info][513] === puma shutdown: 2023-05-21 07:02:52 +0000 ===
2023-05-21T07:02:52Z app[3d8d335ce11989] nrt [info][513] - Goodbye!
2023-05-21T07:02:52Z app[3d8d335ce11989] nrt [info]Exiting
2023-05-21T07:02:53Z app[3d8d335ce11989] nrt [info]Starting clean up.
2023-05-21T07:02:54Z app[3d8d335ce11989] nrt [info][  617.805110] reboot: Restarting system
2023-05-21T07:06:57Z runner[3d8d335ce11989] nrt [info]Pulling container image registry.fly.io/tudoi:deployment-01H0YJ0YWX7GQ9XVX7HCE03ZVE
2023-05-21T07:07:08Z runner[3d8d335ce11989] nrt [info]Successfully prepared image registry.fly.io/tudoi:deployment-01H0YJ0YWX7GQ9XVX7HCE03ZVE (10.662491393s)
2023-05-21T07:07:08Z runner[3d8d335ce11989] nrt [info]Configuring firecracker
2023-05-21T07:07:09Z app[3d8d335ce11989] nrt [info]Starting init (commit: 15f6405)...
2023-05-21T07:07:09Z app[3d8d335ce11989] nrt [info]Preparing to run: `/rails/bin/docker-entrypoint ./bin/rails server` as rails
2023-05-21T07:07:09Z app[3d8d335ce11989] nrt [info]2023/05/21 07:07:09 listening on [fdaa:2:1570:a7b:b4f1:9ef7:fba5:2]:22 (DNS: [fdaa::3]:53)
2023-05-21T07:07:11Z app[3d8d335ce11989] nrt [info]=> Booting Puma
2023-05-21T07:07:11Z app[3d8d335ce11989] nrt [info]=> Rails 6.1.7 application starting in production
2023-05-21T07:07:11Z app[3d8d335ce11989] nrt [info]=> Run `bin/rails server --help` for more startup options
2023-05-21T07:07:12Z app[3d8d335ce11989] nrt [info][513] Puma starting in cluster mode...
2023-05-21T07:07:12Z app[3d8d335ce11989] nrt [info][513] * Puma version: 5.6.5 (ruby 3.0.0-p0) ("Birdie's Version")
2023-05-21T07:07:12Z app[3d8d335ce11989] nrt [info][513] *  Min threads: 5
2023-05-21T07:07:12Z app[3d8d335ce11989] nrt [info][513] *  Max threads: 5
2023-05-21T07:07:12Z app[3d8d335ce11989] nrt [info][513] *  Environment: production
2023-05-21T07:07:12Z app[3d8d335ce11989] nrt [info][513] *   Master PID: 513
2023-05-21T07:07:12Z app[3d8d335ce11989] nrt [info][513] *      Workers: 4
2023-05-21T07:07:12Z app[3d8d335ce11989] nrt [info][513] *     Restarts: (✔) hot (✖) phased
2023-05-21T07:07:12Z app[3d8d335ce11989] nrt [info][513] * Preloading application
2023-05-21T07:07:12Z app[3d8d335ce11989] nrt [info][513] * Listening on http://0.0.0.0:3000
2023-05-21T07:07:12Z app[3d8d335ce11989] nrt [info][513] Use Ctrl-C to stop
2023-05-21T07:07:12Z app[3d8d335ce11989] nrt [info][513] - Worker 0 (PID: 523) booted in 0.01s, phase: 0
2023-05-21T07:07:12Z app[3d8d335ce11989] nrt [info][513] - Worker 1 (PID: 524) booted in 0.01s, phase: 0
2023-05-21T07:07:12Z app[3d8d335ce11989] nrt [info][513] - Worker 3 (PID: 526) booted in 0.01s, phase: 0
2023-05-21T07:07:12Z app[3d8d335ce11989] nrt [info][513] - Worker 2 (PID: 525) booted in 0.01s, phase: 0
2023-05-21T07:07:22Z runner[4d89440b430587] nrt [info]Pulling container image registry.fly.io/tudoi:deployment-01H0YJ0YWX7GQ9XVX7HCE03ZVE
2023-05-21T07:07:34Z runner[4d89440b430587] nrt [info]Successfully prepared image registry.fly.io/tudoi:deployment-01H0YJ0YWX7GQ9XVX7HCE03ZVE (12.447363621s)
2023-05-21T07:07:35Z runner[4d89440b430587] nrt [info]Configuring firecracker
2023-05-21T07:07:37Z app[4d89440b430587] nrt [info]Starting init (commit: 15f6405)...
2023-05-21T07:07:37Z app[4d89440b430587] nrt [info]Preparing to run: `/rails/bin/docker-entrypoint ./bin/rails server` as rails
2023-05-21T07:07:37Z app[4d89440b430587] nrt [info]2023/05/21 07:07:37 listening on [fdaa:2:1570:a7b:d86c:bd2a:344a:2]:22 (DNS: [fdaa::3]:53)
2023-05-21T07:07:41Z app[4d89440b430587] nrt [info]=> Booting Puma
2023-05-21T07:07:41Z app[4d89440b430587] nrt [info]=> Rails 6.1.7 application starting in production
2023-05-21T07:07:41Z app[4d89440b430587] nrt [info]=> Run `bin/rails server --help` for more startup options
2023-05-21T07:07:42Z app[4d89440b430587] nrt [info][513] Puma starting in cluster mode...
2023-05-21T07:07:42Z app[4d89440b430587] nrt [info][513] * Puma version: 5.6.5 (ruby 3.0.0-p0) ("Birdie's Version")
2023-05-21T07:07:42Z app[4d89440b430587] nrt [info][513] *  Min threads: 5
2023-05-21T07:07:42Z app[4d89440b430587] nrt [info][513] *  Max threads: 5
2023-05-21T07:07:42Z app[4d89440b430587] nrt [info][513] *  Environment: production
2023-05-21T07:07:42Z app[4d89440b430587] nrt [info][513] *   Master PID: 513
2023-05-21T07:07:42Z app[4d89440b430587] nrt [info][513] *      Workers: 4
2023-05-21T07:07:42Z app[4d89440b430587] nrt [info][513] *     Restarts: (✔) hot (✖) phased
2023-05-21T07:07:42Z app[4d89440b430587] nrt [info][513] * Preloading application
2023-05-21T07:07:42Z app[4d89440b430587] nrt [info][513] * Listening on http://0.0.0.0:3000
2023-05-21T07:07:42Z app[4d89440b430587] nrt [info][513] Use Ctrl-C to stop
2023-05-21T07:07:42Z app[4d89440b430587] nrt [info][513] - Worker 0 (PID: 523) booted in 0.02s, phase: 0
2023-05-21T07:07:42Z app[4d89440b430587] nrt [info][513] - Worker 1 (PID: 524) booted in 0.02s, phase: 0
2023-05-21T07:07:42Z app[4d89440b430587] nrt [info][513] - Worker 2 (PID: 527) booted in 0.02s, phase: 0
2023-05-21T07:07:42Z app[4d89440b430587] nrt [info][513] - Worker 3 (PID: 528) booted in 0.02s, phase: 0
2023-05-21T07:12:08Z proxy nrt [error]could not find a good candidate within 90 attempts at load balancing. last error: no known healthy instances found for route tcp/443. (hint: is your app shutdown? is there an ongoing deployment with a volume or using the 'immediate' strategy? has you106be1dfa7d82720baabe1c75b64d759ea8adf341       2023-05-21T07:15:04Z app[4d89440b430587] nrt [info][513] - Gracefully shutting down workers...
2023-05-21T07:15:04Z app[4d89440b430587] nrt [info]Sending signal SIGINT to main child process w/ PID 513
2023-05-21T07:15:04Z app[4d89440b430587] nrt [info][  447.359977] Out of memory: Killed process 528 (ruby) total-vm:737988kB, anon-rss:94104kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:472kB oom_score_adj:0
2023-05-21T07:15:05Z app[4d89440b430587] nrt [info][513] === puma shutdown: 2023-05-21 07:15:05 +0000 ===
2023-05-21T07:15:05Z app[4d89440b430587] nrt [info][513] - Goodbye!
2023-05-21T07:15:05Z app[4d89440b430587] nrt [info]Exiting
2023-05-21T07:15:06Z app[4d89440b430587] nrt [info]Starting clean up.
2023-05-21T07:15:07Z app[4d89440b430587] nrt [info][  449.718928] reboot: Restarting system

You need more memory. Either add swap or up the memory.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.