Defect #35009

db migration failed after updating to r20905

Added by ChunChang Lo about 1 month ago. Updated about 1 month ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution: Affected version:


error message was:
ArgumentError: Missing `secret_key_base` for 'development' environment, set this string with `bin/rails credentials:edit`


#1 Updated by Marius BALTEANU about 1 month 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.

#2 Updated by ChunChang Lo about 1 month ago


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
[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

#3 Updated by Ivan Cenov about 1 month 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).

Also available in: Atom PDF