Defect #35009
closeddb migration failed after updating to r20905
0%
Description
error message was:
ArgumentError: Missing `secret_key_base` for 'development' environment, set this string with `bin/rails credentials:edit`
Updated by Marius BĂLTEANU about 4 years ago
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
.
Updated by ChunChang (Nagaharu) Lo about 4 years ago
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
Updated by Ivan Cenov about 4 years ago
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).
Updated by ChunChang (Nagaharu) Lo almost 4 years ago
- 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.
Updated by Go MAEDA almost 4 years ago
- 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.