CentOS 7.2 and Katello 3.0/3.1 install issues

Hello,

I'm trying to get 3.0 or 3.1 installed on CentOS 7.2 and am getting the
following errors. Any thoughts on what I am doing wrong? (I've also
manually foreman-installer manually with the same results)

Thanks in advance!

Jason

3.1 using forklift: /setup.rb --katello-version=3.1 --disable-selinux
–scenario katello
Running shell command: foreman-installer --scenario katello
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]:
Failed to call refresh: /usr/sbin/foreman-rake db:migrate returned 1
instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]:
/usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
pulp-manage-db && touch /var/lib/pulp/init.flag returned 69 instead of one
of [0]
/Stage[main]/Pulp::Database/Exec[migrate_pulp_db]/returns: change from
notrun to 0 failed: pulp-manage-db && touch /var/lib/pulp/init.flag
returned 69 instead of one of [0]
/Stage[main]/Pulp::Database/Exec[migrate_pulp_db]: Failed to call refresh:
pulp-manage-db && touch /var/lib/pulp/init.flag returned 69 instead of one
of [0]
/Stage[main]/Pulp::Database/Exec[migrate_pulp_db]: pulp-manage-db && touch
/var/lib/pulp/init.flag returned 69 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]:
Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead
of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]:
/usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]:
Failed to call refresh: /usr/sbin/foreman-rake apipie:cache:index returned
1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]:
/usr/sbin/foreman-rake apipie:cache:index returned 1 instead of one of [0]
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[katello-n02.dev.ord1.cit.rackspace.net]:
Failed to call refresh: Exception Connection refused - connect(2) in get
request to:
https://katello-n02.dev.ord1.cit.rackspace.net/api/v2/smart_proxies?search=name="katello-n02.dev.ord1.cit.rackspace.net"
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[katello-n02.dev.ord1.cit.rackspace.net]:
Exception Connection refused - connect(2) in get request to:
https://katello-n02.dev.ord1.cit.rackspace.net/api/v2/smart_proxies?search=name="katello-n02.dev.ord1.cit.rackspace.net"
Installing Done
[100%] […]
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/foreman-installer/katello.log
[ root@katello-n02.dev.ord1 forklift ]# /usr/sbin/foreman-rake db:migrate
–trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
Apipie cache enabled but not present yet. Run apipie:cache rake task to
speed up API calls.
rake aborted!
Host::Managed is using attr_accessible so must either be converted to
strong parameters, or add the protected_attributes gem
/usr/share/foreman/config/initializers/active_record_extensions.rb:21:in
attr_accessible&#39; /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/app/models/katello/concerns/host_managed_extensions.rb:31:inblock in <module:HostManagedExtensions>'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/concern.rb:120:in
class_eval&#39; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/concern.rb:120:inappend_features'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/lib/katello/engine.rb:170:in
include&#39; /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/lib/katello/engine.rb:170:inblock in <class:Engine>'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:446:in
instance_exec&#39; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:446:inblock in make_lambda'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:192:in
call&#39; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:192:inblock in simple'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in
call&#39; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:inblock in call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in
each&#39; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:incall'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in
__run_callbacks__&#39; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in_run_prepare_callbacks'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in
run_callbacks&#39; /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/reloader.rb:83:inprepare!'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/reloader.rb:55:in
prepare!&#39; /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application/finisher.rb:50:inblock in <module:Finisher>'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in
instance_exec&#39; /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:inrun'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:55:in
block in run_initializers&#39; /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:226:inblock in tsort_each'
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:348:in block (2 levels) in each_strongly_connected_component&#39; /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:429:ineach_strongly_connected_component_from'
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:347:in block in each_strongly_connected_component&#39; /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:ineach'
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in call&#39; /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:ineach_strongly_connected_component'
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:224:in tsort_each&#39; /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:203:intsort_each'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:54:in
run_initializers&#39; /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:352:ininitialize!'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in
public_send&#39; /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:inmethod_missing'
/usr/share/foreman/config/environment.rb:5:in &lt;top (required)&gt;&#39; /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:inrequire'
/opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in
require&#39; /opt/rh/sclo-ror42/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:65:inrequire'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in
block in require&#39; /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:inload_dependency'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in
require&#39; /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:328:inrequire_environment!'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:457:in
block in run_tasks_blocks&#39; /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:incall'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:in
block in execute&#39; /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:ineach'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:in
execute&#39; /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:179:inblock in invoke_with_call_chain'
/opt/rh/rh-ruby22/root/usr/share/ruby/monitor.rb:211:in mon_synchronize&#39; /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:172:ininvoke_with_call_chain'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:201:in
block in invoke_prerequisites&#39; /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:199:ineach'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:199:in
invoke_prerequisites&#39; /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:178:inblock in invoke_with_call_chain'
/opt/rh/rh-ruby22/root/usr/share/ruby/monitor.rb:211:in mon_synchronize&#39; /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:172:ininvoke_with_call_chain'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:165:in
invoke&#39; /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:150:ininvoke_task'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in
block (2 levels) in top_level&#39; /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:ineach'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in
block in top_level&#39; /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:115:inrun_with_threads'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:100:in
top_level&#39; /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:78:inblock in run'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:176:in
standard_exception_handling&#39; /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:75:inrun'
/opt/rh/rh-ruby22/root/usr/bin/rake:33:in `<main>'
Tasks: TOP => db:migrate => environment

Jason,

This looks like a slightly bug in Forklift's logic when specifying
–katello-version that results in installing nightly and hence all the
errors. The following should get you what you were expecting:

/setup.rb --version=1.12 --disable-selinux --scenario katello

In this case we are specifying the Foreman version but saying we want the
Katello scenario which should install 3.1.

Eric

··· On Thu, Aug 11, 2016 at 1:49 AM, Jason Straw wrote:

Hello,

I’m trying to get 3.0 or 3.1 installed on CentOS 7.2 and am getting the
following errors. Any thoughts on what I am doing wrong? (I’ve also
manually foreman-installer manually with the same results)

Thanks in advance!

Jason

3.1 using forklift: /setup.rb --katello-version=3.1 --disable-selinux
–scenario katello
Running shell command: foreman-installer --scenario katello
/Stage[main]/Foreman::Database/Foreman::Rake[db:
migrate]/Exec[foreman-rake-db:migrate]: Failed to call refresh:
/usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:
migrate]/Exec[foreman-rake-db:migrate]: /usr/sbin/foreman-rake db:migrate
returned 1 instead of one of [0]
pulp-manage-db && touch /var/lib/pulp/init.flag returned 69 instead of
one of [0]
/Stage[main]/Pulp::Database/Exec[migrate_pulp_db]/returns: change from
notrun to 0 failed: pulp-manage-db && touch /var/lib/pulp/init.flag
returned 69 instead of one of [0]
/Stage[main]/Pulp::Database/Exec[migrate_pulp_db]: Failed to call
refresh: pulp-manage-db && touch /var/lib/pulp/init.flag returned 69
instead of one of [0]
/Stage[main]/Pulp::Database/Exec[migrate_pulp_db]: pulp-manage-db &&
touch /var/lib/pulp/init.flag returned 69 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:
seed]/Exec[foreman-rake-db:seed]: Failed to call refresh:
/usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:
seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned
1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[apipie:
cache:index]/Exec[foreman-rake-apipie:cache:index]: Failed to call
refresh: /usr/sbin/foreman-rake apipie:cache:index returned 1 instead of
one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[apipie:
cache:index]/Exec[foreman-rake-apipie:cache:index]:
/usr/sbin/foreman-rake apipie:cache:index returned 1 instead of one of [0]
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ka
tello-n02.dev.ord1.cit.rackspace.net]: Failed to call refresh: Exception
Connection refused - connect(2) in get request to:
https://katello-n02.dev.ord1.cit.rackspace.net/api/v2/
smart_proxies?search=name=%22katello-n02.dev.ord1.cit.rackspace.net%22
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ka
tello-n02.dev.ord1.cit.rackspace.net]: Exception Connection refused -
connect(2) in get request to: https://katello-n02.dev.ord1.
cit.rackspace.net/api/v2/smart_proxies?search=name=%
22katello-n02.dev.ord1.cit.rackspace.net%22
Installing Done
[100%] […]
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/foreman-installer/katello.log
[ root@katello-n02.dev.ord1 forklift ]# /usr/sbin/foreman-rake db:migrate
–trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
Apipie cache enabled but not present yet. Run apipie:cache rake task to
speed up API calls.
rake aborted!
Host::Managed is using attr_accessible so must either be converted to
strong parameters, or add the protected_attributes gem
/usr/share/foreman/config/initializers/active_record_extensions.rb:21:in
attr_accessible' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/ app/models/katello/concerns/host_managed_extensions.rb:31:inblock in
module:HostManagedExtensions
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-
4.2.5.1/lib/active_support/concern.rb:120:in class_eval' /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- 4.2.5.1/lib/active_support/concern.rb:120:inappend_features’
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/lib/katello/engine.rb:170:in
include' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/lib/katello/engine.rb:170:inblock in class:Engine
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-
4.2.5.1/lib/active_support/callbacks.rb:446:in instance_exec' /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- 4.2.5.1/lib/active_support/callbacks.rb:446:inblock in make_lambda’
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-
4.2.5.1/lib/active_support/callbacks.rb:192:in call' /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- 4.2.5.1/lib/active_support/callbacks.rb:192:inblock in simple’
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-
4.2.5.1/lib/active_support/callbacks.rb:504:in call' /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- 4.2.5.1/lib/active_support/callbacks.rb:504:inblock in call’
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-
4.2.5.1/lib/active_support/callbacks.rb:504:in each' /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- 4.2.5.1/lib/active_support/callbacks.rb:504:incall’
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-
4.2.5.1/lib/active_support/callbacks.rb:92:in __run_callbacks__' /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- 4.2.5.1/lib/active_support/callbacks.rb:778:in_run_prepare_callbacks’
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-
4.2.5.1/lib/active_support/callbacks.rb:81:in run_callbacks' /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4. 2.5.1/lib/action_dispatch/middleware/reloader.rb:83:inprepare!’
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.
2.5.1/lib/action_dispatch/middleware/reloader.rb:55:in prepare!' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2. 5.1/lib/rails/application/finisher.rb:50:inblock in module:Finisher
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.
5.1/lib/rails/initializable.rb:30:in instance_exec' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2. 5.1/lib/rails/initializable.rb:30:inrun’
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.
5.1/lib/rails/initializable.rb:55:in block in run_initializers' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:226:inblock in
tsort_each’
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:348:in block (2 levels) in each_strongly_connected_component' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:429:ineach_strongly_connected_component_from’
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:347:in block in each_strongly_connected_component' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:ineach’
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in call' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:ineach_strongly_connected_component’
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:224:in tsort_each' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:203:intsort_each’
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.
5.1/lib/rails/initializable.rb:54:in run_initializers' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2. 5.1/lib/rails/application.rb:352:ininitialize!’
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.
5.1/lib/rails/railtie.rb:194:in public_send' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2. 5.1/lib/rails/railtie.rb:194:inmethod_missing’
/usr/share/foreman/config/environment.rb:5:in <top (required)>' /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:inrequire’
/opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in
require' /opt/rh/sclo-ror42/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:65:inrequire’
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-
4.2.5.1/lib/active_support/dependencies.rb:274:in block in require' /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- 4.2.5.1/lib/active_support/dependencies.rb:240:inload_dependency’
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-
4.2.5.1/lib/active_support/dependencies.rb:274:in require' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2. 5.1/lib/rails/application.rb:328:inrequire_environment!’
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.
5.1/lib/rails/application.rb:457:in block in run_tasks_blocks' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:incall’
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:in
block in execute' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:ineach’
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:in
execute' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:179:inblock in invoke_with_call_chain’
/opt/rh/rh-ruby22/root/usr/share/ruby/monitor.rb:211:in mon_synchronize' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:172:ininvoke_with_call_chain’
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:201:in
block in invoke_prerequisites' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:199:ineach’
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:199:in
invoke_prerequisites' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:178:inblock in invoke_with_call_chain’
/opt/rh/rh-ruby22/root/usr/share/ruby/monitor.rb:211:in mon_synchronize' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:172:ininvoke_with_call_chain’
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:165:in
invoke' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:150:ininvoke_task’
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in
block (2 levels) in top_level' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:ineach’
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in
block in top_level' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:115:inrun_with_threads’
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:100:in
top_level' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:78:inblock in run’
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:176:in
standard_exception_handling' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:75:inrun’
/opt/rh/rh-ruby22/root/usr/bin/rake:33:in `'
Tasks: TOP => db:migrate => environment


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Eric D. Helms
Red Hat Engineering
Ph.D. Student - North Carolina State University

Hello,

I seem to face the same issue, but I don't know how to run setup.rb

Is it an option of foreman-installer ?

Thank you.

Nicolas

··· Le jeudi 11 août 2016 14:06:16 UTC+2, Eric Helms a écrit : > > Jason, > > This looks like a slightly bug in Forklift's logic when specifying > --katello-version that results in installing nightly and hence all the > errors. The following should get you what you were expecting: > > /setup.rb --version=1.12 --disable-selinux --scenario katello > > In this case we are specifying the Foreman version but saying we want the > Katello scenario which should install 3.1. > > > Eric > > On Thu, Aug 11, 2016 at 1:49 AM, Jason Straw > wrote: > >> Hello, >> >> I'm trying to get 3.0 or 3.1 installed on CentOS 7.2 and am getting the >> following errors. Any thoughts on what I am doing wrong? (I've also >> manually foreman-installer manually with the same results) >> >> Thanks in advance! >> >> Jason >> >> 3.1 using forklift: /setup.rb --katello-version=3.1 --disable-selinux >> --scenario katello >> Running shell command: foreman-installer --scenario katello >> /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: >> Failed to call refresh: /usr/sbin/foreman-rake db:migrate returned 1 >> instead of one of [0] >> /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: >> /usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0] >> pulp-manage-db && touch /var/lib/pulp/init.flag returned 69 instead of >> one of [0] >> /Stage[main]/Pulp::Database/Exec[migrate_pulp_db]/returns: change from >> notrun to 0 failed: pulp-manage-db && touch /var/lib/pulp/init.flag >> returned 69 instead of one of [0] >> /Stage[main]/Pulp::Database/Exec[migrate_pulp_db]: Failed to call >> refresh: pulp-manage-db && touch /var/lib/pulp/init.flag returned 69 >> instead of one of [0] >> /Stage[main]/Pulp::Database/Exec[migrate_pulp_db]: pulp-manage-db && >> touch /var/lib/pulp/init.flag returned 69 instead of one of [0] >> /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: >> Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead >> of one of [0] >> /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: >> /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0] >> /Stage[main]/Foreman::Database/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]: >> Failed to call refresh: /usr/sbin/foreman-rake apipie:cache:index returned >> 1 instead of one of [0] >> /Stage[main]/Foreman::Database/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]: >> /usr/sbin/foreman-rake apipie:cache:index returned 1 instead of one of [0] >> /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ >> katello-n02.dev.ord1.cit.rackspace.net]: Failed to call refresh: >> Exception Connection refused - connect(2) in get request to: >> https://katello-n02.dev.ord1.cit.rackspace.net/api/v2/smart_proxies?search=name=%22katello-n02.dev.ord1.cit.rackspace.net%22 >> /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ >> katello-n02.dev.ord1.cit.rackspace.net]: Exception Connection refused - >> connect(2) in get request to: >> https://katello-n02.dev.ord1.cit.rackspace.net/api/v2/smart_proxies?search=name=%22katello-n02.dev.ord1.cit.rackspace.net%22 >> Installing Done >> [100%] [.................] >> Something went wrong! Check the log for ERROR-level output >> The full log is at /var/log/foreman-installer/katello.log >> [ root@katello-n02.dev.ord1 forklift ]# /usr/sbin/foreman-rake db:migrate >> --trace >> ** Invoke db:migrate (first_time) >> ** Invoke environment (first_time) >> ** Execute environment >> Apipie cache enabled but not present yet. Run apipie:cache rake task to >> speed up API calls. >> rake aborted! >> Host::Managed is using attr_accessible so must either be converted to >> strong parameters, or add the protected_attributes gem >> /usr/share/foreman/config/initializers/active_record_extensions.rb:21:in >> `attr_accessible' >> /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/app/models/katello/concerns/host_managed_extensions.rb:31:in >> `block in ' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/concern.rb:120:in `class_eval' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/concern.rb:120:in `append_features' >> /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/lib/katello/engine.rb:170:in >> `include' >> /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/lib/katello/engine.rb:170:in >> `block in ' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/callbacks.rb:446:in `instance_exec' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/callbacks.rb:446:in `block in make_lambda' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/callbacks.rb:192:in `call' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/callbacks.rb:192:in `block in simple' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/callbacks.rb:504:in `call' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/callbacks.rb:504:in `block in call' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/callbacks.rb:504:in `each' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/callbacks.rb:504:in `call' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_prepare_callbacks' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/reloader.rb:83:in >> `prepare!' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/reloader.rb:55:in >> `prepare!' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application/finisher.rb:50:in >> `block in ' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in >> `instance_exec' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in >> `run' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:55:in >> `block in run_initializers' >> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:226:in `block in >> tsort_each' >> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:348:in `block (2 levels) >> in each_strongly_connected_component' >> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:429:in >> `each_strongly_connected_component_from' >> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:347:in `block in >> each_strongly_connected_component' >> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in `each' >> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in `call' >> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in >> `each_strongly_connected_component' >> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:224:in `tsort_each' >> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:203:in `tsort_each' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:54:in >> `run_initializers' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:352:in >> `initialize!' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in >> `public_send' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in >> `method_missing' >> /usr/share/foreman/config/environment.rb:5:in `' >> /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in >> `require' >> /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in >> `require' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:65:in >> `require' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/dependencies.rb:274:in `block in require' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/dependencies.rb:240:in `load_dependency' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >> 4.2.5.1/lib/active_support/dependencies.rb:274:in `require' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:328:in >> `require_environment!' >> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:457:in >> `block in run_tasks_blocks' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:in >> `call' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:in >> `block in execute' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:in >> `each' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:in >> `execute' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:179:in >> `block in invoke_with_call_chain' >> /opt/rh/rh-ruby22/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:172:in >> `invoke_with_call_chain' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:201:in >> `block in invoke_prerequisites' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:199:in >> `each' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:199:in >> `invoke_prerequisites' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:178:in >> `block in invoke_with_call_chain' >> /opt/rh/rh-ruby22/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:172:in >> `invoke_with_call_chain' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:165:in >> `invoke' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:150:in >> `invoke_task' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in >> `block (2 levels) in top_level' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in >> `each' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in >> `block in top_level' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:115:in >> `run_with_threads' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:100:in >> `top_level' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:78:in >> `block in run' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:176:in >> `standard_exception_handling' >> /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:75:in >> `run' >> /opt/rh/rh-ruby22/root/usr/bin/rake:33:in `' >> Tasks: TOP => db:migrate => environment >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-user...@googlegroups.com . >> To post to this group, send email to forema...@googlegroups.com >> . >> Visit this group at https://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Eric D. Helms > Red Hat Engineering > Ph.D. Student - North Carolina State University >