Since upgrade : uninitialized constant Redmine::I18n

Added by Alexandre Russo about 1 month ago

Since upgrade redmine (package on debian system) i have this error :

Traceback (most recent call last):
    37: from bin/about:4:in `<main>'
    36: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    35: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    34: from /usr/share/redmine/config/environment.rb:5:in `<top (required)>'
    33: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/application.rb:361:in `initialize!'
    32: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:60:in `run_initializers'
    31: from /usr/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
    30: from /usr/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
    29: from /usr/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
    28: from /usr/lib/ruby/2.5.0/tsort.rb:347:in `call'
    27: from /usr/lib/ruby/2.5.0/tsort.rb:347:in `each'
    26: from /usr/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
    25: from /usr/lib/ruby/2.5.0/tsort.rb:415:in `each_strongly_connected_component_from'
    24: from /usr/lib/ruby/2.5.0/tsort.rb:415:in `call'
    23: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:50:in `tsort_each_child'
    22: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:50:in `each'
    21: from /usr/lib/ruby/2.5.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
    20: from /usr/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
    19: from /usr/lib/ruby/2.5.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
    18: from /usr/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
    17: from /usr/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
    16: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:61:in `block in run_initializers'
    15: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:32:in `run'
    14: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:32:in `instance_exec'
    13: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/engine.rb:619:in `block in <class:Engine>'
    12: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/engine.rb:619:in `each'
    11: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
    10: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/engine.rb:662:in `load_config_initializer'
     9: from /var/lib/gems/2.5.0/gems/activesupport-5.2.4.2/lib/active_support/notifications.rb:170:in `instrument'
     8: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/engine.rb:663:in `block in load_config_initializer'
     7: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:55:in `load'
     6: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:55:in `load'
     5: from /usr/share/redmine/config/initializers/10-patches.rb:18:in `<top (required)>'
     4: from /usr/share/redmine/config/initializers/10-patches.rb:19:in `<module:ActiveRecord>'
     3: from /usr/share/redmine/config/initializers/10-patches.rb:20:in `<class:Base>'
     2: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:60:in `load_missing_constant'
     1: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:17:in `allow_bootsnap_retry'
/var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:61:in `block in load_missing_constant': uninitialized constant Redmine::I18n (NameError)

(when i launch RAILS_ENVIRONMENT=production bin/about)

But i have the same error when i try to launch server :

root! vps:/usr/share/redmine# bundle exec rails server webrick -e production
=> Booting WEBrick
=> Rails 5.2.4.2 application starting in production on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
Exiting
Traceback (most recent call last):
    67: from bin/rails:4:in `<main>'
    66: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
    65: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
    64: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
    63: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
    62: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
    61: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/commands.rb:18:in `<top (required)>'
    60: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/command.rb:46:in `invoke'
    59: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/command/base.rb:69:in `perform'
    58: from /var/lib/gems/2.5.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
    57: from /var/lib/gems/2.5.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
    56: from /var/lib/gems/2.5.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
    55: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:142:in `perform'
    54: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:142:in `tap'
    53: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:147:in `block in perform'
    52: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:53:in `start'
    51: from /var/lib/gems/2.5.0/gems/rack-2.2.2/lib/rack/server.rb:311:in `start'
    50: from /var/lib/gems/2.5.0/gems/rack-2.2.2/lib/rack/server.rb:379:in `handle_profiling'
    49: from /var/lib/gems/2.5.0/gems/rack-2.2.2/lib/rack/server.rb:312:in `block in start'
    48: from /var/lib/gems/2.5.0/gems/rack-2.2.2/lib/rack/server.rb:422:in `wrapped_app'
    47: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:27:in `app'
    46: from /var/lib/gems/2.5.0/gems/rack-2.2.2/lib/rack/server.rb:249:in `app'
    45: from /var/lib/gems/2.5.0/gems/rack-2.2.2/lib/rack/server.rb:349:in `build_app_and_options_from_config'
    44: from /var/lib/gems/2.5.0/gems/rack-2.2.2/lib/rack/builder.rb:66:in `parse_file'
    43: from /var/lib/gems/2.5.0/gems/rack-2.2.2/lib/rack/builder.rb:105:in `load_file'
    42: from /var/lib/gems/2.5.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `new_from_string'
    41: from /var/lib/gems/2.5.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `eval'
    40: from config.ru:3:in `block in <main>'
    39: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
    38: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
    37: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
    36: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
    35: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
    34: from /usr/share/redmine/config/environment.rb:5:in `<top (required)>'
    33: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/application.rb:361:in `initialize!'
    32: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:60:in `run_initializers'
    31: from /usr/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
    30: from /usr/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
    29: from /usr/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
    28: from /usr/lib/ruby/2.5.0/tsort.rb:347:in `call'
    27: from /usr/lib/ruby/2.5.0/tsort.rb:347:in `each'
    26: from /usr/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
    25: from /usr/lib/ruby/2.5.0/tsort.rb:415:in `each_strongly_connected_component_from'
    24: from /usr/lib/ruby/2.5.0/tsort.rb:415:in `call'
    23: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:50:in `tsort_each_child'
    22: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:50:in `each'
    21: from /usr/lib/ruby/2.5.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
    20: from /usr/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
    19: from /usr/lib/ruby/2.5.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
    18: from /usr/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
    17: from /usr/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
    16: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:61:in `block in run_initializers'
    15: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:32:in `run'
    14: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/initializable.rb:32:in `instance_exec'
    13: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/engine.rb:619:in `block in <class:Engine>'
    12: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/engine.rb:619:in `each'
    11: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
    10: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/engine.rb:662:in `load_config_initializer'
     9: from /var/lib/gems/2.5.0/gems/activesupport-5.2.4.2/lib/active_support/notifications.rb:170:in `instrument'
     8: from /var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/engine.rb:663:in `block in load_config_initializer'
     7: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:55:in `load'
     6: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:55:in `load'
     5: from /usr/share/redmine/config/initializers/10-patches.rb:18:in `<top (required)>'
     4: from /usr/share/redmine/config/initializers/10-patches.rb:19:in `<module:ActiveRecord>'
     3: from /usr/share/redmine/config/initializers/10-patches.rb:20:in `<class:Base>'
     2: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:60:in `load_missing_constant'
     1: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:17:in `allow_bootsnap_retry'
/var/lib/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:61:in `block in load_missing_constant': uninitialized constant Redmine::I18n (NameError)

Someone know how to fix it ?

Thank you.

Replies (4)

RE: Since upgrade : uninitialized constant Redmine::I18n - Added by Alexandre Russo about 1 month ago

nobody know how to resolve this error ?

RE: Since upgrade : uninitialized constant Redmine::I18n - Added by Marius BALTEANU about 1 month ago

Alexandre Russo wrote:

nobody know how to resolve this error ?

You should ask Debian team because here we don't know for sure how the upgrade works. From the error, maybe the gem was no installed. We can offer you support only for Redmine core standard installation.

RE: Since upgrade : uninitialized constant Redmine::I18n - Added by Alexandre Russo about 1 month ago

just add buster backports repository and it works

thanks

(1-4/4)