Rake is failing on Rails 6 deployment.... Help! :-)

Here is the info I am getting near the end of the deployment. Any help would be appreciated!

1 desired, 1 placed, 0 healthy, 1 unhealthy [restarts: 2] [health checks: 1 total]
Failed Instances

Failure #1

Instance
ID PROCESS VERSION REGION DESIRED STATUS HEALTH CHECKS RESTARTS CREATED
6c84c05e app 1 iad run running 1 total 2 40s ago

Recent Events
TIMESTAMP TYPE MESSAGE
2022-09-19T21:51:49Z Received Task received by client
2022-09-19T21:51:49Z Task Setup Building Task Directory
2022-09-19T21:51:56Z Started Task started by client
2022-09-19T21:52:02Z Terminated Exit Code: 1
2022-09-19T21:52:02Z Restarting Task restarting in 1.241295779s
2022-09-19T21:52:10Z Started Task started by client
2022-09-19T21:52:18Z Terminated Exit Code: 1
2022-09-19T21:52:18Z Restarting Task restarting in 1.139621468s
2022-09-19T21:52:30Z Started Task started by client

2022-09-19T21:52:35Z [info]rails aborted!
2022-09-19T21:52:35Z [info]Command failed with status (1): [bin/rails server…]
2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/file_utils.rb:67:in block in create_shell_runner' 2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/file_utils.rb:57:in sh’
2022-09-19T21:52:35Z [info]/app/lib/tasks/fly.rake:21:in block (2 levels) in <main>' 2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in block in execute’
2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in each' 2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in execute’
2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:219:in block in invoke_with_call_chain' 2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in synchronize’
2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in invoke_with_call_chain' 2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:188:in invoke’
2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:160:in invoke_task' 2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in block (2 levels) in top_level’
2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in each' 2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in block in top_level’
2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:125:in run_with_threads' 2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:110:in top_level’
2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7/lib/rails/commands/rake/rake_command.rb:24:in block (2 levels) in perform' 2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in standard_exception_handling’
2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7/lib/rails/commands/rake/rake_command.rb:24:in block in perform' 2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in with_application’
2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7/lib/rails/commands/rake/rake_command.rb:18:in perform' 2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7/lib/rails/command.rb:50:in invoke’
2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7/lib/rails/commands.rb:18:in <main>' 2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in require’
2022-09-19T21:52:35Z [info]/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require’
2022-09-19T21:52:35Z [info]Tasks: TOP => fly:server
2022-09-19T21:52:35Z [info](See full trace by running task with --trace)
2022-09-19T21:52:36Z [info]Starting clean up.
→ v1 failed - Failed due to unhealthy allocations - no stable job version to auto revert to and deploying as v2

→ Troubleshooting guide at Troubleshooting your Deployment · Fly Docs
Error abort

Thank you in advance!
Mike

The key part of this stack traceback is that ‘bin/rails server’ exited with a return code of 1.

Can you run the following commands to see if they provide any more insight?

fly status
fly logs

In the latter, I would expect to see lines like

[info]bin/rails server
[info]=> Booting Puma
[info]=> Rails 7.0.4 application starting in production

Found the issue… there was a dependency missing for a gem. I had to add

gem ‘net-smtp’, require: false
gem ‘net-imap’, require: false
gem ‘net-pop’, require: false

to get it to deploy. Thanks so much for your assistance.

Mike