-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
5
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
3scale 2019-09-09
ActiveMerchant MODE set to 'production' No valid API key has been set, notifications will not be sent [Core] Using http://backend-listener:3000/internal/ as URL OpenIdAuthentication.store is nil. Using in-memory store. [core] non-native log levels verbose, notice, critical emulated using UNKNOWN severity Backend Internal API version 2.94.2 status: ok Connected to mysql2://root@system-mysql/system Connected to redis://system-redis:6379/1 Migrating to CreateTheBackendApisOfServices (20190716110520) == 20190716110520 CreateTheBackendApisOfServices: migrating =================== -- Migrating proxies api_backend to slugs... rake aborted! StandardError: An error has occurred, all later migrations canceled: undefined method `owner_type?' for #<Metric:0x0000000006b93858> /opt/system/vendor/bundle/ruby/2.4.0/gems/activemodel-4.2.11.1/lib/active_model/attribute_methods.rb:433:in `method_missing' /opt/system/app/models/metric.rb:251:in `fill_owner' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:432:in `block in make_lambda' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:164:in `block in halting' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:504:in `block in call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:504:in `each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:504:in `call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:778:in `_run_validation_callbacks' /opt/system/vendor/bundle/ruby/2.4.0/gems/activemodel-4.2.11.1/lib/active_model/validations/callbacks.rb:113:in `run_validations!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activemodel-4.2.11.1/lib/active_model/validations.rb:338:in `valid?' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/validations.rb:58:in `valid?' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/validations.rb:83:in `perform_validations' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/validations.rb:43:in `save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/attribute_methods/dirty.rb:29:in `save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:291:in `block in save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/deadlock_retry-1.2.0/lib/deadlock_retry.rb:31:in `transaction_with_deadlock_handling' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:291:in `save!' /opt/system/app/models/metric.rb:57:in `create_default!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:94:in `public_send' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:94:in `block in method_missing' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/associations/collection_proxy.rb:874:in `block in scoping' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation.rb:302:in `scoping' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/associations/collection_proxy.rb:874:in `scoping' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:94:in `method_missing' /opt/system/app/models/backend_api.rb:54:in `create_default_metrics' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:432:in `block in make_lambda' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:228:in `block in halting_and_conditional' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:506:in `block in call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:506:in `each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:506:in `call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/callbacks.rb:306:in `_create_record' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/timestamp.rb:57:in `_create_record' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/persistence.rb:504:in `create_or_update' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/callbacks.rb:302:in `block in create_or_update' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:117:in `call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:505:in `call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/callbacks.rb:302:in `create_or_update' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/persistence.rb:120:in `save' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/validations.rb:37:in `save' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/attribute_methods/dirty.rb:21:in `save' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:286:in `block (2 levels) in save' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/deadlock_retry-1.2.0/lib/deadlock_retry.rb:31:in `transaction_with_deadlock_handling' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:286:in `block in save' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:301:in `rollback_active_record_state!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:285:in `save' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/autosave_association.rb:441:in `save_belongs_to_association' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/autosave_association.rb:201:in `block in add_autosave_association_callbacks' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/autosave_association.rb:157:in `instance_eval' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/autosave_association.rb:157:in `block in define_non_cyclic_method' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:432:in `block in make_lambda' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:164:in `block in halting' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:504:in `block in call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:504:in `each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:504:in `call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/callbacks.rb:302:in `create_or_update' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/persistence.rb:142:in `save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/validations.rb:43:in `save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/attribute_methods/dirty.rb:29:in `save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:291:in `block in save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/deadlock_retry-1.2.0/lib/deadlock_retry.rb:31:in `transaction_with_deadlock_handling' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:291:in `save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/associations/has_many_association.rb:39:in `insert_record' /opt/system/vendor/bundle/ruby/2.4.0/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/associations.rb:50:in `block (2 levels) in create_record' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/associations/collection_association.rb:419:in `replace_on_target' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/associations/collection_association.rb:414:in `add_to_target' /opt/system/vendor/bundle/ruby/2.4.0/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/associations.rb:48:in `block in create_record' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/associations/collection_association.rb:194:in `block in transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/deadlock_retry-1.2.0/lib/deadlock_retry.rb:31:in `transaction_with_deadlock_handling' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/associations/collection_association.rb:193:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/associations.rb:47:in `create_record' /opt/system/vendor/bundle/ruby/2.4.0/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/associations.rb:36:in `create!' /opt/system/vendor/bundle/ruby/2.4.0/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/associations.rb:73:in `create!' /opt/system/app/lib/backend_api_logic/service_extension.rb:41:in `public_send' /opt/system/app/lib/backend_api_logic/service_extension.rb:41:in `create_first_backend_api_config!' /opt/system/app/lib/backend_api_logic/service_extension.rb:26:in `find_or_create_first_backend_api!' /opt/system/db/migrate/20190716110520_create_the_backend_apis_of_services.rb:14:in `block (6 levels) in change' /opt/system/lib/progress_counter.rb:23:in `call' /opt/system/db/migrate/20190716110520_create_the_backend_apis_of_services.rb:13:in `block (5 levels) in change' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/batches.rb:51:in `block (2 levels) in find_each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/batches.rb:51:in `each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/batches.rb:51:in `block in find_each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/batches.rb:124:in `find_in_batches' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/batches.rb:50:in `find_each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/querying.rb:9:in `find_each' /opt/system/db/migrate/20190716110520_create_the_backend_apis_of_services.rb:12:in `block (4 levels) in change' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/deadlock_retry-1.2.0/lib/deadlock_retry.rb:31:in `transaction_with_deadlock_handling' /opt/system/db/migrate/20190716110520_create_the_backend_apis_of_services.rb:10:in `block (3 levels) in change' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:511:in `up' /opt/system/db/migrate/20190716110520_create_the_backend_apis_of_services.rb:9:in `block (2 levels) in change' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:547:in `block in reversible' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:746:in `execute_block' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:547:in `reversible' /opt/system/db/migrate/20190716110520_create_the_backend_apis_of_services.rb:8:in `block in change' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:634:in `block in say_with_time' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:634:in `say_with_time' /opt/system/db/migrate/20190716110520_create_the_backend_apis_of_services.rb:7:in `change' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:608:in `exec_migration' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:592:in `block (2 levels) in migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:591:in `block in migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:590:in `migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/strong_migrations-0.3.1/lib/strong_migrations/migration.rb:13:in `migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:768:in `migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1023:in `block in execute_migration_in_transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1071:in `ddl_transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1022:in `execute_migration_in_transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:984:in `block in migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in `each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in `migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:823:in `up' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:801:in `migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/tasks/database_tasks.rb:139:in `migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/strong_migrations-0.3.1/lib/strong_migrations/database_tasks.rb:4:in `migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>' /opt/system/vendor/bundle/ruby/2.4.0/gems/bugsnag-6.11.1/lib/bugsnag/integrations/rake.rb:18:in `execute_with_bugsnag' /opt/system/lib/tasks/db.rake:7:in `block (2 levels) in <top (required)>' /opt/system/vendor/bundle/ruby/2.4.0/gems/bugsnag-6.11.1/lib/bugsnag/integrations/rake.rb:18:in `execute_with_bugsnag' /opt/system/lib/tasks/openshift.rake:5:in `block (2 levels) in <top (required)>' /opt/system/vendor/bundle/ruby/2.4.0/gems/bugsnag-6.11.1/lib/bugsnag/integrations/rake.rb:18:in `execute_with_bugsnag' /opt/system/vendor/bundle/ruby/2.4.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `load' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `kernel_load' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:28:in `run' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli.rb:463:in `exec' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli.rb:27:in `dispatch' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli.rb:18:in `start' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/exe/bundle:30:in `block in <top (required)>' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/exe/bundle:22:in `<top (required)>' /opt/rh/rh-ruby24/root/usr/local/bin/bundle:23:in `load' /opt/rh/rh-ruby24/root/usr/local/bin/bundle:23:in `<main>' Caused by: NoMethodError: undefined method `owner_type?' for #<Metric:0x0000000006b93858> /opt/system/vendor/bundle/ruby/2.4.0/gems/activemodel-4.2.11.1/lib/active_model/attribute_methods.rb:433:in `method_missing' /opt/system/app/models/metric.rb:251:in `fill_owner' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:432:in `block in make_lambda' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:164:in `block in halting' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:504:in `block in call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:504:in `each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:504:in `call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:778:in `_run_validation_callbacks' /opt/system/vendor/bundle/ruby/2.4.0/gems/activemodel-4.2.11.1/lib/active_model/validations/callbacks.rb:113:in `run_validations!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activemodel-4.2.11.1/lib/active_model/validations.rb:338:in `valid?' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/validations.rb:58:in `valid?' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/validations.rb:83:in `perform_validations' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/validations.rb:43:in `save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/attribute_methods/dirty.rb:29:in `save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:291:in `block in save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/deadlock_retry-1.2.0/lib/deadlock_retry.rb:31:in `transaction_with_deadlock_handling' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:291:in `save!' /opt/system/app/models/metric.rb:57:in `create_default!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:94:in `public_send' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:94:in `block in method_missing' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/associations/collection_proxy.rb:874:in `block in scoping' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation.rb:302:in `scoping' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/associations/collection_proxy.rb:874:in `scoping' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:94:in `method_missing' /opt/system/app/models/backend_api.rb:54:in `create_default_metrics' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:432:in `block in make_lambda' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:228:in `block in halting_and_conditional' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:506:in `block in call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:506:in `each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:506:in `call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/callbacks.rb:306:in `_create_record' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/timestamp.rb:57:in `_create_record' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/persistence.rb:504:in `create_or_update' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/callbacks.rb:302:in `block in create_or_update' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:117:in `call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:505:in `call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/callbacks.rb:302:in `create_or_update' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/persistence.rb:120:in `save' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/validations.rb:37:in `save' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/attribute_methods/dirty.rb:21:in `save' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:286:in `block (2 levels) in save' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/deadlock_retry-1.2.0/lib/deadlock_retry.rb:31:in `transaction_with_deadlock_handling' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:286:in `block in save' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:301:in `rollback_active_record_state!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:285:in `save' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/autosave_association.rb:441:in `save_belongs_to_association' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/autosave_association.rb:201:in `block in add_autosave_association_callbacks' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/autosave_association.rb:157:in `instance_eval' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/autosave_association.rb:157:in `block in define_non_cyclic_method' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:432:in `block in make_lambda' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:164:in `block in halting' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:504:in `block in call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:504:in `each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:504:in `call' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /opt/system/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/callbacks.rb:302:in `create_or_update' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/persistence.rb:142:in `save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/validations.rb:43:in `save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/attribute_methods/dirty.rb:29:in `save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:291:in `block in save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/deadlock_retry-1.2.0/lib/deadlock_retry.rb:31:in `transaction_with_deadlock_handling' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:291:in `save!' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/associations/has_many_association.rb:39:in `insert_record' /opt/system/vendor/bundle/ruby/2.4.0/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/associations.rb:50:in `block (2 levels) in create_record' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/associations/collection_association.rb:419:in `replace_on_target' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/associations/collection_association.rb:414:in `add_to_target' /opt/system/vendor/bundle/ruby/2.4.0/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/associations.rb:48:in `block in create_record' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/associations/collection_association.rb:194:in `block in transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/deadlock_retry-1.2.0/lib/deadlock_retry.rb:31:in `transaction_with_deadlock_handling' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/associations/collection_association.rb:193:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/associations.rb:47:in `create_record' /opt/system/vendor/bundle/ruby/2.4.0/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/associations.rb:36:in `create!' /opt/system/vendor/bundle/ruby/2.4.0/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/associations.rb:73:in `create!' /opt/system/app/lib/backend_api_logic/service_extension.rb:41:in `public_send' /opt/system/app/lib/backend_api_logic/service_extension.rb:41:in `create_first_backend_api_config!' /opt/system/app/lib/backend_api_logic/service_extension.rb:26:in `find_or_create_first_backend_api!' /opt/system/db/migrate/20190716110520_create_the_backend_apis_of_services.rb:14:in `block (6 levels) in change' /opt/system/lib/progress_counter.rb:23:in `call' /opt/system/db/migrate/20190716110520_create_the_backend_apis_of_services.rb:13:in `block (5 levels) in change' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/batches.rb:51:in `block (2 levels) in find_each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/batches.rb:51:in `each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/batches.rb:51:in `block in find_each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/batches.rb:124:in `find_in_batches' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/relation/batches.rb:50:in `find_each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/querying.rb:9:in `find_each' /opt/system/db/migrate/20190716110520_create_the_backend_apis_of_services.rb:12:in `block (4 levels) in change' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/transactions.rb:220:in `transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/deadlock_retry-1.2.0/lib/deadlock_retry.rb:31:in `transaction_with_deadlock_handling' /opt/system/db/migrate/20190716110520_create_the_backend_apis_of_services.rb:10:in `block (3 levels) in change' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:511:in `up' /opt/system/db/migrate/20190716110520_create_the_backend_apis_of_services.rb:9:in `block (2 levels) in change' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:547:in `block in reversible' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:746:in `execute_block' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:547:in `reversible' /opt/system/db/migrate/20190716110520_create_the_backend_apis_of_services.rb:8:in `block in change' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:634:in `block in say_with_time' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:634:in `say_with_time' /opt/system/db/migrate/20190716110520_create_the_backend_apis_of_services.rb:7:in `change' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:608:in `exec_migration' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:592:in `block (2 levels) in migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:591:in `block in migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:590:in `migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/strong_migrations-0.3.1/lib/strong_migrations/migration.rb:13:in `migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:768:in `migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1023:in `block in execute_migration_in_transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1071:in `ddl_transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1022:in `execute_migration_in_transaction' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:984:in `block in migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in `each' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in `migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:823:in `up' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:801:in `migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/tasks/database_tasks.rb:139:in `migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/strong_migrations-0.3.1/lib/strong_migrations/database_tasks.rb:4:in `migrate' /opt/system/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>' /opt/system/vendor/bundle/ruby/2.4.0/gems/bugsnag-6.11.1/lib/bugsnag/integrations/rake.rb:18:in `execute_with_bugsnag' /opt/system/lib/tasks/db.rake:7:in `block (2 levels) in <top (required)>' /opt/system/vendor/bundle/ruby/2.4.0/gems/bugsnag-6.11.1/lib/bugsnag/integrations/rake.rb:18:in `execute_with_bugsnag' /opt/system/lib/tasks/openshift.rake:5:in `block (2 levels) in <top (required)>' /opt/system/vendor/bundle/ruby/2.4.0/gems/bugsnag-6.11.1/lib/bugsnag/integrations/rake.rb:18:in `execute_with_bugsnag' /opt/system/vendor/bundle/ruby/2.4.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `load' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `kernel_load' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:28:in `run' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli.rb:463:in `exec' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli.rb:27:in `dispatch' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/cli.rb:18:in `start' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/exe/bundle:30:in `block in <top (required)>' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/bundler-1.17.3/exe/bundle:22:in `<top (required)>' /opt/rh/rh-ruby24/root/usr/local/bin/bundle:23:in `load' /opt/rh/rh-ruby24/root/usr/local/bin/bundle:23:in `<main>' Tasks: TOP => db:migrate (See full trace by running task with --trace)
Dev note
This is probably due to the creation of the default hits metric of each new backend API. The code is trying to fill it before the migration that adds polymorphic owner to Metric.