RuntimeError "Couldn't find Active Storage configuration" is raised at startup
|Assignee:||Go MAEDA||% Done:|
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 220.127.116.11 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-18.104.22.168/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)
- 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'