Project

General

Profile

Bug #16871

katello-restore fails with foreman-rake db:seed returned 1

Added by Cameron Berkley over 5 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Backup & Restore
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Running katello-restore on a newly-installed katello instance fails with the following output:

WARNING: This script will drop and restore your database.
Your existing installation will be replaced with the backup database.
Once this operation is complete there is no going back.
Are you sure(Y/N)? Y
.
Setting file security
Done.
Resetting Katello
Redirecting to /bin/systemctl stop httpd.service
Info: Loading facts : 0 00:00:00
Debug: Puppet::Type::Package::ProviderAptrpm: file: 0 0.0/s 00:00:03
Debug: Caching environment 'production' (ttl = 0 s: 0 0.0/s 00:00:04
Debug: hiera(): Looking up foreman::config::passen: 0 0.0/s 00:00:05
Debug: hiera(): Cannot find datafile /var/lib/hier: 0 0.0/s 00:00:06
Debug: Automatically imported postgresql::server::: 0 0.0/s 00:00:08
Debug: hiera(): Looking up certs::qpid_client::hos: 0 0.0/s 00:00:09
Debug: importing '/usr/share/katello-installer-bas: 0 0.0/s 00:00:10
Debug: hiera(): Looking up certs::foreman_proxy::d: 0 0.0/s 00:00:11
Debug: Automatically imported puppet::agent::servi: 0 0.0/s 00:00:12
Debug: template[/usr/share/foreman-installer/modul: 0 0.0/s 00:00:13
Debug: template[/usr/share/foreman-installer/modul: 0 0.0/s 00:00:14
^C/usr/bin/katello-restore:30:in ``': Interrupt
from /usr/bin/katello-restore:30:in `restore'
from /usr/bin/katello-restore:57:in `confirm'
from /usr/bin/katello-restore:65:in `<main>'

[root@katello backup_3_0]# katello-restore .
WARNING: This script will drop and restore your database.
Your existing installation will be replaced with the backup database.
Once this operation is complete there is no going back.
Are you sure(Y/N)? Y
.
Setting file security
Done.
Resetting Katello
Redirecting to /bin/systemctl stop httpd.service
Info: Loading facts : 0 00:00:00
Debug: Puppet::Type::Package::ProviderAptrpm: file: 0 0.0/s 00:00:03
Debug: Caching environment 'production' (ttl = 0 s: 0 0.0/s 00:00:04
Debug: hiera(): Looking up foreman::config::passen: 0 0.0/s 00:00:05
Debug: hiera(): Cannot find datafile /var/lib/hier: 0 0.0/s 00:00:06
Debug: Automatically imported postgresql::server::: 0 0.0/s 00:00:08
Debug: hiera(): Looking up certs::qpid_client::hos: 0 0.0/s 00:00:09
Debug: importing '/usr/share/katello-installer-bas: 0 0.0/s 00:00:10
Debug: hiera(): Cannot find datafile /var/lib/hier: 0 0.0/s 00:00:11
Debug: Automatically imported puppet::agent::servi: 0 0.0/s 00:00:12
Debug: template[/usr/share/foreman-installer/modul: 0 0.0/s 00:00:13
Debug: template[/usr/share/foreman-installer/modul: 0 0.0/s 00:00:15
Warning: Scope(Concat::Fragment[Listen 8140]): The: 0 0.0/s 00:00:16
Debug: Caching environment 'production' (ttl = 0 s: 0 0.0/s 00:00:18
Debug: Using settings: adding file resource 'hostp: 0 0.0/s 00:00:20
Debug: /Stage[main]/Apache::Mod::Passenger/Apache:: 0/738, 0%, 0.0/s, elapsed: 00:00:21
Info: Applying configuration version '1476217180' : 0/738, 0%, 0.0/s, elapsed: 00:00:22
Info: RESOURCE Package[ca-certificates] : 81/738, 10%, 3.6/s, elapsed: 00:00:26, ETA: 00:03:01
Info: RESOURCE Concat_fragment[crane-docroot] : 202/738, 27%, 3.6/s, elapsed: 00:00:27, ETA: 00:02:28
Debug: /Stage[main]/Foreman::Database::Postgresql/: 550/738, 74%, 42.1/s, elapsed: 00:00:28, ETA: 00:00:04
Debug: /Stage[main]/Candlepin::Database::Postgresq: 569/738, 77%, 42.1/s, elapsed: 00:00:29, ETA: 00:00:04
Notice: /Stage[main]/Candlepin::Database::Postgres: 574/738, 77%, 42.3/s, elapsed: 00:00:55, ETA: 00:00:03
Notice: /Stage[main]/Foreman::Database::Postgresql: 610/738, 82%, 42.3/s, elapsed: 00:00:56, ETA: 00:00:03
Debug: /Stage[main]/Foreman::Config/Cron[daily sum: 737/738, 99%, 55.2/s, elapsed: 00:00:57
Debug: Executing '/usr/sbin/foreman-rake -- config: 737/738, 99%, 55.2/s, elapsed: 00:01:13
Notice: /Stage[main]/Foreman::Database/Foreman_con: 737/738, 99%, 55.2/s, elapsed: 00:01:29
Notice: /Stage[main]/Foreman::Database/Foreman::Ra: 737/738, 99%, 51.6/s, elapsed: 00:01:58
Notice: /Stage[main]/Foreman::Database/Foreman_con: 737/738, 99%, 13.1/s, elapsed: 00:02:16
Info: RESOURCE Exec[generate-nss-password] : 737/738, 99%, 13.1/s, elapsed: 00:02:17
Notice: /Stage[main]/Certs::Candlepin/Exec[import : 737/738, 99%, 12.9/s, elapsed: 00:02:19
Debug: Executing '/usr/bin/systemctl is-enabled ht: 737/738, 99%, 0.0/s, elapsed: 00:02:21
Info: RESOURCE Qpid::Router::Link_route_pattern[br: 737/738, 99%, 0.0/s, elapsed: 00:02:22
Info: RESOURCE Concat::Fragment[qdrouter+ssl_clien: 737/738, 99%, 0.0/s, elapsed: 00:02:24
Info: RESOURCE Concat_file[/etc/qpid-dispatch/qdro: 737/738, 99%, 0.0/s, elapsed: 00:02:25
Debug: /Stage[main]/Katello::Qpid/Exec[bind katell: 737/738, 99%, 0.0/s, elapsed: 00:02:28
Notice: /Stage[main]/Katello::Qpid/Exec[bind katel: 737/738, 99%, 0.0/s, elapsed: 00:02:30
Debug: /Stage[main]/Katello::Qpid/Exec[create kate: 737/738, 99%, 0.0/s, elapsed: 00:02:33
Notice: /Stage[main]/Foreman::Database/Foreman::Ra: 737/738, 99%, 0.0/s, elapsed: 00:04:17
/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]
Info: RESOURCE Foreman_config_entry[pulp_client_ce: 737/738, 99%, 0.0/s, elapsed: 00:04:38
Debug: Executing '/usr/bin/systemctl is-enabled fo: 737/738, 99%, 0.0/s, elapsed: 00:04:49
Info: RESOURCE Foreman_config_entry[pulp_client_ke: 737/738, 99%, 0.0/s, elapsed: 00:05:32
Debug: /Stage[main]/Certs::Foreman/Exec[foreman_ce: 737/738, 99%, 0.0/s, elapsed: 00:05:52
Notice: /Stage[main]/Certs::Foreman/Exec[foreman_c: 737/738, 99%, 0.0/s, elapsed: 00:06:11
Notice: /Stage[main]/Foreman_proxy::Register/Forem: 737/738, 99%, 0.0/s, elapsed: 00:06:44
Done : 738/738, 100%, 0.0/s, elapsed: 00:06:47
Done : 738/738, 100%, 0.0/s, elapsed: 00:06:47
Done.
Stopping Katello services
Redirecting to /bin/systemctl stop foreman-tasks.service
Redirecting to /bin/systemctl stop httpd.service
Redirecting to /bin/systemctl stop pulp_workers.service
Redirecting to /bin/systemctl stop pulp_resource_manager.service
Redirecting to /bin/systemctl stop pulp_celerybeat.service
Redirecting to /bin/systemctl stop foreman-proxy.service
Redirecting to /bin/systemctl stop tomcat.service
Redirecting to /bin/systemctl stop qdrouterd.service
Redirecting to /bin/systemctl stop qpidd.service
Redirecting to /bin/systemctl stop postgresql.service
Redirecting to /bin/systemctl stop mongod.service
Redirecting to /bin/systemctl stop postgresql.service
Done.
Restoring backend data
Done.
Restarting all Katello processes
Redirecting to /bin/systemctl start postgresql.service
Redirecting to /bin/systemctl start mongod.service
Redirecting to /bin/systemctl start postgresql.service
Redirecting to /bin/systemctl start qpidd.service
Redirecting to /bin/systemctl start qdrouterd.service
Redirecting to /bin/systemctl start tomcat.service
Redirecting to /bin/systemctl start foreman-proxy.service
Redirecting to /bin/systemctl start pulp_celerybeat.service
Redirecting to /bin/systemctl start pulp_resource_manager.service
Redirecting to /bin/systemctl start pulp_workers.service
Redirecting to /bin/systemctl start httpd.service
Redirecting to /bin/systemctl start foreman-tasks.service
Done.
WARNING: This script will drop and restore your database.
Your existing installation will be replaced with the backup database.
Once this operation is complete there is no going back.
Are you sure(Y/N)? Y
.
Setting file security
Done.
Resetting Katello
Redirecting to /bin/systemctl stop httpd.service
Info: Loading facts : 0 00:00:00
Debug: Puppet::Type::Package::ProviderAptrpm: file: 0 0.0/s 00:00:03
Debug: Caching environment 'production' (ttl = 0 s: 0 0.0/s 00:00:04
Debug: hiera(): Looking up foreman::config::passen: 0 0.0/s 00:00:05
Debug: hiera(): Cannot find datafile /var/lib/hier: 0 0.0/s 00:00:06
Debug: Automatically imported postgresql::server::: 0 0.0/s 00:00:08
Debug: hiera(): Looking up certs::qpid_client::hos: 0 0.0/s 00:00:09
Debug: importing '/usr/share/katello-installer-bas: 0 0.0/s 00:00:10
Debug: hiera(): Looking up certs::foreman_proxy::d: 0 0.0/s 00:00:11
Debug: Automatically imported puppet::agent::servi: 0 0.0/s 00:00:12
Debug: template[/usr/share/foreman-installer/modul: 0 0.0/s 00:00:13
Debug: template[/usr/share/foreman-installer/modul: 0 0.0/s 00:00:14
^C/usr/bin/katello-restore:30:in ``': Interrupt
from /usr/bin/katello-restore:30:in `restore'
from /usr/bin/katello-restore:57:in `confirm'
from /usr/bin/katello-restore:65:in `<main>'

[root@katello backup_3_0]# katello-restore .
WARNING: This script will drop and restore your database.
Your existing installation will be replaced with the backup database.
Once this operation is complete there is no going back.
Are you sure(Y/N)? Y
.
Setting file security
Done.
Resetting Katello
Redirecting to /bin/systemctl stop httpd.service
Info: Loading facts : 0 00:00:00
Debug: Puppet::Type::Package::ProviderAptrpm: file: 0 0.0/s 00:00:03
Debug: Caching environment 'production' (ttl = 0 s: 0 0.0/s 00:00:04
Debug: hiera(): Looking up foreman::config::passen: 0 0.0/s 00:00:05
Debug: hiera(): Cannot find datafile /var/lib/hier: 0 0.0/s 00:00:06
Debug: Automatically imported postgresql::server::: 0 0.0/s 00:00:08
Debug: hiera(): Looking up certs::qpid_client::hos: 0 0.0/s 00:00:09
Debug: importing '/usr/share/katello-installer-bas: 0 0.0/s 00:00:10
Debug: hiera(): Cannot find datafile /var/lib/hier: 0 0.0/s 00:00:11
Debug: Automatically imported puppet::agent::servi: 0 0.0/s 00:00:12
Debug: template[/usr/share/foreman-installer/modul: 0 0.0/s 00:00:13
Debug: template[/usr/share/foreman-installer/modul: 0 0.0/s 00:00:15
Warning: Scope(Concat::Fragment[Listen 8140]): The: 0 0.0/s 00:00:16
Debug: Caching environment 'production' (ttl = 0 s: 0 0.0/s 00:00:18
Debug: Using settings: adding file resource 'hostp: 0 0.0/s 00:00:20
Debug: /Stage[main]/Apache::Mod::Passenger/Apache:: 0/738, 0%, 0.0/s, elapsed: 00:00:21
Info: Applying configuration version '1476217180' : 0/738, 0%, 0.0/s, elapsed: 00:00:22
Info: RESOURCE Package[ca-certificates] : 81/738, 10%, 3.6/s, elapsed: 00:00:26, ETA: 00:03:01
Info: RESOURCE Concat_fragment[crane-docroot] : 202/738, 27%, 3.6/s, elapsed: 00:00:27, ETA: 00:02:28
Debug: /Stage[main]/Foreman::Database::Postgresql/: 550/738, 74%, 42.1/s, elapsed: 00:00:28, ETA: 00:00:04
Debug: /Stage[main]/Candlepin::Database::Postgresq: 569/738, 77%, 42.1/s, elapsed: 00:00:29, ETA: 00:00:04
Notice: /Stage[main]/Candlepin::Database::Postgres: 574/738, 77%, 42.3/s, elapsed: 00:00:55, ETA: 00:00:03
Notice: /Stage[main]/Foreman::Database::Postgresql: 610/738, 82%, 42.3/s, elapsed: 00:00:56, ETA: 00:00:03
Debug: /Stage[main]/Foreman::Config/Cron[daily sum: 737/738, 99%, 55.2/s, elapsed: 00:00:57
Debug: Executing '/usr/sbin/foreman-rake -- config: 737/738, 99%, 55.2/s, elapsed: 00:01:13
Notice: /Stage[main]/Foreman::Database/Foreman_con: 737/738, 99%, 55.2/s, elapsed: 00:01:29
Notice: /Stage[main]/Foreman::Database/Foreman::Ra: 737/738, 99%, 51.6/s, elapsed: 00:01:58
Notice: /Stage[main]/Foreman::Database/Foreman_con: 737/738, 99%, 13.1/s, elapsed: 00:02:16
Info: RESOURCE Exec[generate-nss-password] : 737/738, 99%, 13.1/s, elapsed: 00:02:17
Notice: /Stage[main]/Certs::Candlepin/Exec[import : 737/738, 99%, 12.9/s, elapsed: 00:02:19
Debug: Executing '/usr/bin/systemctl is-enabled ht: 737/738, 99%, 0.0/s, elapsed: 00:02:21
Info: RESOURCE Qpid::Router::Link_route_pattern[br: 737/738, 99%, 0.0/s, elapsed: 00:02:22
Info: RESOURCE Concat::Fragment[qdrouter+ssl_clien: 737/738, 99%, 0.0/s, elapsed: 00:02:24
Info: RESOURCE Concat_file[/etc/qpid-dispatch/qdro: 737/738, 99%, 0.0/s, elapsed: 00:02:25
Debug: /Stage[main]/Katello::Qpid/Exec[bind katell: 737/738, 99%, 0.0/s, elapsed: 00:02:28
Notice: /Stage[main]/Katello::Qpid/Exec[bind katel: 737/738, 99%, 0.0/s, elapsed: 00:02:30
Debug: /Stage[main]/Katello::Qpid/Exec[create kate: 737/738, 99%, 0.0/s, elapsed: 00:02:33
Notice: /Stage[main]/Foreman::Database/Foreman::Ra: 737/738, 99%, 0.0/s, elapsed: 00:04:17
/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]
Info: RESOURCE Foreman_config_entry[pulp_client_ce: 737/738, 99%, 0.0/s, elapsed: 00:04:38
Debug: Executing '/usr/bin/systemctl is-enabled fo: 737/738, 99%, 0.0/s, elapsed: 00:04:49
Info: RESOURCE Foreman_config_entry[pulp_client_ke: 737/738, 99%, 0.0/s, elapsed: 00:05:32
Debug: /Stage[main]/Certs::Foreman/Exec[foreman_ce: 737/738, 99%, 0.0/s, elapsed: 00:05:52
Notice: /Stage[main]/Certs::Foreman/Exec[foreman_c: 737/738, 99%, 0.0/s, elapsed: 00:06:11
Notice: /Stage[main]/Foreman_proxy::Register/Forem: 737/738, 99%, 0.0/s, elapsed: 00:06:44
Done : 738/738, 100%, 0.0/s, elapsed: 00:06:47
Done : 738/738, 100%, 0.0/s, elapsed: 00:06:47
Done.
Stopping Katello services
Redirecting to /bin/systemctl stop foreman-tasks.service
Redirecting to /bin/systemctl stop httpd.service
Redirecting to /bin/systemctl stop pulp_workers.service
Redirecting to /bin/systemctl stop pulp_resource_manager.service
Redirecting to /bin/systemctl stop pulp_celerybeat.service
Redirecting to /bin/systemctl stop foreman-proxy.service
Redirecting to /bin/systemctl stop tomcat.service
Redirecting to /bin/systemctl stop qdrouterd.service
Redirecting to /bin/systemctl stop qpidd.service
Redirecting to /bin/systemctl stop postgresql.service
Redirecting to /bin/systemctl stop mongod.service
Redirecting to /bin/systemctl stop postgresql.service
Done.
Restoring backend data
Done.
Restarting all Katello processes
Redirecting to /bin/systemctl start postgresql.service
Redirecting to /bin/systemctl start mongod.service
Redirecting to /bin/systemctl start postgresql.service
Redirecting to /bin/systemctl start qpidd.service
Redirecting to /bin/systemctl start qdrouterd.service
Redirecting to /bin/systemctl start tomcat.service
Redirecting to /bin/systemctl start foreman-proxy.service
Redirecting to /bin/systemctl start pulp_celerybeat.service
Redirecting to /bin/systemctl start pulp_resource_manager.service
Redirecting to /bin/systemctl start pulp_workers.service
Redirecting to /bin/systemctl start httpd.service
Redirecting to /bin/systemctl start foreman-tasks.service
Done.

If foreman-rake db:seed --trace is run manually it fails with the following output:

  • Invoke db:seed (first_time)
  • Execute db:seed
  • Invoke db:abort_if_pending_migrations (first_time)
  • Invoke environment (first_time)
  • Execute environment
    rake aborted!
    ActiveRecord::StatementInvalid: PG::Error: ERROR: relation "schema_migrations" already exists
    : CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in `exec'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in `block in execute'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract_adapter.rb:373:in `block in log'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract_adapter.rb:367:in `log'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/postgresql/database_statements.rb:127:in `execute'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/schema_statements.rb:205:in `create_table'
    /opt/theforeman/tfm/root/usr/share/gems/gems/foreigner-1.7.1/lib/foreigner/connection_adapters/abstract/schema_statements.rb:14:in `create_table'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/schema_migration.rb:26:in `create_table'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/schema_statements.rb:656:in `initialize_schema_migrations_table'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:919:in `initialize'
    /usr/share/foreman/app/services/foreman/plugin.rb:239:in `new'
    /usr/share/foreman/app/services/foreman/plugin.rb:239:in `pending_migrations'
    /usr/share/foreman/app/services/foreman/plugin.rb:215:in `permission'
    /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.1.1/lib/foreman_docker/engine.rb:62:in `block (3 levels) in <class:Engine>'
    /usr/share/foreman/app/services/foreman/plugin.rb:206:in `instance_eval'
    /usr/share/foreman/app/services/foreman/plugin.rb:206:in `security_block'
    /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.1.1/lib/foreman_docker/engine.rb:61:in `block (2 levels) in <class:Engine>'
    /usr/share/foreman/app/services/foreman/plugin.rb:64:in `instance_eval'
    /usr/share/foreman/app/services/foreman/plugin.rb:64:in `register'
    /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.1.1/lib/foreman_docker/engine.rb:44:in `block in <class:Engine>'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:30:in `instance_exec'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:30:in `run'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/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/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:54:in `run_initializers'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/application.rb:300:in `initialize!'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/railtie.rb:194:in `public_send'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/railtie.rb:194:in `method_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:in `require'
    /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `block in require'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:232:in `load_dependency'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `require'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/application.rb:276:in `require_environment!'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/application.rb:379: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-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:172:in `block (2 levels) in <top (required)>'
    /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: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 `<main>'
    PG::Error: ERROR: relation "schema_migrations" already exists
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in `exec'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in `block in execute'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract_adapter.rb:373:in `block in log'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract_adapter.rb:367:in `log'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/postgresql/database_statements.rb:127:in `execute'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/schema_statements.rb:205:in `create_table'
    /opt/theforeman/tfm/root/usr/share/gems/gems/foreigner-1.7.1/lib/foreigner/connection_adapters/abstract/schema_statements.rb:14:in `create_table'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/schema_migration.rb:26:in `create_table'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/schema_statements.rb:656:in `initialize_schema_migrations_table'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:919:in `initialize'
    /usr/share/foreman/app/services/foreman/plugin.rb:239:in `new'
    /usr/share/foreman/app/services/foreman/plugin.rb:239:in `pending_migrations'
    /usr/share/foreman/app/services/foreman/plugin.rb:215:in `permission'
    /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.1.1/lib/foreman_docker/engine.rb:62:in `block (3 levels) in <class:Engine>'
    /usr/share/foreman/app/services/foreman/plugin.rb:206:in `instance_eval'
    /usr/share/foreman/app/services/foreman/plugin.rb:206:in `security_block'
    /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.1.1/lib/foreman_docker/engine.rb:61:in `block (2 levels) in <class:Engine>'
    /usr/share/foreman/app/services/foreman/plugin.rb:64:in `instance_eval'
    /usr/share/foreman/app/services/foreman/plugin.rb:64:in `register'
    /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.1.1/lib/foreman_docker/engine.rb:44:in `block in <class:Engine>'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:30:in `instance_exec'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:30:in `run'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/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/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:54:in `run_initializers'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/application.rb:300:in `initialize!'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/railtie.rb:194:in `public_send'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/railtie.rb:194:in `method_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:in `require'
    /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `block in require'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:232:in `load_dependency'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `require'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/application.rb:276:in `require_environment!'
    /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/application.rb:379: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-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:172:in `block (2 levels) in <top (required)>'
    /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: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 `<main>'
    Tasks: TOP => db:abort_if_pending_migrations => environment

History

#1 Updated by Justin Sherrill almost 5 years ago

  • Legacy Backlogs Release (now unused) deleted (171)

#2 Updated by Eric Helms almost 5 years ago

  • Status changed from New to Resolved
  • Legacy Backlogs Release (now unused) set to 166

This has been fixed in latest releases along with newer Rails packages. If you still see this on current release please re-open.

Also available in: Atom PDF