Trying to deploy rails 7 but have error with credentials

I have a Rails 7 application and have already updated the credentials. I copied the value of master.key and put it in the render variable. However, I’m still seeing this error.

==> Deploying...
==> No open ports detected, continuing to scan...
==> Docs on specifying a port: https://render.com/docs/web-services#port-binding
bin/rails aborted!
ActiveSupport::MessageEncryptor::InvalidMessage: ActiveSupport::MessageEncryptor::InvalidMessage
/rails/config/environment.rb:5:in <main>'
Tasks: TOP => db:prepare => db:load_config => environment
(See full trace by running task with --trace)
==> Exited with status 1
==> Common ways to troubleshoot your deploy: https://docs.render.com/troubleshooting-deploys
bin/rails aborted!
ActiveSupport::MessageEncryptor::InvalidMessage: ActiveSupport::MessageEncryptor::InvalidMessage
/rails/config/environment.rb:5:in <main>'
Tasks: TOP => db:prepare => db:load_config => environment
(See full trace by running task with --trace)

Hi,

I’ve replied to the ticket you also opened. The ActiveSupport::MessageEncryptor::InvalidMessage error is usually related to a missing/incorrect RAILS_MASTER_KEY.

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