Deploy failed Rails 7 with Devise 4.9.2

I have a problem with the application, when I deploy to render, it gives me an error that I haven’t figured out. Maybe you have a suggestion. It doesn’t seem to like Turbo from Rails 7 (Local works fine): This is the error: Apr 6 07:20:08 PM Installing rails 7.0.4.3
Apr 6 07:20:12 PM Fetching bootsnap 1.16.0
Apr 6 07:20:12 PM Installing bootsnap 1.16.0 with native extensions
Apr 6 07:20:19 PM Complete bundles! 16 Gemfile dependencies, 60 gems now installed.
Apr 6 07:20:19 PM Gems in the groups ‘development’ and ‘test’ were not installed.
Apr 6 07:20:19 PM Bundled gems are installed into /opt/render/project/.gems
Apr 6 07:20:19 PM Post-install message from devise:
Apr 6 07:20:19 PM
Apr 6 07:20:19 PM [DEVISE] Please review the [changelog] and [upgrade guide] for more info on Hotwire / Turbo integration.
Apr 6 07:20:19 PM
Apr 6 07:20:19 PM [changelog] devise/CHANGELOG.md at main · heartcombo/devise · GitHub
Apr 6 07:20:19 PM [upgrade guide] How To: Upgrade to Devise 4.9.0 [Hotwire Turbo integration] · heartcombo/devise Wiki · GitHub
Apr 6 07:20:20 PM rake aborted!
Apr 6 07:20:20 PM ActiveSupport::MessageEncryptor::InvalidMessage: ActiveSupport::MessageEncryptor::InvalidMessage
Apr 6 07:20:20 PM /opt/render/project/.gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/message_encryptor.rb:209:in `rescue in _decrypt’

From the error message, it looks like rails is trying to initialize the encrypted secrets on app boot and the decryption key is missing or wrong.

That’s been my experience with that particular error message. Make sure the pasted value is correct, I had an embarrassing few hours running in circles, when I was accidentally pasting an extra character.

it’s alright now. MASTER_KEY was written incorrectly and I was getting this error. Thank you very much

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