I’ve updated my application from Ruby 2.7.7 to Ruby 3.0.5 and from Rails 5.2.0 to Rails 6.0.1.
After updating various Gems and fixing a variety of things I have it running well on my test server but when I try to load the new version on Heroku I get ‘Detecting rails configuration failed’ and it won’t run. I’m guessing there’s something in the configuration files that needs to be updated but I need some guidance on where to look next.
Here’s the last part of the Heroku build (where it appears to deploy it) followed by the tail from the logs.
remote: Cleaning assets
remote: Running: rake assets:clean
remote: I, [2023-01-09T21:32:10.786716 #2870] INFO -- : Removed bootstrap_and_overrides-f7c23a19b2ec05622b15f940ca67f253265408eb4a2f3ca660f5b033ad48e245.css
remote: I, [2023-01-09T21:32:10.788253 #2870] INFO -- : Removed application-1010b7967d5a1017bdba8493f3b3d3e9075bc5b424b558ecabd87213398cd92f.css
remote: I, [2023-01-09T21:32:10.789685 #2870] INFO -- : Removed agents-5caf8c2fd005858f766d149bf7d2aa8be7855a86b0193a5a1fbb896a228ab4b2.js
remote: I, [2023-01-09T21:32:10.791267 #2870] INFO -- : Removed orders-23fa71cb39213c229aeafcb3a7c1c1ba59ce53eb852dfa5cf0144e4e70b24b97.js
remote: I, [2023-01-09T21:32:10.792582 #2870] INFO -- : Removed application-0050256351ac4c8249013d67374531282699b38524ebd667a3414ee861d5676d.js
remote: -----> Detecting rails configuration
remote:
remote: ###### WARNING:
remote:
remote: Detecting rails configuration failed
remote: set HEROKU_DEBUG_RAILS_RUNNER=1 to debug
remote:
remote:
remote: -----> Discovering process types
remote: Procfile declares types -> web, worker
remote: Default types for buildpack -> console, rake
remote:
remote: -----> Compressing...
remote: Done: 115M
remote: -----> Launching...
remote: Released v1027
remote: https://my-dialog-one.herokuapp.com/ deployed to Heroku
remote:
remote: This app is using the Heroku-20 stack, however a newer stack is available.
remote: To upgrade to Heroku-22, see:
remote: https://devcenter.heroku.com/articles/upgrading-to-the-latest-stack
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/my-dialog-one.git
6342203b..f36589c2 master -> master
mpipkorn@Cherwin:~/rails_projects/release/dialog_one$ heroku logs --tail
› Warning: heroku update available from 7.60.1 to 7.66.2.
2023-01-09T21:33:26.326596+00:00 app[worker.1]: ** [NewRelic][2023-01-09 21:33:26 +0000 worker.1 (4)] INFO : Finished instrumentation
2023-01-09T21:33:26.531902+00:00 app[worker.1]: ** [NewRelic][2023-01-09 21:33:26 +0000 worker.1 (4)] INFO : Reporting to: https://rpm.newrelic.com/accounts/1110950/applications/9340224
2023-01-09T21:33:27.159431+00:00 app[worker.1]: []
2023-01-09T21:33:27.590128+00:00 app[web.1]: Abort testing: Your Rails environment is running in production mode!
2023-01-09T21:33:27.590180+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Starting the New Relic agent version 8.14.0 in "production" environment.
2023-01-09T21:33:27.590185+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : To prevent agent startup add a NEW_RELIC_AGENT_ENABLED=false environment variable or modify the "production" section of your newrelic.yml.
2023-01-09T21:33:27.590186+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Reading configuration from config/newrelic.yml (/app)
2023-01-09T21:33:27.590187+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Environment: production
2023-01-09T21:33:27.590187+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Dispatcher: puma
2023-01-09T21:33:27.590187+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Application: My Application
2023-01-09T21:33:27.590188+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Deferring startup of agent reporting thread because puma may fork.
2023-01-09T21:33:27.590188+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing ActiveJob instrumentation
2023-01-09T21:33:27.590189+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing notifications based Active Record instrumentation
2023-01-09T21:33:27.590189+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing ActiveStorage instrumentation
2023-01-09T21:33:27.590189+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing ActiveSupport::Logger instrumentation
2023-01-09T21:33:27.590189+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing New Relic supported ActiveSupportLogger instrumentation using Prepend
2023-01-09T21:33:27.590189+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing Curb instrumentation
2023-01-09T21:33:27.590190+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing New Relic supported Easy instrumentation using Prepend
2023-01-09T21:33:27.590190+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing New Relic supported Multi instrumentation using Prepend
2023-01-09T21:33:27.590190+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing middleware-based Excon instrumentation
2023-01-09T21:33:27.590190+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing Logger instrumentation
2023-01-09T21:33:27.590191+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing New Relic supported Logger instrumentation using Prepend
2023-01-09T21:33:27.590191+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing Net:HTTP Wrappers
2023-01-09T21:33:27.590191+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing New Relic supported NetHTTP instrumentation using MethodChaining
2023-01-09T21:33:27.590191+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing New Relic supported Rack instrumentation using Prepend
2023-01-09T21:33:27.590191+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing New Relic supported Rack instrumentation using Prepend
2023-01-09T21:33:27.590192+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing New Relic supported URLMap instrumentation using Prepend
2023-01-09T21:33:27.590192+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing Rails 3+ middleware instrumentation
2023-01-09T21:33:27.590192+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing Redis Instrumentation
2023-01-09T21:33:27.590192+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing New Relic supported Redis instrumentation using Prepend
2023-01-09T21:33:27.590192+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing Sidekiq instrumentation
2023-01-09T21:33:27.590192+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing Thread Instrumentation
2023-01-09T21:33:27.590193+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing New Relic supported MonitoredThread instrumentation using Prepend
2023-01-09T21:33:27.590193+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing Tilt instrumentation
2023-01-09T21:33:27.590193+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing New Relic supported Tilt instrumentation using Prepend
2023-01-09T21:33:27.590193+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing notifications based Action Cable instrumentation
2023-01-09T21:33:27.590193+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing notifications based Action Controller instrumentation
2023-01-09T21:33:27.590193+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Installing notification based Action View instrumentation
2023-01-09T21:33:27.590193+00:00 app[web.1]: ** [NewRelic][2023-01-09 21:33:25 +0000 web.1 (4)] INFO : Finished instrumentation
2023-01-09T21:33:27.590195+00:00 app[web.1]: []
2023-01-09T21:33:27.590195+00:00 app[web.1]: [4] ! Unable to load application: SystemExit: Abort testing: Your Rails environment is running in production mode!
2023-01-09T21:33:27.728183+00:00 heroku[web.1]: Process exited with status 1
2023-01-09T21:33:27.796943+00:00 heroku[web.1]: State changed from starting to crashed
2023-01-09T21:33:27.826762+00:00 app[worker.1]: Abort testing: Your Rails environment is running in production mode!
2023-01-09T21:33:27.827042+00:00 app[worker.1]: ** [NewRelic][2023-01-09 21:33:27 +0000 worker.1 (4)] INFO : Starting Agent shutdown
2023-01-09T21:33:28.141879+00:00 heroku[worker.1]: Process exited with status 1
2023-01-09T21:33:28.187020+00:00 heroku[worker.1]: State changed from up to crashed
2023-01-09T21:33:41.000000+00:00 app[heroku-postgres]: source=HEROKU_POSTGRESQL_BLACK addon=postgresql-slippery-1471 sample#current_transaction=128271 sample#db_size=64830599bytes sample#tables=105 sample#active-connections=11 sample#waiting-connections=0 sample#index-cache-hit-rate=0.99984 sample#table-cache-hit-rate=0.99997 sample#load-avg-1m=0 sample#load-avg-5m=0 sample#load-avg-15m=0 sample#read-iops=0 sample#write-iops=0.22449 sample#tmp-disk-used=543600640 sample#tmp-disk-available=72435191808 sample#memory-total=8038316kB sample#memory-free=2287912kB sample#memory-cached=4691872kB sample#memory-postgres=22348kB sample#wal-percentage-used=0.06502552817748675
2023-01-09T21:33:43.895111+00:00 heroku[web.2]: Starting process with command `bundle exec puma -C config/puma.rb`
2023-01-09T21:33:45.101204+00:00 app[web.2]: [4] Puma starting in cluster mode...
2023-01-09T21:33:45.101232+00:00 app[web.2]: [4] * Puma version: 6.0.2 (ruby 3.0.5-p211) ("Sunflower")
2023-01-09T21:33:45.101232+00:00 app[web.2]: [4] * Min threads: 1
2023-01-09T21:33:45.101234+00:00 app[web.2]: [4] * Max threads: 1
2023-01-09T21:33:45.101251+00:00 app[web.2]: [4] * Environment: production
2023-01-09T21:33:45.101268+00:00 app[web.2]: [4] * Master PID: 4
2023-01-09T21:33:45.101283+00:00 app[web.2]: [4] * Workers: 2
2023-01-09T21:33:45.101306+00:00 app[web.2]: [4] * Restarts: (✔) hot (✖) phased
2023-01-09T21:33:45.101320+00:00 app[web.2]: [4] * Preloading application
2023-01-09T21:33:49.857555+00:00 app[web.2]: Abort testing: Your Rails environment is running in production mode!
2023-01-09T21:33:49.857628+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Starting the New Relic agent version 8.14.0 in "production" environment.
2023-01-09T21:33:49.857628+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : To prevent agent startup add a NEW_RELIC_AGENT_ENABLED=false environment variable or modify the "production" section of your newrelic.yml.
2023-01-09T21:33:49.857629+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Reading configuration from config/newrelic.yml (/app)
2023-01-09T21:33:49.857629+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Environment: production
2023-01-09T21:33:49.857629+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Dispatcher: puma
2023-01-09T21:33:49.857630+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Application: My Application
2023-01-09T21:33:49.857630+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Deferring startup of agent reporting thread because puma may fork.
2023-01-09T21:33:49.857630+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing ActiveJob instrumentation
2023-01-09T21:33:49.857630+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing notifications based Active Record instrumentation
2023-01-09T21:33:49.857631+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing ActiveStorage instrumentation
2023-01-09T21:33:49.857631+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing ActiveSupport::Logger instrumentation
2023-01-09T21:33:49.857631+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing New Relic supported ActiveSupportLogger instrumentation using Prepend
2023-01-09T21:33:49.857631+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing Curb instrumentation
2023-01-09T21:33:49.857632+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing New Relic supported Easy instrumentation using Prepend
2023-01-09T21:33:49.857632+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing New Relic supported Multi instrumentation using Prepend
2023-01-09T21:33:49.857632+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing middleware-based Excon instrumentation
2023-01-09T21:33:49.857632+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing Logger instrumentation
2023-01-09T21:33:49.857632+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing New Relic supported Logger instrumentation using Prepend
2023-01-09T21:33:49.857632+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing Net:HTTP Wrappers
2023-01-09T21:33:49.857633+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing New Relic supported NetHTTP instrumentation using MethodChaining
2023-01-09T21:33:49.857633+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing New Relic supported Rack instrumentation using Prepend
2023-01-09T21:33:49.857633+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing New Relic supported Rack instrumentation using Prepend
2023-01-09T21:33:49.857633+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing New Relic supported URLMap instrumentation using Prepend
2023-01-09T21:33:49.857633+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing Rails 3+ middleware instrumentation
2023-01-09T21:33:49.857633+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing Redis Instrumentation
2023-01-09T21:33:49.857634+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing New Relic supported Redis instrumentation using Prepend
2023-01-09T21:33:49.857634+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing Sidekiq instrumentation
2023-01-09T21:33:49.857634+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing Thread Instrumentation
2023-01-09T21:33:49.857634+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing New Relic supported MonitoredThread instrumentation using Prepend
2023-01-09T21:33:49.857634+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing Tilt instrumentation
2023-01-09T21:33:49.857636+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing New Relic supported Tilt instrumentation using Prepend
2023-01-09T21:33:49.857636+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing notifications based Action Cable instrumentation
2023-01-09T21:33:49.857636+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing notifications based Action Controller instrumentation
2023-01-09T21:33:49.857636+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Installing notification based Action View instrumentation
2023-01-09T21:33:49.857637+00:00 app[web.2]: ** [NewRelic][2023-01-09 21:33:48 +0000 web.2 (4)] INFO : Finished instrumentation
2023-01-09T21:33:49.857637+00:00 app[web.2]: []
2023-01-09T21:33:49.857637+00:00 app[web.2]: [4] ! Unable to load application: SystemExit: Abort testing: Your Rails environment is running in production mode!
2023-01-09T21:33:50.017411+00:00 heroku[web.2]: Process exited with status 1
2023-01-09T21:33:50.082930+00:00 heroku[web.2]: State changed from starting to crashed
2023-01-09T21:33:51.411767+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/orders/8632?locale=en" host=my.dialog-one.com request_id=63af2bae-541c-4112-9f59-916b39522969 fwd="63.228.0.79" dyno= connect= service= status=503 bytes= protocol=https
2023-01-09T21:33:51.605410+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my.dialog-one.com request_id=9734b43e-cb6e-47d8-b2a4-d0d2e1a33363 fwd="63.228.0.79" dyno= connect= service= status=503 bytes= protocol=https