Problem: I installed foreman manually, to prevent everything puppet-related, as I only want to use it with ansible. After installing smart_proxy_ansible, foreman does not start anymore, but fails with this error message:
root@tmp-foreman [~/foreman]# RAILS_ENV=production bundle exec rails s
Traceback (most recent call last):
54: from bin/rails:3:in `<main>'
53: from bin/rails:3:in `load'
52: from /root/foreman/bin/spring:13:in `<top (required)>'
51: from /root/foreman/bin/spring:13:in `require'
50: from /root/foreman/vendor/ruby/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
49: from /root/foreman/vendor/ruby/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
48: from /root/foreman/vendor/ruby/2.5.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
47: from /root/foreman/vendor/ruby/2.5.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
46: from /root/foreman/vendor/ruby/2.5.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
45: from /root/foreman/vendor/ruby/2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
44: from /root/foreman/vendor/ruby/2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
43: from /root/foreman/bin/rails:9:in `<top (required)>'
42: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
41: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
40: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
39: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
38: from /root/foreman/vendor/ruby/2.5.0/gems/railties-5.2.1/lib/rails/commands.rb:18:in `<top (required)>'
37: from /root/foreman/vendor/ruby/2.5.0/gems/railties-5.2.1/lib/rails/command.rb:46:in `invoke'
36: from /root/foreman/vendor/ruby/2.5.0/gems/railties-5.2.1/lib/rails/command/base.rb:65:in `perform'
35: from /root/foreman/vendor/ruby/2.5.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
34: from /root/foreman/vendor/ruby/2.5.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
33: from /root/foreman/vendor/ruby/2.5.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
32: from /root/foreman/vendor/ruby/2.5.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `perform'
31: from /root/foreman/vendor/ruby/2.5.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `tap'
30: from /root/foreman/vendor/ruby/2.5.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:145:in `block in perform'
29: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
28: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
27: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
26: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
25: from /root/foreman/config/application.rb:37:in `<top (required)>'
24: from /usr/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler.rb:114:in `require'
23: from /usr/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:65:in `require'
22: from /usr/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:65:in `each'
21: from /usr/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:76:in `block in require'
20: from /usr/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:76:in `each'
19: from /usr/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
18: from /usr/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:81:in `require'
17: from /root/foreman/vendor/ruby/2.5.0/gems/smart_proxy_ansible-2.1.0/lib/smart_proxy_ansible.rb:1:in `<top (required)>'
16: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
15: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
14: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
13: from /root/foreman/vendor/ruby/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
12: from /root/foreman/vendor/ruby/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
11: from /root/foreman/vendor/ruby/2.5.0/gems/smart_proxy_dynflow-0.2.2/lib/smart_proxy_dynflow.rb:2:in `<top (required)>'
10: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
9: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
8: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
7: from /root/foreman/vendor/ruby/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
6: from /root/foreman/vendor/ruby/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
5: from /root/foreman/vendor/ruby/2.5.0/gems/smart_proxy_dynflow-0.2.2/lib/smart_proxy_dynflow/plugin.rb:1:in `<top (required)>'
4: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
3: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
2: from /root/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
1: from /root/foreman/vendor/ruby/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/root/foreman/vendor/ruby/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require': cannot load such file -- proxy/log (LoadError)
I guess there is a gem missing, but I couldn’t figure out which one.
Expected outcome: Foreman should start
Foreman and Proxy versions:
- Foreman 1.21.0-develop
- smart_proxy_ansible-2.1.0