I'm unable to deploy my simple app : Health check on port 3000 has failed. Your app is not responding properly.

Hi all,

This is my first post ever, and i would really appreciate any help.
I have a rails app on git which i pulled and updated. I then tried to launch the app and deploy it. The “fly launch” works fine, but the “fly deploy” stops on this :

  [1/1] Waiting for 6e82d525c302e8 [app] to become healthy: 0/1
WARN failed to release lease for machine 6e82d525c302e8: lease not found
Error: timeout reached waiting for healthchecks to pass for machine 6e82d525c302e8 failed to get VM 6e82d525c302e8: Get "https://api.machines.dev/v1/apps/cycle/machines/6e82d525c302e8": net/http: request canceled

Did anyone get anything similar ? Or does anyone know what could be causing this ?
I tried deploying a blank rails app and it works just fine. I can’t figure out why it wouldn’t work.

Cheers

Is your app listening on port 3000?

For some reason your app didn’t start; sure the symptom is that the health check failed, but the failure likely is well before that point. The following page suggests things to look out for:

If your logs show something that isn’t covered by that page, post the relevant portions here, and we can help spot the issue and suggest things you can do.

How do i check if it is listening on port 3000 ?

Here is the fly logs output. I can’t figure which part of it is responsible for the bug

PS D:\C\Documents\Code\Pulse\pulse> fly logs
Update available 0.0.539 -> v0.0.540.
Run "fly.exe version update" to upgrade.
2023-04-24T21:42:05Z app[6e82d525c302e8] cdg [info]*  Min threads: 5
2023-04-24T21:42:05Z app[6e82d525c302e8] cdg [info]*  Max threads: 5
2023-04-24T21:42:05Z app[6e82d525c302e8] cdg [info]*  Environment: production
2023-04-24T21:42:05Z app[6e82d525c302e8] cdg [info]*          PID: 524
2023-04-24T21:42:05Z app[6e82d525c302e8] cdg [info]* Listening on http://0.0.0.0:8080
2023-04-24T21:42:05Z app[6e82d525c302e8] cdg [info]Use Ctrl-C to stop
2023-04-24T21:42:14Z health[6e82d525c302e8] cdg [error]Health check on port 3000 has failed. Your app is not responding properly.
2023-04-24T21:46:27Z proxy [6e82d525c302e8] cdg [info]Downscaling app cycle in region cdg. Automatically stopping machine 6e82d525c302e8. 1 instance is running but has no load
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]rails aborted!
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]Interrupt:
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/file_utils.rb:54:in `system'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/file_utils.rb:54:in `sh'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/lib/tasks/fly.rake:23:in `block (2 levels) in <main>'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block in perform'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:18:in `perform'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/command.rb:51:in `invoke'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `<main>'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]Tasks: TOP => fly:server
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info](See full trace by running task with --trace)
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]Sending signal SIGINT to main child process w/ PID 513
2023-04-24T21:46:27Z app[6e82d525c302e8] cdg [info]Starting clean up.
2023-04-24T21:46:28Z app[6e82d525c302e8] cdg [info][  265.389124] reboot: Restarting system
2023-04-25T06:26:19Z runner[6e82d525c302e8] cdg [info]Pulling container image registry.fly.io/cycle:deployment-01GYVHEQETT671KAG80KVD01RD
2023-04-25T06:26:19Z runner[6e82d525c302e8] cdg [info]Unpacking image
2023-04-25T06:26:19Z runner[6e82d525c302e8] cdg [info]Successfully prepared image registry.fly.io/cycle:deployment-01GYVHEQETT671KAG80KVD01RD
2023-04-25T06:26:21Z app[6e82d525c302e8] cdg [info]Starting init (commit: 1578345)...
2023-04-25T06:26:21Z app[6e82d525c302e8] cdg [info]Preparing to run: `/bin/bash -o pipefail -c ${SERVER_COMMAND}` as root
2023-04-25T06:26:21Z app[6e82d525c302e8] cdg [info]2023/04/25 06:26:21 listening on [fdaa:2:cd6:a7b:127:8e02:aa40:2]:22 (DNS: [fdaa::3]:53)
2023-04-25T06:26:21Z health[6e82d525c302e8] cdg [warn]Health check on port 3000 is in a 'warning' state. Your app may not be responding properly.
2023-04-25T06:26:22Z app[6e82d525c302e8] cdg [info]fallocate -l 512M /swapfile
2023-04-25T06:26:22Z app[6e82d525c302e8] cdg [info]chmod 0600 /swapfile
2023-04-25T06:26:22Z app[6e82d525c302e8] cdg [info]mkswap /swapfile
2023-04-25T06:26:22Z app[6e82d525c302e8] cdg [info]Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
2023-04-25T06:26:22Z app[6e82d525c302e8] cdg [info]no label, UUID=7ab4c5e5-2b3f-4a4d-ae4c-65b946817348
2023-04-25T06:26:22Z app[6e82d525c302e8] cdg [info]echo 10 > /proc/sys/vm/swappiness
2023-04-25T06:26:22Z app[6e82d525c302e8] cdg [info]swapon /swapfile
2023-04-25T06:26:22Z app[6e82d525c302e8] cdg [info]bin/rails server
2023-04-25T06:26:22Z health[6e82d525c302e8] cdg [error]Health check on port 3000 has failed. Your app is not responding properly.
2023-04-25T06:26:22Z app[6e82d525c302e8] cdg [info]=> Booting Puma
2023-04-25T06:26:22Z app[6e82d525c302e8] cdg [info]=> Rails 7.0.4 application starting in production
2023-04-25T06:26:22Z app[6e82d525c302e8] cdg [info]=> Run `bin/rails server --help` for more startup options
2023-04-25T06:26:23Z app[6e82d525c302e8] cdg [info]Puma starting in single mode...
2023-04-25T06:26:23Z app[6e82d525c302e8] cdg [info]* Puma version: 5.6.5 (ruby 3.2.2-p53) ("Birdie's Version")2023-04-25T06:26:23Z app[6e82d525c302e8] cdg [info]*  Min threads: 5
2023-04-25T06:26:23Z app[6e82d525c302e8] cdg [info]*  Max threads: 5
2023-04-25T06:26:23Z app[6e82d525c302e8] cdg [info]*  Environment: production
2023-04-25T06:26:23Z app[6e82d525c302e8] cdg [info]*          PID: 524
2023-04-25T06:26:23Z app[6e82d525c302e8] cdg [info]* Listening on http://0.0.0.0:8080
2023-04-25T06:26:23Z app[6e82d525c302e8] cdg [info]Use Ctrl-C to stop
2023-04-25T06:28:28Z proxy [6e82d525c302e8] cdg [info]Downscaling app cycle in region cdg. Automatically stopping machine 6e82d525c302e8. 1 instance is running but has no load
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]rails aborted!
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]Interrupt:
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/file_utils.rb:54:in `system'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/file_utils.rb:54:in `sh'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/lib/tasks/fly.rake:23:in `block (2 levels) in <main>'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block in perform'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:18:in `perform'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/command.rb:51:in `invoke'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `<main>'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]Tasks: TOP => fly:server
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info](See full trace by running task with --trace)
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]Sending signal SIGINT to main child process w/ PID 513
2023-04-25T06:28:28Z app[6e82d525c302e8] cdg [info]Starting clean up.
2023-04-25T06:28:29Z app[6e82d525c302e8] cdg [info][  128.230347] reboot: Restarting system

I don’t have a master key, could it be caused by this ? should i just ask for the master key and add it to my repo ?
sorry if my questions are dumb i’m kinda new with this

The port it started on is not 3000. Either change the fly.toml or the rails configuration.

1 Like

Thank you, this made the deploy go through, but i’m getting a problem on the app :


Any idea how i can solve this ?

Hey could you share new logs and maybe your fly.toml?

Here are the logs :

Update available 0.0.539 -> v0.0.542.
Run "fly.exe version update" to upgrade.
2023-04-25T19:50:55Z app[6e82d525c302e8] cdg [info][40c4d571-286f-4fb6-9077-a4ed26804085] railties (7.0.4) lib/rails/engine.rb:530:in `call'
2023-04-25T19:50:55Z app[6e82d525c302e8] cdg [info][40c4d571-286f-4fb6-9077-a4ed26804085] puma (5.6.5) lib/puma/configuration.rb:252:in `call'
2023-04-25T19:50:55Z app[6e82d525c302e8] cdg [info][40c4d571-286f-4fb6-9077-a4ed26804085] puma (5.6.5) lib/puma/request.rb:77:in `block in handle_request'
2023-04-25T19:50:55Z app[6e82d525c302e8] cdg [info][40c4d571-286f-4fb6-9077-a4ed26804085] puma (5.6.5) lib/puma/thread_pool.rb:340:in `with_force_shutdown'
2023-04-25T19:50:55Z app[6e82d525c302e8] cdg [info][40c4d571-286f-4fb6-9077-a4ed26804085] puma (5.6.5) lib/puma/request.rb:76:in `handle_request'
2023-04-25T19:50:55Z app[6e82d525c302e8] cdg [info][40c4d571-286f-4fb6-9077-a4ed26804085] puma (5.6.5) lib/puma/server.rb:443:in `process_client'
2023-04-25T19:50:55Z app[6e82d525c302e8] cdg [info][40c4d571-286f-4fb6-9077-a4ed26804085] puma (5.6.5) lib/puma/thread_pool.rb:147:in `block in spawn_thread'
2023-04-25T19:52:19Z proxy [6e82d525c302e8] cdg [info]Downscaling app cycle in region cdg. Automatically stopping machine 6e82d525c302e8. 1 instance is running but has no load
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]Sending signal SIGINT to main child process w/ PID 513
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]rails aborted!
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]Interrupt:
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/file_utils.rb:54:in `system'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/file_utils.rb:54:in `sh'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/lib/tasks/fly.rake:23:in `block (2 levels) in <main>'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block in perform'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:18:in `perform'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/command.rb:51:in `invoke'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `<main>'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]Tasks: TOP => fly:server
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info](See full trace by running task with --trace)
2023-04-25T19:52:19Z app[6e82d525c302e8] cdg [info]Starting clean up.
2023-04-25T19:52:20Z app[6e82d525c302e8] cdg [info][  111.220077] reboot: Restarting system
2023-04-25T19:55:00Z proxy[6e82d525c302e8] cdg [info]Starting machine
2023-04-25T19:55:00Z app[6e82d525c302e8] cdg [info]Starting init (commit: 1578345)...
2023-04-25T19:55:00Z app[6e82d525c302e8] cdg [info]Preparing to run: `/bin/bash -o pipefail -c ${SERVER_COMMAND}` as root
2023-04-25T19:55:00Z app[6e82d525c302e8] cdg [info]2023/04/25 19:55:00 listening on [fdaa:2:cd6:a7b:127:8e02:aa40:2]:22 (DNS: [fdaa::3]:53)
2023-04-25T19:55:00Z proxy[6e82d525c302e8] cdg [info]machine started in 260.82533ms
2023-04-25T19:55:00Z proxy[6e82d525c302e8] cdg [info]machine became reachable in 7.066572ms
2023-04-25T19:55:01Z health[6e82d525c302e8] cdg [warn]Health check on port 8080 is in a 'warning' state. Your app may not be responding properly.
2023-04-25T19:55:01Z app[6e82d525c302e8] cdg [info]fallocate -l 512M /swapfile
2023-04-25T19:55:01Z app[6e82d525c302e8] cdg [info]chmod 0600 /swapfile
2023-04-25T19:55:01Z app[6e82d525c302e8] cdg [info]mkswap /swapfile
2023-04-25T19:55:01Z app[6e82d525c302e8] cdg [info]Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
2023-04-25T19:55:01Z app[6e82d525c302e8] cdg [info]no label, UUID=99b733c4-fa37-4a86-a438-e3d45e657b0a
2023-04-25T19:55:01Z app[6e82d525c302e8] cdg [info]echo 10 > /proc/sys/vm/swappiness
2023-04-25T19:55:01Z app[6e82d525c302e8] cdg [info]swapon /swapfile
2023-04-25T19:55:01Z app[6e82d525c302e8] cdg [info]bin/rails server
2023-04-25T19:55:02Z app[6e82d525c302e8] cdg [info]=> Booting Puma
2023-04-25T19:55:02Z app[6e82d525c302e8] cdg [info]=> Rails 7.0.4 application starting in production
2023-04-25T19:55:02Z app[6e82d525c302e8] cdg [info]=> Run `bin/rails server --help` for more startup options
2023-04-25T19:55:03Z app[6e82d525c302e8] cdg [info]Puma starting in single mode...
2023-04-25T19:55:03Z app[6e82d525c302e8] cdg [info]* Puma version: 5.6.5 (ruby 3.2.2-p53) ("Birdie's Version")
2023-04-25T19:55:03Z app[6e82d525c302e8] cdg [info]*  Max threads: 5
2023-04-25T19:55:03Z app[6e82d525c302e8] cdg [info]*  Max threads: 5
2023-04-25T19:55:03Z app[6e82d525c302e8] cdg [info]*  Environment: production
2023-04-25T19:55:03Z app[6e82d525c302e8] cdg [info]*          PID: 526
2023-04-25T19:55:03Z app[6e82d525c302e8] cdg [info]* Listening on http://0.0.0.0:8080
2023-04-25T19:55:03Z app[6e82d525c302e8] cdg [info]Use Ctrl-C to stop
2023-04-25T19:55:04Z health[6e82d525c302e8] cdg [info]Health check on port 8080 is now passing.
2023-04-25T19:55:19Z proxy [6e82d525c302e8] cdg [info]Downscaling app cycle in region cdg. Automatically stopping machine 6e82d525c302e8. 1 instance is running but has no load
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]rails aborted!
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]Interrupt:
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/file_utils.rb:54:in `system'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/file_utils.rb:54:in `sh'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/lib/tasks/fly.rake:23:in `block (2 levels) in <main>'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block in perform'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:18:in `perform'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/command.rb:51:in `invoke'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `<main>'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]Tasks: TOP => fly:server
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info](See full trace by running task with --trace)
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]Sending signal SIGINT to main child process w/ PID 513
2023-04-25T19:55:19Z app[6e82d525c302e8] cdg [info]Starting clean up.
2023-04-25T19:55:20Z app[6e82d525c302e8] cdg [info][   20.122464] reboot: Restarting system```

Here’s my fly.toml

# fly.toml app configuration file generated for cycle on 2023-04-24T23:38:41+02:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "cycle"
primary_region = "cdg"

[http_service]
  internal_port = 8080
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true

[checks]
  [checks.alive]
    type = "tcp"
    interval = "15s"
    timeout = "2s"
    grace_period = "5s"

[[statics]]
  guest_path = "/app/public"
  url_prefix = "/"

Thanks for sharing! I see a couple of these lines in your logs you pasted:

Could you try flipping this to false and redeploying?

Just tried that and redeployed, still the same problem

Hmm. Are the logs responding with the same error messages?

I don’t see any error message in the logs. Here are the new logs :

023-04-25T20:20:42.919 app[6e82d525c302e8] cdg [info] I, [2023-04-25T20:20:42.917223 #524] INFO -- : [739c37fd-ef60-4c54-bf14-53ea25baa5b7] Started GET "/" for 66.241.125.251 at 2023-04-25 20:20:42 +0000

2023-04-25T20:20:42.919 app[6e82d525c302e8] cdg [info] I, [2023-04-25T20:20:42.918023 #524] INFO -- : [739c37fd-ef60-4c54-bf14-53ea25baa5b7] Processing by ActivitiesController#index as HTML

2023-04-25T20:20:42.919 app[6e82d525c302e8] cdg [info] I, [2023-04-25T20:20:42.918812 #524] INFO -- : [739c37fd-ef60-4c54-bf14-53ea25baa5b7] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms | Allocations: 380)

2023-04-25T20:20:42.939 app[6e82d525c302e8] cdg [info] I, [2023-04-25T20:20:42.939123 #524] INFO -- : [60541467-d954-4a51-b230-3d54383e2afc] Started GET "/users/sign_in" for 66.241.125.251 at 2023-04-25 20:20:42 +0000

2023-04-25T20:20:42.940 app[6e82d525c302e8] cdg [info] I, [2023-04-25T20:20:42.939914 #524] INFO -- : [60541467-d954-4a51-b230-3d54383e2afc] Processing by Devise::SessionsController#new as HTML

2023-04-25T20:20:42.943 app[6e82d525c302e8] cdg [info] I, [2023-04-25T20:20:42.943406 #524] INFO -- : [60541467-d954-4a51-b230-3d54383e2afc] Completed 500 Internal Server Error in 3ms (ActiveRecord: 1.4ms | Allocations: 465)

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] F, [2023-04-25T20:20:42.944130 #524] FATAL -- : [60541467-d954-4a51-b230-3d54383e2afc]

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "users" does not exist

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] LINE 9: WHERE a.attrelid = '"users"'::regclass

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] ^

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] ):

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc]

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/connection_adapters/postgresql/database_statements.rb:19:in `exec'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/connection_adapters/postgresql/database_statements.rb:19:in `block (2 levels) in query'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/connection_adapters/postgresql/database_statements.rb:18:in `block in query'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/connection_adapters/abstract_adapter.rb:765:in `block in log'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/notifications/instrumenter.rb:24:in `instrument'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/connection_adapters/abstract_adapter.rb:756:in `log'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/connection_adapters/postgresql/database_statements.rb:17:in `query'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/connection_adapters/postgresql_adapter.rb:916:in `column_definitions'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/connection_adapters/abstract/schema_statements.rb:116:in `columns'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/connection_adapters/schema_cache.rb:117:in `block in columns'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/connection_adapters/schema_cache.rb:116:in `fetch'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/connection_adapters/schema_cache.rb:116:in `columns'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/connection_adapters/schema_cache.rb:125:in `block in columns_hash'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/connection_adapters/schema_cache.rb:124:in `fetch'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/connection_adapters/schema_cache.rb:124:in `columns_hash'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/model_schema.rb:580:in `load_schema!'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/attributes.rb:264:in `load_schema!'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/encryption/encryptable_record.rb:122:in `load_schema!'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/model_schema.rb:566:in `block in load_schema'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/model_schema.rb:563:in `synchronize'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] n `each' [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/journey/router.rb:32:in `se

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/model_schema.rb:429:in `attribute_types'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/attribute_methods.rb:187:in `_has_attribute?'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/inheritance.rb:60:in `new'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] devise (4.8.1) app/controllers/devise/sessions_controller.rb:11:in `new'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/abstract_controller/base.rb:215:in `process_action'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_controller/metal/rendering.rb:53:in `process_action'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/abstract_controller/callbacks.rb:234:in `block in process_action'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/callbacks.rb:118:in `block in run_callbacks'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actiontext (7.0.4) lib/action_text/rendering.rb:20:in `with_renderer'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actiontext (7.0.4) lib/action_text/engine.rb:69:in `block (4 levels) in <class:Engine>'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/callbacks.rb:127:in `instance_exec'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/callbacks.rb:127:in `block in run_callbacks'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/callbacks.rb:138:in `run_callbacks'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/abstract_controller/callbacks.rb:233:in `process_action'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_controller/metal/rescue.rb:22:in `process_action'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_controller/metal/instrumentation.rb:67:in `block in process_action'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/notifications.rb:206:in `block in instrument'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/notifications/instrumenter.rb:24:in `instrument'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/notifications.rb:206:in `instrument'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_controller/metal/instrumentation.rb:66:in `process_action'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_controller/metal/params_wrapper.rb:259:in `process_action'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activerecord (7.0.4) lib/active_record/railties/controller_runtime.rb:27:in `process_action'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/abstract_controller/base.rb:151:in `process'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionview (7.0.4) lib/action_view/rendering.rb:39:in `process'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_controller/metal.rb:188:in `dispatch'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_controller/metal.rb:251:in `dispatch'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/routing/route_set.rb:32:in `serve'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/routing/mapper.rb:18:in `block in <class:Constraints>'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/routing/mapper.rb:48:in `serve'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/journey/router.rb:50:in `block in serve'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/journey/router.rb:32:in `each'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] ver.rb:443:in `process_client' [60541467-d954-4a51-b230-3d54383e2afc] puma (5.6.5) lib/puma/thread_pool.rb:14

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/routing/route_set.rb:852:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] warden (1.2.9) lib/warden/manager.rb:36:in `block in call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] warden (1.2.9) lib/warden/manager.rb:34:in `catch'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] warden (1.2.9) lib/warden/manager.rb:34:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] rack (2.2.4) lib/rack/tempfile_reaper.rb:15:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] rack (2.2.4) lib/rack/etag.rb:27:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] rack (2.2.4) lib/rack/conditional_get.rb:27:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] rack (2.2.4) lib/rack/head.rb:12:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/http/permissions_policy.rb:38:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/http/content_security_policy.rb:36:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] rack (2.2.4) lib/rack/session/abstract/id.rb:266:in `context'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] rack (2.2.4) lib/rack/session/abstract/id.rb:260:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/middleware/cookies.rb:696:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/callbacks.rb:99:in `run_callbacks'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/middleware/callbacks.rb:26:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/middleware/show_exceptions.rb:26:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] railties (7.0.4) lib/rails/rack/logger.rb:40:in `call_app'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] railties (7.0.4) lib/rails/rack/logger.rb:25:in `block in call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/tagged_logging.rb:99:in `block in tagged'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/tagged_logging.rb:37:in `tagged'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] activesupport (7.0.4) lib/active_support/tagged_logging.rb:99:in `tagged'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] railties (7.0.4) lib/rails/rack/logger.rb:25:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/middleware/remote_ip.rb:93:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/middleware/request_id.rb:26:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] rack (2.2.4) lib/rack/method_override.rb:24:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] rack (2.2.4) lib/rack/runtime.rb:22:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/middleware/executor.rb:14:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/middleware/static.rb:23:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] rack (2.2.4) lib/rack/sendfile.rb:110:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] actionpack (7.0.4) lib/action_dispatch/middleware/host_authorization.rb:131:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] railties (7.0.4) lib/rails/engine.rb:530:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] puma (5.6.5) lib/puma/configuration.rb:252:in `call'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] puma (5.6.5) lib/puma/request.rb:77:in `block in handle_request'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] puma (5.6.5) lib/puma/thread_pool.rb:340:in `with_force_shutdown'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] puma (5.6.5) lib/puma/request.rb:76:in `handle_request'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] puma (5.6.5) lib/puma/server.rb:443:in `process_client'

2023-04-25T20:20:42.944 app[6e82d525c302e8] cdg [info] [60541467-d954-4a51-b230-3d54383e2afc] puma (5.6.5) lib/puma/thread_pool.rb:147:in `block in spawn_thread'

It looks like db:prepare wasn’t run. Can you add the following to your fly.toml and try deploying again?

[deploy]
  release_command = "bin/rails db:prepare"
2 Likes

Thank you, this worked !!!

By the way, now that you have it working you can turn back on auto_stop_machines. @jphenow merely suggested that so that the logs wouldn’t be overwhelmed with the log entries related to starting and stopping the server.

1 Like

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