Timeout on rails app

Hi there - I get this error when I run fly deploy: Error: timeout reached waiting for healthchecks to pass for machine 90800d5b656168 failed to get VM 90800d5b656168: Get "https://api.machines.dev/v1/apps/app-name/machines/90800d5b656168": net/http: request canceled

When I check the logs, there doesn’t seem to be any error as such:

2023-11-15T17:03:17Z app[90800d5b656168] iad [info] INFO Main child exited normally with code: 1

2023-11-15T17:03:17Z app[90800d5b656168] iad [info] INFO Starting clean up.

2023-11-15T17:03:17Z app[90800d5b656168] iad [info] WARN hallpass exited, pid: 306, status: signal: 15 (SIGTERM)

2023-11-15T17:03:17Z app[90800d5b656168] iad [info]2023/11/15 17:03:17 listening on [fdaa:0:f9c5:a7b:92:abeb:ec00:2]:22 (DNS: [fdaa::3]:53)

2023-11-15T17:03:18Z app[90800d5b656168] iad [info][ 5.540415] reboot: Restarting system

2023-11-15T17:03:18Z runner[90800d5b656168] iad [info]machine has reached its max restart count (10)

can someone help?

is this a new rails app? can you share your fly.toml and some log lines before the app crashed? be sure to remove any secrets like passwords or sensitive information when sharing.

if this is one of the smallest machines my guess is you’re running out memory and configuring swap space will fix it. if that’s the case, adding swap is done by adding swap_size_mb = 1024 # or 2048 or whatever to the top of your fly.toml if it’s not already there. adding swap is referenced in the rails one-pager and the fly.toml configuration docs

swap_size_mb = 1024

if that’s not the case, more logs would be helpful in troubleshooting

1 Like

Nope, this isn’t a new rails app. I’ve successfully deployed it several times. Below is my fly.toml file. The swap size is currently 512. Would I be charged extra if I change it to 1024?

app = "app-name"
primary_region = "iad"
kill_signal = "SIGINT"
kill_timeout = "5s"
swap_size_mb = 512

[experimental]
  auto_rollback = true

[[services]]
  protocol = "tcp"
  internal_port = 3000
  min_machines_running = 0
  processes = ["app"]

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

  [[services.ports]]
    port = 443
    handlers = ["tls", "http"]
  [services.concurrency]
    type = "connections"
    hard_limit = 25
    soft_limit = 20

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

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

This is the error message:

WARNING The app is not listening on the expected address and will not be reachable by fly-proxy.
You can fix this by configuring your app to listen on the following addresses:
  - 0.0.0.0:3000
Found these processes inside the machine with open listening sockets:
  PROCESS        | ADDRESSES                            
-----------------*--------------------------------------
  /.fly/hallpass | [fdaa:0:f9c5:a7b:92:abeb:ec00:2]:22  

Error: timeout reached waiting for healthchecks to pass for machine 90800d5b656168 failed to get VM 90800d5b656168: Get "https://api.machines.dev/v1/apps/app-name/machines/90800d5b656168": net/http: request canceled
note: you can change this timeout with the --wait-timeout flag

These are the log lines:

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:116:in `eval'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:116:in `new_from_string'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:105:in `load_file'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:66:in `parse_file'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:349:in `build_app_and_options_from_config'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:249:in `app'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:422:in `wrapped_app'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:312:in `block in start'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:379:in `handle_profiling'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:311:in `start'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/commands/server/server_command.rb:39:in `start'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/commands/server/server_command.rb:144:in `block in perform'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from <internal:kernel>:90:in `tap'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/commands/server/server_command.rb:135:in `perform'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/thor-1.2.2/lib/thor/command.rb:27:in `run'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invoke_command'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/thor-1.2.2/lib/thor.rb:392:in `dispatch'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/command/base.rb:69:in `perform'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/command.rb:48:in `invoke'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/commands.rb:18:in `<main>'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from <internal:/usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from <internal:/usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /rails/bin/rails:9:in `<main>'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] INFO Main child exited normally with code: 1

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] INFO Starting clean up.

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] WARN hallpass exited, pid: 306, status: signal: 15 (SIGTERM)

2023-11-16T10:53:20Z app[90800d5b656168] iad [info]2023/11/16 10:53:20 listening on [fdaa:0:f9c5:a7b:92:abeb:ec00:2]:22 (DNS: [fdaa::3]:53)

2023-11-16T10:53:21Z app[90800d5b656168] iad [info][ 6.814251] reboot: Restarting system

2023-11-16T10:53:21Z runner[90800d5b656168] iad [info]machine has reached its max restart count (10)

the top of the logs you shared is part of a backtrace from ruby. the very first line of the backtrace will indicate why the rails app is crashing (something like BlahBlahError: something something) can you provide more of the logs?

There you go. Below is the full logs.

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `run'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/initializable.rb:61:in `block in run_initializers'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:228:in `block in tsort_each'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:431:in `each_strongly_connected_component_from'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:349:in `block in each_strongly_connected_component'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:347:in `each'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:347:in `call'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:347:in `each_strongly_connected_component'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:226:in `tsort_each'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:205:in `tsort_each'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/initializable.rb:60:in `run_initializers'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/application.rb:391:in `initialize!'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /rails/config/environment.rb:5:in `<main>'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from config.ru:3:in `require_relative'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from config.ru:3:in `block in <main>'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:116:in `eval'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:116:in `new_from_string'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:105:in `load_file'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:66:in `parse_file'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:349:in `build_app_and_options_from_config'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:249:in `app'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:422:in `wrapped_app'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:312:in `block in start'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:379:in `handle_profiling'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:311:in `start'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/commands/server/server_command.rb:39:in `start'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/commands/server/server_command.rb:144:in `block in perform'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from <internal:kernel>:90:in `tap'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/commands/server/server_command.rb:135:in `perform'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/thor-1.2.2/lib/thor/command.rb:27:in `run'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invoke_command'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/thor-1.2.2/lib/thor.rb:392:in `dispatch'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/command/base.rb:69:in `perform'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/command.rb:48:in `invoke'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/commands.rb:18:in `<main>'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from <internal:/usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from <internal:/usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /rails/bin/rails:9:in `<main>'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info]/usr/local/bundle/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/message_encryptor.rb:198:in `final': OpenSSL::Cipher::CipherError

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/message_encryptor.rb:198:in `_decrypt'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/message_encryptor.rb:154:in `decrypt_and_verify'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/messages/rotator.rb:22:in `decrypt_and_verify'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/encrypted_file.rb:91:in `decrypt'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/encrypted_file.rb:54:in `read'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/encrypted_configuration.rb:21:in `read'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/encrypted_configuration.rb:33:in `config'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/encrypted_configuration.rb:38:in `options'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/core_ext/module/delegation.rb:309:in `method_missing'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/devise-4.9.2/lib/devise/secret_key_finder.rb:24:in `key_exists?'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/devise-4.9.2/lib/devise/secret_key_finder.rb:10:in `find'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/devise-4.9.2/lib/devise/rails.rb:37:in `block in <class:Engine>'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `instance_exec'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `run'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/initializable.rb:61:in `block in run_initializers'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:228:in `block in tsort_each'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:431:in `each_strongly_connected_component_from'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:349:in `block in each_strongly_connected_component'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:347:in `each'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:347:in `call'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:347:in `each_strongly_connected_component'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:226:in `tsort_each'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/3.2.0/tsort.rb:205:in `tsort_each'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/initializable.rb:60:in `run_initializers'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/application.rb:391:in `initialize!'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /rails/config/environment.rb:5:in `<main>'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from config.ru:3:in `require_relative'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from config.ru:3:in `block in <main>'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:116:in `eval'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:116:in `new_from_string'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:105:in `load_file'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:66:in `parse_file'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:349:in `build_app_and_options_from_config'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:249:in `app'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:422:in `wrapped_app'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:312:in `block in start'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:379:in `handle_profiling'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/rack-2.2.8/lib/rack/server.rb:311:in `start'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/commands/server/server_command.rb:39:in `start'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/commands/server/server_command.rb:144:in `block in perform'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from <internal:kernel>:90:in `tap'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/commands/server/server_command.rb:135:in `perform'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/thor-1.2.2/lib/thor/command.rb:27:in `run'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invoke_command'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/thor-1.2.2/lib/thor.rb:392:in `dispatch'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/command/base.rb:69:in `perform'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/command.rb:48:in `invoke'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/railties-6.1.7.6/lib/rails/commands.rb:18:in `<main>'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from <internal:/usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from <internal:/usr/lib/fullstaq-ruby/versions/3.2.2-jemalloc/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /usr/local/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] from /rails/bin/rails:9:in `<main>'

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] INFO Main child exited normally with code: 1

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] INFO Starting clean up.

2023-11-16T10:53:20Z app[90800d5b656168] iad [info] WARN hallpass exited, pid: 306, status: signal: 15 (SIGTERM)

2023-11-16T10:53:20Z app[90800d5b656168] iad [info]2023/11/16 10:53:20 listening on [fdaa:0:f9c5:a7b:92:abeb:ec00:2]:22 (DNS: [fdaa::3]:53)

2023-11-16T10:53:21Z app[90800d5b656168] iad [info][ 6.814251] reboot: Restarting system

2023-11-16T10:53:21Z runner[90800d5b656168] iad [info]machine has reached its max restart count (10)

No. Give that a try.

You’ve got an OpenSSL::Cipher::CipherError, when that happens on boot it’s usually due to encrypted credentials from credentials.yml.enc (see: the rails guide for credentials.yml)

is it possible you have encrypted credentials and ENV["RAILS_MASTER_KEY"] is unset (or set incorrectly)?

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