Project

General

Profile

Actions

Defect #33270

closed

Failed database migration when uprading to version 4.1.1

Added by Ivan Cenov over 4 years ago. Updated over 4 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

While upgrading to Redmine 4.1.1 I encountered following problem:

E:\data\redmine>bundle exec rake db:migrate RAILS_ENV=production
rake aborted!
ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `rails credentials:edit`
E:/data/redmine/config/environment.rb:16:in `<top (required)>'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)

StackOverflow has following thread about this problem : https://stackoverflow.com/questions/51466887/rails-how-to-fix-missing-secret-key-base-for-production-environment

Note, that bundle install upgraded rails to version 5.2.4.2.

I suppose that something has to be done in Redmine, I don't know what exactly. Should this be done on upgrading stage or it has to be added in Redmine and downloaded with the Redmine zip archive?

Actions #1

Updated by Ivan Cenov over 4 years ago

  • Status changed from New to Resolved

The problem was solved. I forgot to execute

bundle exec rake generate_secret_token

Please close this issue.

Actions #2

Updated by Marius BÄ‚LTEANU over 4 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid

Ivan Cenov wrote:

The problem was solved. I forgot to execute

[...]

Please close this issue.

Thanks for feedback.

Actions

Also available in: Atom PDF