Bug #5961
closedInstallation fails with foreman-tasks
Description
When installing Katello in a new CentOS6 machine the installation of ruby193-rubygem-foreman-tasks-05.6-1.el6.noarch fails with the following error:
/var/tmp/rpm-tmp.EFlqHJ: line 1: foreman-selinux-relabel: command not found
When the installation completes, an error with Dynflow prevents the https://localhost/katello to be displayed.
The installation is done with the following procedure:
- yum update
- yum install -y git ruby
- git clone https://github.com/Katello/katello-deploy.git
- cd katello-deploy
- vim /etc/hosts and add FQDN to list
- setenforce 0
- SELINUX=permissive on /etc/selinux/config
- ./setup.rb centos6 --skip-installer
Updated by Ivan Necas over 10 years ago
what exactly is the error in Dynflow, the error message should not be displayed (we need to switch https://github.com/theforeman/foreman-tasks/blob/master/rubygem-foreman-tasks.spec#L110 `2>&1 >/dev/null` to `>/dev/null 2>&1` or ideally to `&>/dev/null`). However, this should not be the reason for error in the startup itself.
Therefore we need more info on that
Updated by Lukas Zapletal over 10 years ago
Updated by Lukas Zapletal over 10 years ago
The workaround is to install this package before running the installer:
yum install foreman-selinux
Updated by Ivan Necas over 10 years ago
- Status changed from New to Assigned
I think this is the real failure on installation:
The Dynflow world was not initialized yet. If your plugin uses it, make sure to call ForemanTasks.dynflow.require! in some initializer (RuntimeError) /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.5.6/lib/foreman_tasks/dynflow.rb:75:in `world' /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/lib/katello/engine.rb:38:in `block in <class:Engine>' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing' /usr/share/foreman/config/environment.rb:5:in `<top (required)>' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' config.ru:3:in `block in <main>' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize' config.ru:1:in `new' config.ru:1:in `<main>' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in `eval' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in `preload_app' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:150:in `<module:App>' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:28:in `<main>'
and was introduced with this PR: https://github.com/Katello/katello/pull/4150
I will address that
Updated by Ivan Necas over 10 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
Applied in changeset katello|commit:d9de7cbdb80df7c0cbca18ac5f75868f7a289ba2.
Updated by Eric Helms over 10 years ago
- Translation missing: en.field_release set to 13