Build Failed /opt/render/project/src/config/environment.rb:5:in `<main>'

Hi!

I’m trying to deploy my application following the “4.Deploy to Render” documentation. But it is showing this error.

Previously the application was on Heroku.

image

This is the contento on my environment.rb:

# Load the Rails application.
require_relative "application"

# Initialize the Rails application.
Rails.application.initialize!

The thrown error looks to be due to ActiveSupport::MessageEncryptor::InvalidMessage.

Other community members have encountered this error in the past. You might find some insight from those posts.

And a longer thread from a GitHub Issue on the Rails repo (possibly an older version, but looks like it may contain guidance that’s still relevant):

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