Generally this means that there is a problem with your RAILS_MASTER_KEY
. It is a common initial setup problem, but once it works it tends to keep working.
The following might fix it:
fly secrets set RAILS_MASTER_KEY=$(cat config/master.key)
(Non bash, non WSL2 windows users will need to replace the value after the =
sign with the contents of config\master.key
)
If that doesn’t work, things to check:
- Does
bin/rails credentials:edit
work? - Do you have a
config/credentials/production.key
?