Project

General

Profile

Actions

Bug #35755

closed

Foreman service startup error

Added by Ruediger Mueck over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
Rails
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Hi,
just out of the blue our Foreman service is not starting anymore.

Environment:
  • OS: RHEL 8.5 (Ootpa)
  • Foreman: foreman-3.3.0-1.el8.noarch

# /usr/bin/ruby /usr/share/foreman/bin/rails server --environment=production

We get the following output:


=> Booting Puma
=> Rails 6.0.4.7 application starting in production
=> Run `rails server --help` for more startup options
Exiting
Traceback (most recent call last):
2: from /usr/share/foreman/bin/rails:9:in `<main>'
1: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- rails/commands (LoadError)
77: from /usr/share/foreman/bin/rails:9:in `<main>'
76: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:147:in `require'
75: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:158:in `rescue in require'
74: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:158:in `require'
73: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/commands.rb:18:in `<top (required)>'
72: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/command.rb:46:in `invoke'
71: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/command/base.rb:69:in `perform'
70: from /usr/share/gems/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
69: from /usr/share/gems/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
68: from /usr/share/gems/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
67: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/commands/server/server_command.rb:138:in `perform'
66: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/commands/server/server_command.rb:138:in `tap'
65: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/commands/server/server_command.rb:147:in `block in perform'
64: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/commands/server/server_command.rb:39:in `start'
63: from /usr/share/gems/gems/rack-2.2.3/lib/rack/server.rb:311:in `start'
62: from /usr/share/gems/gems/rack-2.2.3/lib/rack/server.rb:379:in `handle_profiling'
61: from /usr/share/gems/gems/rack-2.2.3/lib/rack/server.rb:312:in `block in start'
60: from /usr/share/gems/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app'
59: from /usr/share/gems/gems/rack-2.2.3/lib/rack/server.rb:249:in `app'
58: from /usr/share/gems/gems/rack-2.2.3/lib/rack/server.rb:349:in `build_app_and_options_from_config'
57: from /usr/share/gems/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file'
56: from /usr/share/gems/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file'
55: from /usr/share/gems/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string'
54: from /usr/share/gems/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval'
53: from config.ru:5:in `block in <main>'
52: from /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:324:in `require'
51: from /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:291:in `load_dependency'
50: from /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:324:in `block in require'
49: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:146:in `require'
48: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:146:in `require'
47: from /usr/share/foreman/config/environment.rb:5:in `<top (required)>'
46: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/railtie.rb:190:in `method_missing'
45: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/railtie.rb:190:in `public_send'
44: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/application.rb:363:in `initialize!'
43: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/initializable.rb:60:in `run_initializers'
42: from /usr/share/ruby/tsort.rb:205:in `tsort_each'
41: from /usr/share/ruby/tsort.rb:226:in `tsort_each'
40: from /usr/share/ruby/tsort.rb:347:in `each_strongly_connected_component'
39: from /usr/share/ruby/tsort.rb:347:in `call'
38: from /usr/share/ruby/tsort.rb:347:in `each'
37: from /usr/share/ruby/tsort.rb:349:in `block in each_strongly_connected_component'
36: from /usr/share/ruby/tsort.rb:415:in `each_strongly_connected_component_from'
35: from /usr/share/ruby/tsort.rb:415:in `call'
34: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/initializable.rb:50:in `tsort_each_child'
33: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/initializable.rb:50:in `each'
32: from /usr/share/ruby/tsort.rb:421:in `block in each_strongly_connected_component_from'
31: from /usr/share/ruby/tsort.rb:431:in `each_strongly_connected_component_from'
30: from /usr/share/ruby/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
29: from /usr/share/ruby/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
28: from /usr/share/ruby/tsort.rb:228:in `block in tsort_each'
27: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/initializable.rb:61:in `block in run_initializers'
26: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/initializable.rb:32:in `run'
25: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/initializable.rb:32:in `instance_exec'
24: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/engine.rb:624:in `block in <class:Engine>'
23: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/engine.rb:624:in `each'
22: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/engine.rb:625:in `block (2 levels) in <class:Engine>'
21: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/engine.rb:665:in `load_config_initializer'
20: from /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/notifications.rb:182:in `instrument'
19: from /usr/share/gems/gems/railties-6.0.4.7/lib/rails/engine.rb:666:in `block in load_config_initializer'
18: from /usr/share/foreman/config/initializers/0_print_time_spent.rb:38:in `load'
17: from /usr/share/foreman/config/initializers/0_print_time_spent.rb:17:in `benchmark'
16: from /usr/share/foreman/config/initializers/0_print_time_spent.rb:38:in `block in load'
15: from /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:318:in `load'
14: from /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:291:in `load_dependency'
13: from /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:318:in `block in load'
12: from /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:318:in `load'
11: from /usr/share/foreman/config/initializers/1_fast_gettext.rb:6:in `<top (required)>'
10: from /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:324:in `require'
9: from /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:291:in `load_dependency'
8: from /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/dependencies.rb:324:in `block in require'
7: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:146:in `require'
6: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:146:in `require'
5: from /usr/share/foreman/lib/foreman/gettext/support.rb:3:in `<top (required)>'
4: from /usr/share/foreman/lib/foreman/gettext/support.rb:4:in `<module:Foreman>'
3: from /usr/share/foreman/lib/foreman/gettext/support.rb:5:in `<module:Gettext>'
2: from /usr/share/foreman/lib/foreman/gettext/support.rb:47:in `<module:Support>'
1: from /usr/share/foreman/lib/foreman/gettext/support.rb:47:in `class_eval'
/usr/share/foreman/lib/foreman/gettext/support.rb:50:in `block in <module:Support>': undefined method `mutex=' for FastGettext:Module (NoMethodError)

Any help is highly appreciated

Thank you!

Actions #1

Updated by Ewoud Kohl van Wijngaarden over 1 year ago

That suggests the packages have not been properly installed. I notice you say you run on RHEL 8.5 but we only support running on the latest 8.x version. Have you tried to do a dnf upgrade? It may also be useful to share the output of

rpm -qa | grep -E 'foreman|ruby'

Actions #2

Updated by Ruediger Mueck over 1 year ago

  • Status changed from New to Resolved

We had to restore the system from earlier Image. Foreman is running again now.
Thanks for help. The PR can be closed.

Actions

Also available in: Atom PDF