Project

General

Profile

Actions

Bug #5961

closed

Installation fails with foreman-tasks

Added by Ignacio Bravo almost 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Installer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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:

  1. yum update
  2. yum install -y git ruby
  3. git clone https://github.com/Katello/katello-deploy.git
  4. cd katello-deploy
  5. vim /etc/hosts and add FQDN to list
  6. setenforce 0
  7. SELINUX=permissive on /etc/selinux/config
  8. ./setup.rb centos6 --skip-installer
Actions #1

Updated by Ivan Necas almost 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

Actions #3

Updated by Lukas Zapletal almost 10 years ago

The workaround is to install this package before running the installer:

yum install foreman-selinux
Actions #4

Updated by Ivan Necas almost 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

Actions #5

Updated by Ivan Necas almost 10 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Applied in changeset katello|commit:d9de7cbdb80df7c0cbca18ac5f75868f7a289ba2.

Actions #6

Updated by Eric Helms almost 10 years ago

  • Triaged changed from No to Yes
Actions #7

Updated by Eric Helms over 9 years ago

  • translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF