Actions
Bug #21505
closedruby-smart-proxy-dynflow-core missing Gem rest-client
Status:
Closed
Priority:
High
Assignee:
-
Category:
Debian/Ubuntu
Target version:
-
Difficulty:
Triaged:
Description
After installing ruby-smart-proxy-dynflow-core, the foreman-proxy does not start up and throws the following error.
Oct 30 11:10:22 dummy1.test.com systemd[1]: Starting Foreman Proxy... -- Subject: Unit foreman-proxy.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit foreman-proxy.service has begun starting up. Oct 30 11:10:22 dummy1.test.com smart-proxy[22455]: /usr/lib/ruby/vendor_ruby/bundler_ext/output.rb:13:in `strict_err': Gem loading error: cannot load such file -- rest-client (RuntimeE Oct 30 11:10:22 dummy1.test.com smart-proxy[22455]: from /usr/lib/ruby/vendor_ruby/bundler_ext/runtime.rb:46:in `rescue in block in system_require' Oct 30 11:10:22 dummy1.test.com smart-proxy[22455]: from /usr/lib/ruby/vendor_ruby/bundler_ext/runtime.rb:39:in `block in system_require' Oct 30 11:10:22 dummy1.test.com smart-proxy[22455]: from /usr/lib/ruby/vendor_ruby/bundler_ext/runtime.rb:37:in `each' Oct 30 11:10:22 dummy1.test.com smart-proxy[22455]: from /usr/lib/ruby/vendor_ruby/bundler_ext/runtime.rb:37:in `system_require' Oct 30 11:10:22 dummy1.test.com smart-proxy[22455]: from /usr/lib/ruby/vendor_ruby/bundler_ext.rb:19:in `block in system_require' Oct 30 11:10:22 dummy1.test.com smart-proxy[22455]: from /usr/lib/ruby/vendor_ruby/bundler_ext.rb:14:in `each' Oct 30 11:10:22 dummy1.test.com smart-proxy[22455]: from /usr/lib/ruby/vendor_ruby/bundler_ext.rb:14:in `system_require' Oct 30 11:10:22 dummy1.test.com smart-proxy[22455]: from /usr/share/foreman-proxy/lib/bundler_helper.rb:22:in `require_groups' Oct 30 11:10:22 dummy1.test.com smart-proxy[22455]: from /usr/share/foreman-proxy/lib/smart_proxy_main.rb:33:in `<top (required)>' Oct 30 11:10:22 dummy1.test.com smart-proxy[22455]: from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' Oct 30 11:10:22 dummy1.test.com smart-proxy[22455]: from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' Oct 30 11:10:22 dummy1.test.com smart-proxy[22455]: from /usr/share/foreman-proxy/bin/smart-proxy:5:in `<main>' Oct 30 11:10:22 dummy1.test.com systemd[1]: foreman-proxy.service: Control process exited, code=exited status=1 Oct 30 11:10:22 dummy1.test.com systemd[1]: Failed to start Foreman Proxy.
This started happening after installing ruby-smart-proxy-remote-execution-ssh. Following are the packages that were installed at the time.
dpkg -l | grep "ruby-foreman\|ruby-smart-proxy" ii ruby-foreman-deface 1.2.0-1 all Foreman Deface Plugin Dependency ii ruby-foreman-remote-execution 1.3.7-1 all Foreman Remote Execution Plugin ii ruby-foreman-remote-execution-core 1.0.5-1 all Foreman remote execution - core bits ii ruby-foreman-tasks 0.9.6-1 all Tasks management engine for Foreman. ii ruby-foreman-tasks-core 0.1.4-1 all Foreman tasks - core bits ii ruby-foreman-templates 5.0.1-1 all Foreman Templates Plugin ii ruby-smart-proxy-dynflow 0.1.8-1 all Dynflow runtime for Foreman smart proxy ii ruby-smart-proxy-dynflow-core 0.1.6-1 all Dynflow runtime for Foreman smart proxy ii ruby-smart-proxy-remote-execution-ssh 0.1.5-1 all SSH remote execution provider for Foreman smart proxy
So to isolate the issue, I've trying starting up the foreman-proxy after removing each package.
- Removed ruby-smart-proxy-remote-execution-ssh, restarted foreman-proxy FAILED.
- Removed ruby-foreman-remote-execution-core, restarted foreman-proxy FAILED.
- Removed ruby-smart-proxy-dynflow, restarted foreman-proxy FAILED.
- Removed ruby-smart-proxy-dynflow-core, restarted foreman-proxy SUCCESS.
This narrows it down to ruby-smart-proxy-dynflow-core.
Workaround¶
I've installed the Gem manually by running {{gem install rest-client}} and then it works with the above packages installed.
Actions