Project

General

Profile

Actions

Defect #35009

closed

db migration failed after updating to r20905

Added by ChunChang (Nagaharu) Lo about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

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

Actions #1

Updated by Marius BÄ‚LTEANU about 3 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.

Actions #2

Updated by ChunChang (Nagaharu) Lo about 3 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
Actions #3

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

Actions #4

Updated by ChunChang (Nagaharu) Lo almost 3 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.

Actions #5

Updated by Go MAEDA almost 3 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.

Actions

Also available in: Atom PDF