Defect #35009
closed
db migration failed after updating to r20905
Added by ChunChang (Nagaharu) Lo about 4 years ago.
Updated almost 4 years ago.
Description
error message was:
ArgumentError: Missing `secret_key_base` for 'development' environment, set this string with `bin/rails credentials:edit`
Do you have the secret token generated? It should be in config/initializers/secret_token.rb
. If not, you can run bundle exec rake generate_secret_token
.
Hi,
In fact, I do have a secret_token.rb file.
It was dated back to 2012.
Should I run the command, bundle exec rake generate_secret_token, again?
[redmine@centos8 redmine]$ pwd
/var/www/html/redmine
[redmine@centos8 redmine]$ ls -l config/initializers/secret_token.rb
-rw-r--r--. 1 redmine redmine 671 Apr 26 2012 config/initializers/secret_token.rb
You are migrating in 'development' environment. Is it this what you want? May be you have to use 'production' environment (if you are upgrading a production installation).
- Status changed from New to Resolved
sorry for the late reply.
i removed secret_token.rb and regenerated it, then the error disappeared.
thanks for your help.
- Status changed from Resolved to Closed
- Resolution set to Invalid
ChunChang Lo wrote:
sorry for the late reply.
i removed secret_token.rb and regenerated it, then the error disappeared.
thanks for your help.
Thank you for your feedback. Closing.
Also available in: Atom
PDF