Katello-installer (2.3) fails while foreman-rake

Hello all,

Katello Installer fails:

katello-installer

pulp-manage-db && touch /var/lib/pulp/init.flag returned 1 instead of one
of [0]
/Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: change from
notrun to 0 failed: pulp-manage-db && touch /var/lib/pulp/init.flag
returned 1 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_proxy::Register/Foreman_smartproxy[ol7-dep.xmpl.lan]:
Failed to call refresh: Proxy ol7-dep.tiri.lan cannot be registered (Could
not load data from https://ol7-dep.tiri.lan
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ol7-dep.xmpl.lan]:
Proxy ol7-dep.tiri.lan cannot be registered (Could not load data from
https://ol7-dep.tiri.lan
Installing Done
[100%]
[…]
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/katello-installer/katello-installer.log

As it seems there is a problem with foreman-rake, here is the trace-output.

foreman-rake db:seed --trace

Performance on MRI may be improved with the concurrent-ruby-ext gem. Please
see http://concurrent-ruby.com
** Invoke db:seed (first_time)
** Execute db:seed
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:abort_if_pending_migrations
Seeding /usr/share/foreman/db/seeds.d/03-auth_sources.rb
Seeding /usr/share/foreman/db/seeds.d/03-permissions.rb
Seeding /usr/share/foreman/db/seeds.d/03-roles.rb
Seeding /usr/share/foreman/db/seeds.d/04-admin.rb
Seeding /usr/share/foreman/db/seeds.d/05-taxonomies.rb
Seeding /usr/share/foreman/db/seeds.d/06-architectures.rb
Seeding /usr/share/foreman/db/seeds.d/07-provisioning_templates.rb
Seeding /usr/share/foreman/db/seeds.d/08-partition_tables.rb
Seeding /usr/share/foreman/db/seeds.d/10-installation_media.rb
Seeding /usr/share/foreman/db/seeds.d/11-smart_proxy_features.rb
Seeding /usr/share/foreman/db/seeds.d/13-compute_profiles.rb
Seeding /usr/share/foreman/db/seeds.d/15-bookmarks.rb
Seeding /usr/share/foreman/db/seeds.d/16-mail_notifications.rb
Seeding
/opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.7.1/db/seeds.d/20-foreman_tasks_permissions.rb
Seeding
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-6.0.0/db/seeds.d/50-bootdisk_templates.rb
All seed files executed
rake aborted!
Connection refused - connect(2)
/opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in initialize' /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:inopen'
/opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in block in connect' /opt/rh/ruby193/root/usr/share/ruby/timeout.rb:69:intimeout'
/opt/rh/ruby193/root/usr/share/ruby/timeout.rb:100:in timeout' /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:inconnect'
/opt/rh/ruby193/root/usr/share/ruby/net/http.rb:756:in do_start' /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:745:instart'
/opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:44:in
transmit' /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:inexecute'
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in
execute' /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:inget'
/opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.5/lib/runcible/base.rb:91:in
get_response' /opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.5/lib/runcible/base.rb:79:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.5/lib/runcible/resources/event_notifier.rb:71:in
list' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/app/models/katello/glue/pulp/repo.rb:33:inensure_sync_notification'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/db/seeds.rb:31:in
<top (required)>' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:inload'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in
block in load' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:inload_dependency'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in
load' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:520:inload_seed'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in
method_missing&#39; /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/lib/katello/engine.rb:154:inblock (2 levels) in <class:Engine>'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in call&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:inblock in execute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in each&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:inexecute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in block in invoke_with_call_chain&#39; /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:inmon_synchronize'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in
invoke_with_call_chain&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:ininvoke'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in invoke_task&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:inblock (2
levels) in top_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in each&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:inblock in
top_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in
standard_exception_handling&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:intop_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in block in run&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:instandard_exception_handling'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in run&#39; /opt/rh/ruby193/root/usr/bin/rake:32:in<main>'
Tasks: TOP => db:seed

How can it being solved?

Any help is appreciated.

Thomas.

> Hello all,
>
> Katello Installer fails:
>
> # katello-installer
> pulp-manage-db && touch /var/lib/pulp/init.flag returned 1 instead of one
> of [0]
> /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: change from
> notrun to 0 failed: pulp-manage-db && touch /var/lib/pulp/init.flag
> returned 1 instead of one of [0]

This is actually the first error, the failing seeds is only a result of
this.

What happens if you run this?
sudo -u apache /usr/bin/pulp-manage-db

Is mongo started?

··· On Tue, Jul 28, 2015 at 06:44:09AM -0700, tbn wrote:

/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_proxy::Register/Foreman_smartproxy[ol7-dep.xmpl.lan]:
Failed to call refresh: Proxy ol7-dep.tiri.lan cannot be registered (Could
not load data from https://ol7-dep.tiri.lan
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ol7-dep.xmpl.lan]:
Proxy ol7-dep.tiri.lan cannot be registered (Could not load data from
https://ol7-dep.tiri.lan
Installing Done
[100%]
[…]
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/katello-installer/katello-installer.log

As it seems there is a problem with foreman-rake, here is the trace-output.

foreman-rake db:seed --trace

Performance on MRI may be improved with the concurrent-ruby-ext gem. Please
see http://concurrent-ruby.com
** Invoke db:seed (first_time)
** Execute db:seed
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:abort_if_pending_migrations
Seeding /usr/share/foreman/db/seeds.d/03-auth_sources.rb
Seeding /usr/share/foreman/db/seeds.d/03-permissions.rb
Seeding /usr/share/foreman/db/seeds.d/03-roles.rb
Seeding /usr/share/foreman/db/seeds.d/04-admin.rb
Seeding /usr/share/foreman/db/seeds.d/05-taxonomies.rb
Seeding /usr/share/foreman/db/seeds.d/06-architectures.rb
Seeding /usr/share/foreman/db/seeds.d/07-provisioning_templates.rb
Seeding /usr/share/foreman/db/seeds.d/08-partition_tables.rb
Seeding /usr/share/foreman/db/seeds.d/10-installation_media.rb
Seeding /usr/share/foreman/db/seeds.d/11-smart_proxy_features.rb
Seeding /usr/share/foreman/db/seeds.d/13-compute_profiles.rb
Seeding /usr/share/foreman/db/seeds.d/15-bookmarks.rb
Seeding /usr/share/foreman/db/seeds.d/16-mail_notifications.rb
Seeding
/opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.7.1/db/seeds.d/20-foreman_tasks_permissions.rb
Seeding
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-6.0.0/db/seeds.d/50-bootdisk_templates.rb
All seed files executed
rake aborted!
Connection refused - connect(2)
/opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in initialize' /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in open’
/opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in block in connect' /opt/rh/ruby193/root/usr/share/ruby/timeout.rb:69:in timeout’
/opt/rh/ruby193/root/usr/share/ruby/timeout.rb:100:in timeout' /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in connect’
/opt/rh/ruby193/root/usr/share/ruby/net/http.rb:756:in do_start' /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:745:in start’
/opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:44:in
transmit' /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in execute’
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in
execute' /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in get’
/opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.5/lib/runcible/base.rb:91:in
get_response' /opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.5/lib/runcible/base.rb:79:in call’
/opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.5/lib/runcible/resources/event_notifier.rb:71:in
list' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/app/models/katello/glue/pulp/repo.rb:33:in ensure_sync_notification’
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/db/seeds.rb:31:in
<top (required)>' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in load’
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in
block in load' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in load_dependency’
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in
load' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:520:in load_seed’
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in
method_missing' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/lib/katello/engine.rb:154:in block (2 levels) in class:Engine
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in call' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in block in execute’
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in each' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in execute’
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in block in invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in mon_synchronize’
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in
invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in invoke’
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in invoke_task' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in block (2
levels) in top_level’
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in each' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in block in
top_level’
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in
standard_exception_handling' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:in top_level’
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in block in run' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in standard_exception_handling’
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in run' /opt/rh/ruby193/root/usr/bin/rake:32:in
Tasks: TOP => db:seed

How can it being solved?

Any help is appreciated.

Thomas.


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 http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Best Regards,

Stephen Benjamin
Red Hat Engineering

Hello Stephen,

systemctl status mongodb

mongodb.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)

systemctl start mongodb.service

Failed to issue method call: Unit mongodb.service failed to load: No such
file or directory.

but this seems to work:

sudo -u apache /usr/bin/pulp-manage-db

Mongo database for connection is version 2.6.9
Loading content types.
Loading type descriptors [docker.json, nodes.json, rpm_support.json,
iso_support.json, puppet.json]
Parsing type descriptors
Validating type descriptor syntactic integrity
Validating type descriptor semantic integrity
Updating the database with types [docker_image, repository, node,
distribution, drpm, erratum, package_group, package_category,
package_environment, rpm, srpm, yum_repo_metadata_file, iso, puppet_module]
Content types loaded.
Ensuring the admin role and user are in place.
Admin role and user are in place.
Beginning database migrations.
Migration package pulp.server.db.migrations is up to date at version 12
Migration package pulp_puppet.plugins.migrations is up to date at version 2
Migration package pulp_rpm.plugins.migrations is up to date at version 19
Database migrations complete.

What can I do now?

Best regards,
Thomas.

··· On Tuesday, July 28, 2015 at 4:34:52 PM UTC+2, stephen wrote: > > On Tue, Jul 28, 2015 at 06:44:09AM -0700, tbn wrote: > > Hello all, > > > > Katello Installer fails: > > > > # katello-installer > > pulp-manage-db && touch /var/lib/pulp/init.flag returned 1 instead of > one > > of [0] > > /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: change from > > notrun to 0 failed: pulp-manage-db && touch /var/lib/pulp/init.flag > > returned 1 instead of one of [0] > > This is actually the first error, the failing seeds is only a result of > this. > > What happens if you run this? > sudo -u apache /usr/bin/pulp-manage-db > > Is mongo started? > > > > /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_proxy::Register/Foreman_smartproxy[ol7-dep.xmpl.lan]: > > Failed to call refresh: Proxy ol7-dep.tiri.lan cannot be registered > (Could > > not load data from https://ol7-dep.tiri.lan > > > /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ol7-dep.xmpl.lan]: > > Proxy ol7-dep.tiri.lan cannot be registered (Could not load data from > > https://ol7-dep.tiri.lan > > Installing Done > > [100%] > > > [.....................................................................................] > > > Something went wrong! Check the log for ERROR-level output > > The full log is at /var/log/katello-installer/katello-installer.log > > > > As it seems there is a problem with foreman-rake, here is the > trace-output. > > > > # foreman-rake db:seed --trace > > Performance on MRI may be improved with the concurrent-ruby-ext gem. > Please > > see http://concurrent-ruby.com > > ** Invoke db:seed (first_time) > > ** Execute db:seed > > ** Invoke db:abort_if_pending_migrations (first_time) > > ** Invoke environment (first_time) > > ** Execute environment > > ** Invoke db:load_config (first_time) > > ** Execute db:load_config > > ** Execute db:abort_if_pending_migrations > > Seeding /usr/share/foreman/db/seeds.d/03-auth_sources.rb > > Seeding /usr/share/foreman/db/seeds.d/03-permissions.rb > > Seeding /usr/share/foreman/db/seeds.d/03-roles.rb > > Seeding /usr/share/foreman/db/seeds.d/04-admin.rb > > Seeding /usr/share/foreman/db/seeds.d/05-taxonomies.rb > > Seeding /usr/share/foreman/db/seeds.d/06-architectures.rb > > Seeding /usr/share/foreman/db/seeds.d/07-provisioning_templates.rb > > Seeding /usr/share/foreman/db/seeds.d/08-partition_tables.rb > > Seeding /usr/share/foreman/db/seeds.d/10-installation_media.rb > > Seeding /usr/share/foreman/db/seeds.d/11-smart_proxy_features.rb > > Seeding /usr/share/foreman/db/seeds.d/13-compute_profiles.rb > > Seeding /usr/share/foreman/db/seeds.d/15-bookmarks.rb > > Seeding /usr/share/foreman/db/seeds.d/16-mail_notifications.rb > > Seeding > > > /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.7.1/db/seeds.d/20-foreman_tasks_permissions.rb > > > Seeding > > > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-6.0.0/db/seeds.d/50-bootdisk_templates.rb > > > All seed files executed > > rake aborted! > > Connection refused - connect(2) > > /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in `initialize' > > /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in `open' > > /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in `block in > connect' > > /opt/rh/ruby193/root/usr/share/ruby/timeout.rb:69:in `timeout' > > /opt/rh/ruby193/root/usr/share/ruby/timeout.rb:100:in `timeout' > > /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in `connect' > > /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:756:in `do_start' > > /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:745:in `start' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:44:in > > > `transmit' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in > > > `execute' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in > > > `execute' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in > > > `get' > > > /opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.5/lib/runcible/base.rb:91:in > > > `get_response' > > > /opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.5/lib/runcible/base.rb:79:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.5/lib/runcible/resources/event_notifier.rb:71:in > > > `list' > > > /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/app/models/katello/glue/pulp/repo.rb:33:in > > > `ensure_sync_notification' > > /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/db/seeds.rb:31:in > > `' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in > > > `load' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in > > > `block in load' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in > > > `load_dependency' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in > > > `load' > > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:520:in > > > `load_seed' > > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in > > > `method_missing' > > > /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/lib/katello/engine.rb:154:in > > > `block (2 levels) in ' > > /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `call' > > /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `block in > execute' > > /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `each' > > /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `execute' > > /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in `block in > > invoke_with_call_chain' > > /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize' > > /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in > > `invoke_with_call_chain' > > /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in `invoke' > > /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in > `invoke_task' > > /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block (2 > > levels) in top_level' > > /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `each' > > /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block in > > top_level' > > /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in > > `standard_exception_handling' > > /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:in > `top_level' > > /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in `block in > run' > > /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in > > `standard_exception_handling' > > /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in `run' > > /opt/rh/ruby193/root/usr/bin/rake:32:in `' > > Tasks: TOP => db:seed > > > > How can it being solved? > > > > Any help is appreciated. > > > > Thomas. > > > > -- > > 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 http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > > -- > Best Regards, > > Stephen Benjamin > Red Hat Engineering >

Hello,
if I recall the mongodb service is in fact called 'mongod'. Could you check if it is running with
this name?

··· --- Adam Ruzicka aruzicka@redhat.com

On Tuesday 28 of July 2015 23:15:49 tbn wrote:

Hello Stephen,

systemctl status mongodb

mongodb.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)

systemctl start mongodb.service

Failed to issue method call: Unit mongodb.service failed to load: No
such file or directory.

but this seems to work:

sudo -u apache /usr/bin/pulp-manage-db

Mongo database for connection is version 2.6.9
Loading content types.
Loading type descriptors [docker.json, nodes.json, rpm_support.json,
iso_support.json, puppet.json]
Parsing type descriptors
Validating type descriptor syntactic integrity
Validating type descriptor semantic integrity
Updating the database with types [docker_image, repository, node,
distribution, drpm, erratum, package_group, package_category,
package_environment, rpm, srpm, yum_repo_metadata_file, iso,
puppet_module] Content types loaded.
Ensuring the admin role and user are in place.
Admin role and user are in place.
Beginning database migrations.
Migration package pulp.server.db.migrations is up to date at version
12 Migration package pulp_puppet.plugins.migrations is up to date at
version 2 Migration package pulp_rpm.plugins.migrations is up to date
at version 19 Database migrations complete.

What can I do now?

Best regards,
Thomas.

On Tuesday, July 28, 2015 at 4:34:52 PM UTC+2, stephen wrote:

On Tue, Jul 28, 2015 at 06:44:09AM -0700, tbn wrote:

Hello all,

Katello Installer fails:

katello-installer

pulp-manage-db && touch /var/lib/pulp/init.flag returned 1
instead of

one

of [0]

/Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: change
from

notrun to 0 failed: pulp-manage-db && touch
/var/lib/pulp/init.flag
returned 1 instead of one of [0]

This is actually the first error, the failing seeds is only a result
of this.

What happens if you run this?

sudo -u apache /usr/bin/pulp-manage-db

Is mongo started?

/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_proxy::Register/Foreman_smartproxy[ol7-dep.xmpl.lan]:

Failed to call refresh: Proxy ol7-dep.tiri.lan cannot be
registered

(Could

not load data from https://ol7-dep.tiri.lan

/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ol7-dep.xmpl.lan]:

Proxy ol7-dep.tiri.lan cannot be registered (Could not load data
from
https://ol7-dep.tiri.lan
Installing Done
[100%]

[…
…]>

Something went wrong! Check the log for ERROR-level output
The full log is at
/var/log/katello-installer/katello-installer.log

As it seems there is a problem with foreman-rake, here is the

trace-output.

foreman-rake db:seed --trace

Performance on MRI may be improved with the concurrent-ruby-ext
gem.

Please

see http://concurrent-ruby.com
** Invoke db:seed (first_time)
** Execute db:seed
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:abort_if_pending_migrations
Seeding /usr/share/foreman/db/seeds.d/03-auth_sources.rb
Seeding /usr/share/foreman/db/seeds.d/03-permissions.rb
Seeding /usr/share/foreman/db/seeds.d/03-roles.rb
Seeding /usr/share/foreman/db/seeds.d/04-admin.rb
Seeding /usr/share/foreman/db/seeds.d/05-taxonomies.rb
Seeding /usr/share/foreman/db/seeds.d/06-architectures.rb

[root@ol7-dep ~]# ps -efw |grep mon[g]
mongodb 1656 1 6 15:07 ? 00:00:01 /usr/bin/mongod --quiet -f
/etc/mongod.conf run

ps -ef |grep htt[p]

root 1384 1 0 15:07 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 2219 1384 0 15:07 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 2220 1384 0 15:07 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 2221 1384 0 15:07 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 2222 1384 0 15:07 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 2223 1384 0 15:07 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 2224 1384 0 15:07 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 2225 1384 0 15:07 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 2226 1384 0 15:07 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 2872 1384 0 15:08 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND

But now I get:

[root@ol7-dep ~]# katello-installer
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ol7-dep.tiri.lan]:
Could not evaluate: Proxy ol7-dep.tiri.lan cannot be registered (Could not
load data from https://ol7-dep.tiri.lan
Installing Done
[100%] […]
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/katello-installer/katello-installer.log

The last lines from log:

[DEBUG 2015-07-29 15:12:24 main]
/File[/etc/puppet/environments/production]/seluser: Found seluser default
'system_u' for /etc/puppet/environments/production
[DEBUG 2015-07-29 15:12:24 main]
/File[/etc/puppet/environments/production]/selrole: Found selrole default
'object_r' for /etc/puppet/environments/production
[DEBUG 2015-07-29 15:12:24 main]
/File[/etc/puppet/environments/production]/seltype: Found seltype default
'puppet_etc_t' for /etc/puppet/environments/production
[DEBUG 2015-07-29 15:12:24 main]
/File[/etc/puppet/environments/production]/selrange: Found selrange
default 's0' for /etc/puppet/environments/production
[DEBUG 2015-07-29 15:12:24 main] Finishing transaction 38616460
[DEBUG 2015-07-29 15:12:24 main] Received report to process from
ol7-dep.tiri.lan
[DEBUG 2015-07-29 15:12:24 main] Processing report from ol7-dep.tiri.lan
with processor Puppet::Reports::Store
[ INFO 2015-07-29 15:12:28 main] Puppet has finished, bye!
[ INFO 2015-07-29 15:12:28 main] Executing hooks in group post
[DEBUG 2015-07-29 15:12:28 main] Hook
/usr/share/katello-installer/hooks/post/10-post_install.rb returned nil
[DEBUG 2015-07-29 15:12:28 main] Hook
/usr/share/katello-installer/hooks/post/30-upgrade.rb returned nil
[ INFO 2015-07-29 15:12:28 main] All hooks in group post finished
[DEBUG 2015-07-29 15:12:28 main] Exit with status code: 6 (signal was 6)
[ERROR 2015-07-29 15:12:28 main] Repeating errors encountered during run:
[ERROR 2015-07-29 15:12:28 main]
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ol7-dep.tiri.lan]:
Could not evaluate: Proxy ol7-dep.tiri.lan cannot be registered (Could not
load data from https://ol7-dep.tiri.lan
[DEBUG 2015-07-29 15:12:28 main] Cleaning
/etc/katello-installer/d20150729-3217-1jyb84b
[DEBUG 2015-07-29 15:12:28 main] Cleaning /tmp/default_values.yaml

Any help is still appreciated.
Thomas-

··· On Wednesday, July 29, 2015 at 3:03:23 PM UTC+2, Adam Ruzicka wrote: > > Hello, > > if I recall the mongodb service is in fact called 'mongod'. Could you > check if it is running with this name? > > > > --- > > Adam Ruzicka > > aruz...@redhat.com > > > > On Tuesday 28 of July 2015 23:15:49 tbn wrote: > > > Hello Stephen, > > > > > > # systemctl status mongodb > > > mongodb.service > > > Loaded: not-found (Reason: No such file or directory) > > > Active: inactive (dead) > > > > > > # systemctl start mongodb.service > > > Failed to issue method call: Unit mongodb.service failed to load: No > > > such file or directory. > > > > > > but this seems to work: > > > > > > # sudo -u apache /usr/bin/pulp-manage-db > > > Mongo database for connection is version 2.6.9 > > > Loading content types. > > > Loading type descriptors [docker.json, nodes.json, rpm_support.json, > > > iso_support.json, puppet.json] > > > Parsing type descriptors > > > Validating type descriptor syntactic integrity > > > Validating type descriptor semantic integrity > > > Updating the database with types [docker_image, repository, node, > > > distribution, drpm, erratum, package_group, package_category, > > > package_environment, rpm, srpm, yum_repo_metadata_file, iso, > > > puppet_module] Content types loaded. > > > Ensuring the admin role and user are in place. > > > Admin role and user are in place. > > > Beginning database migrations. > > > Migration package pulp.server.db.migrations is up to date at version > > > 12 Migration package pulp_puppet.plugins.migrations is up to date at > > > version 2 Migration package pulp_rpm.plugins.migrations is up to date > > > at version 19 Database migrations complete. > > > > > > What can I do now? > > > > > > Best regards, > > > Thomas. > > > > > > On Tuesday, July 28, 2015 at 4:34:52 PM UTC+2, stephen wrote: > > > > On Tue, Jul 28, 2015 at 06:44:09AM -0700, tbn wrote: > > > > > Hello all, > > > > > > > > > > Katello Installer fails: > > > > > > > > > > # katello-installer > > > > > > > > > > pulp-manage-db && touch /var/lib/pulp/init.flag returned 1 > > > > > instead of > > > > > > > > one > > > > > > > > > of [0] > > > > > > > > > > /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: change > > > > > from > > > > > > > > > > notrun to 0 failed: pulp-manage-db && touch > > > > > /var/lib/pulp/init.flag > > > > > returned 1 instead of one of [0] > > > > > > > > This is actually the first error, the failing seeds is only a result > > > > of this. > > > > > > > > What happens if you run this? > > > > > > > > sudo -u apache /usr/bin/pulp-manage-db > > > > > > > > Is mongo started? > > > > > > > > > /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_proxy::Register/Foreman_smartproxy[ol7-dep.xmpl.lan]: > > > > > Failed to call refresh: Proxy ol7-dep.tiri.lan cannot be > > > > > registered > > > > > > > > (Could > > > > > > > > > not load data from https://ol7-dep.tiri.lan > > > > > > > > > /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ol7-dep.xmpl.lan]: > > > > > Proxy ol7-dep.tiri.lan cannot be registered (Could not load data > > > > > from > > > > > https://ol7-dep.tiri.lan > > > > > Installing Done > > > > > [100%] > > > > > > > > [................................................................... > > > > ..................]> > > > > > Something went wrong! Check the log for ERROR-level output > > > > > The full log is at > > > > > /var/log/katello-installer/katello-installer.log > > > > > > > > > > As it seems there is a problem with foreman-rake, here is the > > > > > > > > trace-output. > > > > > > > > > # foreman-rake db:seed --trace > > > > > Performance on MRI may be improved with the concurrent-ruby-ext > > > > > gem. > > > > > > > > Please > > > > > > > > > see http://concurrent-ruby.com > > > > > ** Invoke db:seed (first_time) > > > > > ** Execute db:seed > > > > > ** Invoke db:abort_if_pending_migrations (first_time) > > > > > ** Invoke environment (first_time) > > > > > ** Execute environment > > > > > ** Invoke db:load_config (first_time) > > > > > ** Execute db:load_config > > > > > ** Execute db:abort_if_pending_migrations > > > > > Seeding /usr/share/foreman/db/seeds.d/03-auth_sources.rb > > > > > Seeding /usr/share/foreman/db/seeds.d/03-permissions.rb > > > > > Seeding /usr/share/foreman/db/seeds.d/03-roles.rb > > > > > Seeding /usr/share/foreman/db/seeds.d/04-admin.rb > > > > > Seeding /usr/share/foreman/db/seeds.d/05-taxonomies.rb > > > > > Seeding /usr/share/foreman/db/seeds.d/06-architectures.rb > > > > > Seeding /usr/share/foreman/db/seeds.d/07-provisioning_templates.rb > > > > > Seeding /usr/share/foreman/db/seeds.d/08-partition_tables.rb > > > > > Seeding /usr/share/foreman/db/seeds.d/10-installation_media.rb > > > > > Seeding /usr/share/foreman/db/seeds.d/11-smart_proxy_features.rb > > > > > Seeding /usr/share/foreman/db/seeds.d/13-compute_profiles.rb > > > > > Seeding /usr/share/foreman/db/seeds.d/15-bookmarks.rb > > > > > Seeding /usr/share/foreman/db/seeds.d/16-mail_notifications.rb > > > > > Seeding > > > > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.7.1/db/seed > > > > s.d/20-foreman_tasks_permissions.rb> > > > > > Seeding > > > > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-6.0.0/db/s > > > > eeds.d/50-bootdisk_templates.rb> > > > > > All seed files executed > > > > > rake aborted! > > > > > Connection refused - connect(2) > > > > > /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in > > > > > `initialize' > > > > > /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in `open' > > > > > /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in `block in > > > > > > > > connect' > > > > > > > > > /opt/rh/ruby193/root/usr/share/ruby/timeout.rb:69:in `timeout' > > > > > /opt/rh/ruby193/root/usr/share/ruby/timeout.rb:100:in `timeout' > > > > > /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:763:in `connect' > > > > > /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:756:in `do_start' > > > > > /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:745:in `start' > > > > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclie > > > > nt_ext/request.rb:44:in> > > > > > `transmit' > > > > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restc > > > > lient/request.rb:64:in> > > > > > `execute' > > > > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restc > > > > lient/request.rb:33:in> > > > > > `execute' > > > > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restc > > > > lient/resource.rb:51:in> > > > > > `get' > > > > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.5/lib/runcible > > > > /base.rb:91:in> > > > > > `get_response' > > > > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.5/lib/runcible > > > > /base.rb:79:in> > > > > > `call' > > > > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.5/lib/runcible > > > > /resources/event_notifier.rb:71:in> > > > > > `list' > > > > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/app/models/ka > > > > tello/glue/pulp/repo.rb:33:in> > > > > > `ensure_sync_notification' > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/db/seeds.rb > > > > > :31:in `' > > > > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/act > > > > ive_support/dependencies.rb:245:in> > > > > > `load' > > > > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/act > > > > ive_support/dependencies.rb:245:in> > > > > > `block in load' > > > > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/act > > > > ive_support/dependencies.rb:236:in> > > > > > `load_dependency' > > > > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/act > > > > ive_support/dependencies.rb:245:in> > > > > > `load' > > > > > > > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/en > > > > gine.rb:520:in> > ...