I upgraded from redmine-3.2.8 to redmine-3.4.4 and now Redmine does not start. First thing was wrong gem version check for mail in Gemfile: -gem "mail", "~> 2.6.4" +gem "mail", ">= 2.6.4" Otherwise it faild to start with this error: /usr/local/lib/ruby/gems/2.4/gems/bundler-1.16.1/lib/bundler/resolver.rb:289:in 'block in verify_gemfile_dependencies_are_found!': Could not find gem 'mail (~> 2.6.4)' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound) After above fix it still cannot be started: /usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- redcloth3 (LoadError) from /usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `block in require' from /usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in `load_dependency' from /usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require' from /usr/local/www/redmine/plugins/redmine_wiki_extensions/init.rb:22:in `<top (required)>' from /usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require' from /usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `block in require' from /usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in `load_dependency' from /usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require' from /usr/local/www/redmine/lib/redmine/plugin.rb:155:in `block in load' from /usr/local/www/redmine/lib/redmine/plugin.rb:146:in `each' from /usr/local/www/redmine/lib/redmine/plugin.rb:146:in `load' from /usr/local/www/redmine/config/initializers/30-redmine.rb:21:in `<top (required)>' from /usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in `load' from /usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in `block in load' from /usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in `load_dependency' from /usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in `load' from /usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/engine.rb:652:in `block in load_config_initializer' from /usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument' from /usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/engine.rb:651:in `load_config_initializer' from /usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>' from /usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/engine.rb:615:in `each' from /usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/engine.rb:615:in `block in <class:Engine>' from /usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/initializable.rb:30:in `instance_exec' from /usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/initializable.rb:30:in `run' from /usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/initializable.rb:55:in `block in run_initializers' from /usr/local/lib/ruby/2.4/tsort.rb:228:in `block in tsort_each' from /usr/local/lib/ruby/2.4/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component' from /usr/local/lib/ruby/2.4/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from' from /usr/local/lib/ruby/2.4/tsort.rb:431:in `each_strongly_connected_component_from' from /usr/local/lib/ruby/2.4/tsort.rb:421:in `block in each_strongly_connected_component_from' from /usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/initializable.rb:44:in `each' from /usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/initializable.rb:44:in `tsort_each_child' from /usr/local/lib/ruby/2.4/tsort.rb:415:in `call' from /usr/local/lib/ruby/2.4/tsort.rb:415:in `each_strongly_connected_component_from' from /usr/local/lib/ruby/2.4/tsort.rb:349:in `block in each_strongly_connected_component' from /usr/local/lib/ruby/2.4/tsort.rb:347:in `each' from /usr/local/lib/ruby/2.4/tsort.rb:347:in `call' from /usr/local/lib/ruby/2.4/tsort.rb:347:in `each_strongly_connected_component' from /usr/local/lib/ruby/2.4/tsort.rb:226:in `tsort_each' from /usr/local/lib/ruby/2.4/tsort.rb:205:in `tsort_each' from /usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/initializable.rb:54:in `run_initializers' from /usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/application.rb:352:in `initialize!' from /usr/local/www/redmine/config/environment.rb:14:in `<top (required)>' from /usr/local/lib/ruby/site_ruby/2.4/rubygems/core_ext/kernel_require.rb:59:in `require' from /usr/local/lib/ruby/site_ruby/2.4/rubygems/core_ext/kernel_require.rb:59:in `require' from /usr/local/www/redmine/config.ru:3:in `block in <main>' from /usr/local/lib/ruby/gems/2.4/gems/rack-1.6.8/lib/rack/builder.rb:55:in `instance_eval' from /usr/local/lib/ruby/gems/2.4/gems/rack-1.6.8/lib/rack/builder.rb:55:in `initialize' from /usr/local/www/redmine/config.ru:1:in `new' from /usr/local/www/redmine/config.ru:1:in `<main>' from /usr/local/lib/ruby/gems/2.4/gems/thin-1.7.2/lib/rack/adapter/loader.rb:33:in `eval' from /usr/local/lib/ruby/gems/2.4/gems/thin-1.7.2/lib/rack/adapter/loader.rb:33:in `load' from /usr/local/lib/ruby/gems/2.4/gems/thin-1.7.2/lib/rack/adapter/loader.rb:42:in `for' from /usr/local/lib/ruby/gems/2.4/gems/thin-1.7.2/lib/thin/controllers/controller.rb:170:in `load_adapter' from /usr/local/lib/ruby/gems/2.4/gems/thin-1.7.2/lib/thin/controllers/controller.rb:74:in `start' from /usr/local/lib/ruby/gems/2.4/gems/thin-1.7.2/lib/thin/runner.rb:203:in `run_command' from /usr/local/lib/ruby/gems/2.4/gems/thin-1.7.2/lib/thin/runner.rb:159:in `run!' from /usr/local/lib/ruby/gems/2.4/gems/thin-1.7.2/bin/thin:6:in `<top (required)>' from /usr/local/bin/thin:23:in `load' from /usr/local/bin/thin:23:in `<main>' I cannot fix this problem as I am not a ruby person.
I made this change # vi /usr/local/www/redmine/plugins/redmine_wiki_extensions/init.rb #require 'redcloth3' require 'redmine/wiki_formatting/textile/redcloth3.rb' Now Redmine starts but I don't think this is the right way to fix it. Something has changed. Previously, with older Redmine, the redcloth3.rb lib was in path /usr/local/www/redmine/lib/redcloth3.rb In Redmine 3.4.4 it is located in /usr/local/www/redmine/lib/redmine/wiki_formatting/textile/redcloth3.rb But /usr/local/www/redmine/plugins/redmine_wiki_extensions/init.rb does not use this path. What is the proper way to fix it?
The mail gem issue has been fixed a while ago. The extension issue is not a port bug, that file is not installed by a port/pkg.