I have been attempting to get Foreman to run on Fedora 28 ppc64le. After giving up with missing dependencies I went down the Ruby route. I’ve managed to get Foreman to load via git clone and bundle build. However I cannot manage to add Katello.
I’ve added to bundler.d/Gemfile.local.rb
gem ‘rdoc’
gem ‘katello’
ran bundle update with no errors, however when I attempting to start the web server again, I get the following:
./bin/rails s -e production
/home/foreman/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP
/home/foreman/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here
=> Booting WEBrick
=> Rails 5.1.6 application starting in production on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
Apipie cache enabled but not present yet. Run apipie:cache rake task to speed up API calls.
Exiting
Traceback (most recent call last):
73: from ./bin/rails:3:in `<main>'
72: from ./bin/rails:3:in `load'
71: from /home/foreman/foreman/bin/spring:13:in `<top (required)>'
70: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:70:in `require'
69: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:70:in `require'
68: from /usr/share/gems/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
67: from /usr/share/gems/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
66: from /usr/share/gems/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
65: from /usr/share/gems/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
64: from /usr/share/gems/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
63: from /usr/share/gems/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
62: from /usr/share/gems/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
61: from /home/foreman/foreman/bin/rails:9:in `<top (required)>'
60: from /home/foreman/foreman/bin/rails:9:in `require'
59: from /usr/share/gems/gems/railties-5.1.6/lib/rails/commands.rb:16:in `<top (required)>'
58: from /usr/share/gems/gems/railties-5.1.6/lib/rails/command.rb:44:in `invoke'
57: from /usr/share/gems/gems/railties-5.1.6/lib/rails/command/base.rb:63:in `perform'
56: from /usr/share/gems/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
55: from /usr/share/gems/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
54: from /usr/share/gems/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
53: from /usr/share/gems/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:130:in `perform'
52: from /usr/share/gems/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:130:in `tap'
51: from /usr/share/gems/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:135:in `block in perform'
50: from /usr/share/gems/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:44:in `start'
49: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/server.rb:283:in `start'
48: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/server.rb:354:in `wrapped_app'
47: from /usr/share/gems/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:24:in `app'
46: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/server.rb:219:in `app'
45: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/server.rb:319:in `build_app_and_options_from_config'
44: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/builder.rb:40:in `parse_file'
43: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/builder.rb:49:in `new_from_string'
42: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/builder.rb:49:in `eval'
41: from config.ru:in `<main>'
40: from config.ru:in `new'
39: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/builder.rb:55:in `initialize'
38: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/builder.rb:55:in `instance_eval'
37: from config.ru:5:in `block in <main>'
36: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
35: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
34: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
33: from /usr/local/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
32: from /usr/local/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
31: from /home/foreman/foreman/config/environment.rb:5:in `<top (required)>'
30: from /usr/share/gems/gems/railties-5.1.6/lib/rails/railtie.rb:185:in `method_missing'
29: from /usr/share/gems/gems/railties-5.1.6/lib/rails/railtie.rb:185:in `public_send'
28: from /usr/share/gems/gems/railties-5.1.6/lib/rails/application.rb:353:in `initialize!'
27: from /usr/share/gems/gems/railties-5.1.6/lib/rails/initializable.rb:58:in `run_initializers'
26: from /usr/share/ruby/tsort.rb:205:in `tsort_each'
25: from /usr/share/ruby/tsort.rb:226:in `tsort_each'
24: from /usr/share/ruby/tsort.rb:347:in `each_strongly_connected_component'
23: from /usr/share/ruby/tsort.rb:347:in `call'
22: from /usr/share/ruby/tsort.rb:347:in `each'
21: from /usr/share/ruby/tsort.rb:349:in `block in each_strongly_connected_component'
20: from /usr/share/ruby/tsort.rb:431:in `each_strongly_connected_component_from'
19: from /usr/share/ruby/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
18: from /usr/share/ruby/tsort.rb:228:in `block in tsort_each'
17: from /usr/share/gems/gems/railties-5.1.6/lib/rails/initializable.rb:59:in `block in run_initializers'
16: from /usr/share/gems/gems/railties-5.1.6/lib/rails/initializable.rb:30:in `run'
15: from /usr/share/gems/gems/railties-5.1.6/lib/rails/initializable.rb:30:in `instance_exec'
14: from /home/foreman/.gem/ruby/gems/katello-3.7.0/lib/katello/engine.rb:61:in `block in <class:Engine>'
13: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
12: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
11: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
10: from /usr/local/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
9: from /usr/local/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
8: from /home/foreman/.gem/ruby/gems/katello-3.7.0/lib/katello/permissions.rb:1:in `<top (required)>'
7: from /home/foreman/.gem/ruby/gems/katello-3.7.0/lib/katello/permissions.rb:1:in `each'
6: from /home/foreman/.gem/ruby/gems/katello-3.7.0/lib/katello/permissions.rb:2:in `block in <top (required)>'
5: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
4: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
3: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
2: from /usr/local/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
1: from /usr/local/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/foreman/.gem/ruby/gems/katello-3.7.0/lib/katello/permissions/organization_permissions.rb:3:in `<top (required)>': undefined method `actions' for nil:NilClass (NoMethodError)
Trying to get to the bottom of it but not getting anywhere so any advice is appreciated!!
Hello this needs probably a @katello expert but this does not look like some problem with your architecture but rather with taxonomy. Have you enabled org/loc/login in settings.yaml? Katello requires that. Also you need to migrate and seed the database - seed is particularly important to create some basic data structures.
and that then worked. So giving the RAILS argument was not helping. Started it up and it so far looks to be working. Thanks for the steer on the the config.yaml.