Project

General

Profile

Actions

Defect #19185

closed

Update Install/Upgrade guide for 3.x version and get gid of DEPRECATION WARNING: You didn't set config.secret_key_base

Defect #19185: Update Install/Upgrade guide for 3.x version and get gid of DEPRECATION WARNING: You didn't set config.secret_key_base

Added by Pavel Potcheptsov almost 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Category:
Documentation
Target version:
Resolution:
Affected version:

Description

Need to add section for 3.x install and upgrade to 3.x where change such text

Run the following command from your new Redmine root directory:

bundle exec rake generate_secret_token

This will generate a file (config/initializers/secret_token.rb) with a random secret used to secure session data.

to something like:
- follow official guide
- or just create secrets.yml file with such content:
production:
  secret_key_base:

- run rake secret and copy/paste output after secret_key_base:
Otherwise you'll get DEPRECATION WARNING: You didn't set config.secret_key_base in your production.log


Related issues 1 (0 open — 1 closed)

Related to Redmine - Patch #20292: Ignore Secrets.yml fileClosedActions

Updated by Toshi MARUYAMA over 11 years ago Actions #1

  • Target version set to 3.0.2

Updated by Toshi MARUYAMA over 11 years ago Actions #2

  • Subject changed from Update Wiki Install/Upgrade guide for 3.x version and get gid of DEPRECATION WARNING: You didn't set config.secret_key_base to Update Install/Upgrade guide for 3.x version and get gid of DEPRECATION WARNING: You didn't set config.secret_key_base

Not only wiki but also source:tags/3.0.1/doc .

Updated by Olivier Houdas over 11 years ago Actions #3

Note: secrets.yml should be in /config (whereas secret_token.rb was in /config/initializers)

Updated by Jean-Philippe Lang over 11 years ago Actions #4

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang

rake generate_secret_token was changed to generate the config.secret_key_base, it's fine for new installs. The problem occurs when upgrading from 2.x. Additional information is added the docs in r14217.
Thanks for pointing this out.

Updated by Toshi MARUYAMA over 11 years ago Actions #6

Actions

Also available in: PDF Atom