Hi There,
I have local Foreman and a Smart Proxy up and running, and have my smart_proxy_phpipam
plugin installed on the Smart Proxy. I’m trying to create a Smart Proxy in the Foreman UI, but get the following error:
Features "phpipam" in this proxy are not recognized by Foreman. If these features come from a Smart Proxy plugin, make sure Foreman has the plugin installed too.
So I tried installing the smart_proxy_phpipam
plugin in Foreman as well, but now Foreman won’t start up with the following error:
mac-dev:foreman christopher.smith$ bundle exec foreman start
10:19:01 rails.1 | started with pid 93133
10:19:01 webpack.1 | started with pid 93134
10:19:03 webpack.1 | Project is running at http://localhost:3808/
10:19:03 webpack.1 | webpack output is served from /webpack/
10:19:04 rails.1 | /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `block in load_missing_constant': uninitialized constant Proxy::Plugin (NameError)
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:8:in `without_bootsnap_cache'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `rescue in load_missing_constant'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `load_missing_constant'
10:19:04 rails.1 | from /Users/christopher.smith/Documents/development/opensource/smart_proxy_phpipam/lib/smart_proxy_phpipam/phpipam.rb:5:in `<module:Phpipam>'
10:19:04 rails.1 | from /Users/christopher.smith/Documents/development/opensource/smart_proxy_phpipam/lib/smart_proxy_phpipam/phpipam.rb:2:in `<main>'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
10:19:04 rails.1 | from /Users/christopher.smith/Documents/development/opensource/smart_proxy_phpipam/lib/smart_proxy_phpipam.rb:3:in `<main>'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:76:in `each'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:76:in `block in require'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:65:in `each'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:65:in `require'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bundler-2.0.1/lib/bundler.rb:114:in `require'
10:19:04 rails.1 | from /Users/christopher.smith/Documents/development/opensource/foreman/config/application.rb:37:in `<main>'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:145:in `block in perform'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `tap'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `perform'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/railties-5.2.1/lib/rails/command/base.rb:65:in `perform'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/railties-5.2.1/lib/rails/command.rb:46:in `invoke'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/railties-5.2.1/lib/rails/commands.rb:18:in `<main>'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
10:19:04 rails.1 | from /Users/christopher.smith/Documents/development/opensource/foreman/bin/rails:9:in `<top (required)>'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
10:19:04 rails.1 | from /Users/christopher.smith/.rvm/gems/ruby-2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
10:19:04 rails.1 | from /Users/christopher.smith/Documents/development/opensource/foreman/bin/spring:13:in `require'
10:19:04 rails.1 | from /Users/christopher.smith/Documents/development/opensource/foreman/bin/spring:13:in `<top (required)>'
10:19:04 rails.1 | from bin/rails:3:in `load'
10:19:04 rails.1 | from bin/rails:3:in `<main>'
10:19:04 rails.1 | exited with code 1
10:19:04 system | sending SIGTERM to all processes
10:19:09 system | sending SIGKILL to all processes
I didn’t realize that Smart Proxy plugins had to be installed into Foreman as well. Am I missing a step in this process?