Project

General

Profile

Actions

Defect #35005

closed

RuntimeError "Couldn't find Active Storage configuration" is raised at startup

Added by Go MAEDA over 3 years ago. Updated over 3 years ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Trying to run Redmine in production mode results in the error "Couldn't find Active Storage configuration in /path/to/redmine/config/storage.yml (RuntimeError)"

$ bin/rails s -e production
=> Booting Puma
=> Rails 6.1.3.1 application starting in production 
=> Run `bin/rails server --help` for more startup options
Exiting
Traceback (most recent call last):
.
.
.
(snip)
.
.
.
/path/to/gems/ruby/2.7.0/gems/activestorage-6.1.3.1/lib/active_storage/engine.rb:121:in `block (2 levels) in <class:Engine>': Couldn't find Active Storage configuration in /path/to/redmine/config/storage.yml (RuntimeError)

Related issues

Related to Redmine - Feature #29914: Migrate to Rails 6.1 with Zeitwerk autoloadingClosedGo MAEDA

Actions
Has duplicate Redmine - Defect #35010: redmine failed to start after updating to r20905Closed

Actions
Actions #1

Updated by Go MAEDA over 3 years ago

  • Target version set to 5.0.0

We can fix this by making the following change. Redmine currently does not use active_storage, so commenting out this line is no harm at all.

diff --git a/config/application.rb b/config/application.rb
index 89d4fc1ca..dc8d5f89d 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -7,7 +7,7 @@ require 'rails'
 require 'active_model/railtie'
 require 'active_job/railtie'
 require 'active_record/railtie'
-require 'active_storage/engine'
+# require 'active_storage/engine'
 require 'action_controller/railtie'
 require 'action_mailer/railtie'
 require 'action_view/railtie'
Actions #2

Updated by Go MAEDA over 3 years ago

  • Related to Feature #29914: Migrate to Rails 6.1 with Zeitwerk autoloading added
Actions #3

Updated by Marius BĂLTEANU over 3 years ago

  • Has duplicate Defect #35010: redmine failed to start after updating to r20905 added
Actions #4

Updated by Marius BĂLTEANU over 3 years ago

Looks good to me.

Actions #5

Updated by Go MAEDA over 3 years ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Target version deleted (5.0.0)
  • Resolution set to Fixed

Committed the fix as a part of #29914.

Actions

Also available in: Atom PDF