Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need documentation for upgrading monolithic docker image #1485

Closed
varun0002 opened this issue Oct 5, 2020 · 10 comments
Closed

Need documentation for upgrading monolithic docker image #1485

varun0002 opened this issue Oct 5, 2020 · 10 comments

Comments

@varun0002
Copy link

Running manageiq as docker container with persistent volume from manageiq/manageiq:ivanchuk-6 image. Trying to upgrade to manageiq/manageiq:jansa-1 image and getting following error while starting container. Looks like some DB changes.

2020-10-05T08:32:41.408820000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
2020-10-05T08:32:41.409090000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in `start'
2020-10-05T08:32:41.409344000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/exe/bundle:46:in `block in <top (required)>'
2020-10-05T08:32:41.409605000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors'
2020-10-05T08:32:41.409878000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/exe/bundle:34:in `<top (required)>'
2020-10-05T08:32:41.410130000Z /opt/manageiq/manageiq-gemset/bin/bundle:23:in `load'
2020-10-05T08:32:41.410387000Z /opt/manageiq/manageiq-gemset/bin/bundle:23:in `<main>'
2020-10-05T08:32:41.410639000Z (See full trace by running task with --trace)
2020-10-05T08:33:50.344381000Z /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:63:in `exec': PG::UndefinedTable: ERROR:  relation "miq_worker_types" does not exist (ActiveRecord::StatementInvalid)
2020-10-05T08:33:50.345018000Z LINE 8:                WHERE a.attrelid = '"miq_worker_types"'::regc...
2020-10-05T08:33:50.345446000Z                                           ^
2020-10-05T08:33:50.345956000Z :               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2020-10-05T08:33:50.346398000Z                      pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
2020-10-05T08:33:50.346848000Z                      c.collname, col_description(a.attrelid, a.attnum) AS comment
2020-10-05T08:33:50.347305000Z                 FROM pg_attribute a
2020-10-05T08:33:50.347730000Z                 LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2020-10-05T08:33:50.348145000Z                 LEFT JOIN pg_type t ON a.atttypid = t.oid
2020-10-05T08:33:50.348552000Z                 LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
2020-10-05T08:33:50.349018000Z                WHERE a.attrelid = '"miq_worker_types"'::regclass
2020-10-05T08:33:50.349444000Z                  AND a.attnum > 0 AND NOT a.attisdropped
2020-10-05T08:33:50.349904000Z                ORDER BY a.attnum
2020-10-05T08:33:50.350221000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:63:in `block (2 levels) in query'
2020-10-05T08:33:50.350537000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
2020-10-05T08:33:50.350936000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
2020-10-05T08:33:50.351282000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
2020-10-05T08:33:50.351630000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:62:in `block in query'
2020-10-05T08:33:50.351989000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:581:in `block (2 levels) in log'
2020-10-05T08:33:50.352366000Z 	from /usr/share/ruby/monitor.rb:230:in `mon_synchronize'
2020-10-05T08:33:50.352748000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:580:in `block in log'
2020-10-05T08:33:50.353091000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
2020-10-05T08:33:50.353493000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:571:in `log'
2020-10-05T08:33:50.353872000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:61:in `query'
2020-10-05T08:33:50.354218000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/postgresql_adapter.rb:757:in `column_definitions'
2020-10-05T08:33:50.354622000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/schema_statements.rb:113:in `columns'
2020-10-05T08:33:50.355043000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/schema_cache.rb:69:in `columns'
2020-10-05T08:33:50.355403000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/schema_cache.rb:75:in `columns_hash'
2020-10-05T08:33:50.355815000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/model_schema.rb:466:in `load_schema!'
2020-10-05T08:33:50.356174000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/attributes.rb:234:in `load_schema!'
2020-10-05T08:33:50.356473000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/attribute_decorators.rb:51:in `load_schema!'
2020-10-05T08:33:50.356836000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-virtual_attributes-1.6.0/lib/active_record/virtual_attributes.rb:108:in `load_schema!'
2020-10-05T08:33:50.357217000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/model_schema.rb:459:in `block in load_schema'
2020-10-05T08:33:50.357492000Z 	from /usr/share/ruby/monitor.rb:230:in `mon_synchronize'
2020-10-05T08:33:50.357798000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/model_schema.rb:456:in `load_schema'
2020-10-05T08:33:50.358137000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-virtual_attributes-1.6.0/lib/active_record/virtual_attributes/virtual_arel.rb:26:in `arel_attribute'
2020-10-05T08:33:50.358463000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/table_metadata.rb:25:in `arel_attribute'
2020-10-05T08:33:50.358834000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/predicate_builder.rb:112:in `block in expand_from_hash'
2020-10-05T08:33:50.359161000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/predicate_builder.rb:71:in `each'
2020-10-05T08:33:50.359478000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/predicate_builder.rb:71:in `flat_map'
2020-10-05T08:33:50.359859000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/predicate_builder.rb:71:in `expand_from_hash'
2020-10-05T08:33:50.360174000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/predicate_builder.rb:21:in `build_from_hash'
2020-10-05T08:33:50.360479000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/where_clause_factory.rb:19:in `build'
2020-10-05T08:33:50.360822000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/query_methods.rb:50:in `not'
2020-10-05T08:33:50.361135000Z 	from /var/www/miq/vmdb/app/models/miq_worker_type.rb:50:in `clean_worker_types'
2020-10-05T08:33:50.361508000Z 	from /var/www/miq/vmdb/app/models/miq_worker_type.rb:23:in `block in seed'
2020-10-05T08:33:50.361866000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `transaction'
2020-10-05T08:33:50.362182000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/transactions.rb:212:in `transaction'
2020-10-05T08:33:50.362502000Z 	from /var/www/miq/vmdb/app/models/miq_worker_type.rb:22:in `seed'
2020-10-05T08:33:50.362887000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:120:in `block (4 levels) in seed_classes'
2020-10-05T08:33:50.363204000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/core_ext/benchmark.rb:14:in `block in ms'
2020-10-05T08:33:50.363521000Z 	from /usr/share/ruby/benchmark.rb:308:in `realtime'
2020-10-05T08:33:50.363869000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/core_ext/benchmark.rb:14:in `ms'
2020-10-05T08:33:50.364199000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:120:in `block (3 levels) in seed_classes'
2020-10-05T08:33:50.364516000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:118:in `each'
2020-10-05T08:33:50.364876000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:118:in `block (2 levels) in seed_classes'
2020-10-05T08:33:50.365201000Z 	from /var/www/miq/vmdb/lib/extensions/ar_table_lock.rb:21:in `block (2 levels) in with_lock'
2020-10-05T08:33:50.365521000Z 	from /usr/share/ruby/timeout.rb:93:in `block in timeout'
2020-10-05T08:33:50.365875000Z 	from /usr/share/ruby/timeout.rb:33:in `block in catch'
2020-10-05T08:33:50.366204000Z 	from /usr/share/ruby/timeout.rb:33:in `catch'
2020-10-05T08:33:50.366520000Z 	from /usr/share/ruby/timeout.rb:33:in `catch'
2020-10-05T08:33:50.366878000Z 	from /usr/share/ruby/timeout.rb:108:in `timeout'
2020-10-05T08:33:50.367201000Z 	from /var/www/miq/vmdb/lib/extensions/ar_table_lock.rb:21:in `block in with_lock'
2020-10-05T08:33:50.367516000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `block in transaction'
2020-10-05T08:33:50.367889000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
2020-10-05T08:33:50.368206000Z 	from /usr/share/ruby/monitor.rb:230:in `mon_synchronize'
2020-10-05T08:33:50.368514000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
2020-10-05T08:33:50.368880000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `transaction'
2020-10-05T08:33:50.369201000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/transactions.rb:212:in `transaction'
2020-10-05T08:33:50.369516000Z 	from /var/www/miq/vmdb/lib/extensions/ar_table_lock.rb:15:in `with_lock'
2020-10-05T08:33:50.369853000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:117:in `block in seed_classes'
2020-10-05T08:33:50.370167000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/core_ext/benchmark.rb:14:in `block in ms'
2020-10-05T08:33:50.370481000Z 	from /usr/share/ruby/benchmark.rb:308:in `realtime'
2020-10-05T08:33:50.371078000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/core_ext/benchmark.rb:14:in `ms'
2020-10-05T08:33:50.371409000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:115:in `seed_classes'
2020-10-05T08:33:50.371750000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:70:in `seed'
2020-10-05T08:33:50.372094000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:79:in `seed_primordial'
2020-10-05T08:33:50.372438000Z 	from /var/www/miq/vmdb/lib/workers/evm_server.rb:25:in `start'
2020-10-05T08:33:50.373458000Z 	from /var/www/miq/vmdb/lib/workers/evm_server.rb:81:in `start'
2020-10-05T08:33:50.373838000Z 	from /var/www/miq/vmdb/lib/workers/bin/evm_server.rb:4:in `<main>'
2020-10-05T08:33:50.374187000Z /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:63:in `exec': ERROR:  relation "miq_worker_types" does not exist (PG::UndefinedTable)
2020-10-05T08:33:50.374524000Z LINE 8:                WHERE a.attrelid = '"miq_worker_types"'::regc...
2020-10-05T08:33:50.374906000Z                                           ^
2020-10-05T08:33:50.375236000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:63:in `block (2 levels) in query'
2020-10-05T08:33:50.375570000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
2020-10-05T08:33:50.375917000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
2020-10-05T08:33:50.376248000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
2020-10-05T08:33:50.376560000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:62:in `block in query'
2020-10-05T08:33:50.376906000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:581:in `block (2 levels) in log'
2020-10-05T08:33:50.377230000Z 	from /usr/share/ruby/monitor.rb:230:in `mon_synchronize'
2020-10-05T08:33:50.377572000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:580:in `block in log'
2020-10-05T08:33:50.377956000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
2020-10-05T08:33:50.378280000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:571:in `log'
2020-10-05T08:33:50.378602000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:61:in `query'
2020-10-05T08:33:50.378980000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/postgresql_adapter.rb:757:in `column_definitions'
2020-10-05T08:33:50.379315000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/schema_statements.rb:113:in `columns'
2020-10-05T08:33:50.379649000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/schema_cache.rb:69:in `columns'
2020-10-05T08:33:50.379992000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/schema_cache.rb:75:in `columns_hash'
2020-10-05T08:33:50.380263000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/model_schema.rb:466:in `load_schema!'
2020-10-05T08:33:50.380526000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/attributes.rb:234:in `load_schema!'
2020-10-05T08:33:50.380818000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/attribute_decorators.rb:51:in `load_schema!'
2020-10-05T08:33:50.381087000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-virtual_attributes-1.6.0/lib/active_record/virtual_attributes.rb:108:in `load_schema!'
2020-10-05T08:33:50.381343000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/model_schema.rb:459:in `block in load_schema'
2020-10-05T08:33:50.381603000Z 	from /usr/share/ruby/monitor.rb:230:in `mon_synchronize'
2020-10-05T08:33:50.381884000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/model_schema.rb:456:in `load_schema'
2020-10-05T08:33:50.382150000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-virtual_attributes-1.6.0/lib/active_record/virtual_attributes/virtual_arel.rb:26:in `arel_attribute'
2020-10-05T08:33:50.382402000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/table_metadata.rb:25:in `arel_attribute'
2020-10-05T08:33:50.382655000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/predicate_builder.rb:112:in `block in expand_from_hash'
2020-10-05T08:33:50.382952000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/predicate_builder.rb:71:in `each'
2020-10-05T08:33:50.383222000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/predicate_builder.rb:71:in `flat_map'
2020-10-05T08:33:50.383478000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/predicate_builder.rb:71:in `expand_from_hash'
2020-10-05T08:33:50.383752000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/predicate_builder.rb:21:in `build_from_hash'
2020-10-05T08:33:50.384016000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/where_clause_factory.rb:19:in `build'
2020-10-05T08:33:50.384280000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/query_methods.rb:50:in `not'
2020-10-05T08:33:50.384537000Z 	from /var/www/miq/vmdb/app/models/miq_worker_type.rb:50:in `clean_worker_types'
2020-10-05T08:33:50.384817000Z 	from /var/www/miq/vmdb/app/models/miq_worker_type.rb:23:in `block in seed'
2020-10-05T08:33:50.385082000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `transaction'
2020-10-05T08:33:50.385361000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/transactions.rb:212:in `transaction'
2020-10-05T08:33:50.385641000Z 	from /var/www/miq/vmdb/app/models/miq_worker_type.rb:22:in `seed'
2020-10-05T08:33:50.385948000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:120:in `block (4 levels) in seed_classes'
2020-10-05T08:33:50.386210000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/core_ext/benchmark.rb:14:in `block in ms'
2020-10-05T08:33:50.386479000Z 	from /usr/share/ruby/benchmark.rb:308:in `realtime'
2020-10-05T08:33:50.386771000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/core_ext/benchmark.rb:14:in `ms'
2020-10-05T08:33:50.387058000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:120:in `block (3 levels) in seed_classes'
2020-10-05T08:33:50.387327000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:118:in `each'
2020-10-05T08:33:50.387592000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:118:in `block (2 levels) in seed_classes'
2020-10-05T08:33:50.387883000Z 	from /var/www/miq/vmdb/lib/extensions/ar_table_lock.rb:21:in `block (2 levels) in with_lock'
2020-10-05T08:33:50.388140000Z 	from /usr/share/ruby/timeout.rb:93:in `block in timeout'
2020-10-05T08:33:50.388399000Z 	from /usr/share/ruby/timeout.rb:33:in `block in catch'
2020-10-05T08:33:50.388687000Z 	from /usr/share/ruby/timeout.rb:33:in `catch'
2020-10-05T08:33:50.388961000Z 	from /usr/share/ruby/timeout.rb:33:in `catch'
2020-10-05T08:33:50.389227000Z 	from /usr/share/ruby/timeout.rb:108:in `timeout'
2020-10-05T08:33:50.389492000Z 	from /var/www/miq/vmdb/lib/extensions/ar_table_lock.rb:21:in `block in with_lock'
2020-10-05T08:33:50.389764000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `block in transaction'
2020-10-05T08:33:50.390026000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
2020-10-05T08:33:50.390275000Z 	from /usr/share/ruby/monitor.rb:230:in `mon_synchronize'
2020-10-05T08:33:50.390527000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
2020-10-05T08:33:50.390803000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `transaction'
2020-10-05T08:33:50.391066000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/transactions.rb:212:in `transaction'
2020-10-05T08:33:50.391318000Z 	from /var/www/miq/vmdb/lib/extensions/ar_table_lock.rb:15:in `with_lock'
2020-10-05T08:33:50.391572000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:117:in `block in seed_classes'
2020-10-05T08:33:50.391851000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/core_ext/benchmark.rb:14:in `block in ms'
2020-10-05T08:33:50.392101000Z 	from /usr/share/ruby/benchmark.rb:308:in `realtime'
2020-10-05T08:33:50.392351000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/core_ext/benchmark.rb:14:in `ms'
2020-10-05T08:33:50.392601000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:115:in `seed_classes'
2020-10-05T08:33:50.392897000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:70:in `seed'
2020-10-05T08:33:50.393170000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:79:in `seed_primordial'
2020-10-05T08:33:50.393440000Z 	from /var/www/miq/vmdb/lib/workers/evm_server.rb:25:in `start'
2020-10-05T08:33:50.393723000Z 	from /var/www/miq/vmdb/lib/workers/evm_server.rb:81:in `start'
2020-10-05T08:33:50.393996000Z 	from /var/www/miq/vmdb/lib/workers/bin/evm_server.rb:4:in `<main>'
2020-10-05T08:38:01.323433000Z == Checking MIQ database status ==
2020-10-05T08:38:01.323935000Z ** DB already initialized
2020-10-05T08:38:01.324278000Z ** Starting postgresql
2020-10-05T08:38:01.342129000Z pg_ctl: another server might be running; trying to start server anyway
2020-10-05T08:38:01.372964000Z waiting for server to start....2020-10-05 08:38:01.372 UTC [28] LOG:  listening on IPv6 address "::1", port 5432
2020-10-05T08:38:01.373274000Z 2020-10-05 08:38:01.372 UTC [28] LOG:  listening on IPv4 address "127.0.0.1", port 5432
2020-10-05T08:38:01.377852000Z 2020-10-05 08:38:01.377 UTC [28] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-10-05T08:38:01.381753000Z 2020-10-05 08:38:01.381 UTC [28] LOG:  listening on Unix socket "/tmp/.s.PGSQL.5432"
2020-10-05T08:38:01.402746000Z 2020-10-05 08:38:01.401 UTC [28] LOG:  redirecting log output to logging collector process
2020-10-05T08:38:01.403236000Z 2020-10-05 08:38:01.401 UTC [28] HINT:  Future log output will appear in directory "log".
2020-10-05T08:38:01.656316000Z  done
2020-10-05T08:38:01.658040000Z server started
2020-10-05T08:38:02.671342000Z rake aborted!
2020-10-05T08:38:02.671888000Z No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
2020-10-05T08:38:02.672233000Z /opt/manageiq/manageiq-gemset/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
2020-10-05T08:38:02.672609000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `load'
2020-10-05T08:38:02.672998000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `kernel_load'
2020-10-05T08:38:02.673405000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:28:in `run'
2020-10-05T08:38:02.673844000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/cli.rb:476:in `exec'
2020-10-05T08:38:02.674262000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
2020-10-05T08:38:02.674688000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
2020-10-05T08:38:02.675145000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
2020-10-05T08:38:02.675569000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in `dispatch'
2020-10-05T08:38:02.676017000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
2020-10-05T08:38:02.676498000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in `start'
2020-10-05T08:38:02.677006000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/exe/bundle:46:in `block in <top (required)>'
2020-10-05T08:38:02.677487000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors'
2020-10-05T08:38:02.677928000Z /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/exe/bundle:34:in `<top (required)>'
2020-10-05T08:38:02.678363000Z /opt/manageiq/manageiq-gemset/bin/bundle:23:in `load'
2020-10-05T08:38:02.678793000Z /opt/manageiq/manageiq-gemset/bin/bundle:23:in `<main>'
2020-10-05T08:38:02.679245000Z (See full trace by running task with --trace)
2020-10-05T08:38:20.144817000Z /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:63:in `exec': PG::UndefinedTable: ERROR:  relation "miq_worker_types" does not exist (ActiveRecord::StatementInvalid)
2020-10-05T08:38:20.145160000Z LINE 8:                WHERE a.attrelid = '"miq_worker_types"'::regc...
2020-10-05T08:38:20.145409000Z                                           ^
2020-10-05T08:38:20.145652000Z :               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2020-10-05T08:38:20.145918000Z                      pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
2020-10-05T08:38:20.146178000Z                      c.collname, col_description(a.attrelid, a.attnum) AS comment
2020-10-05T08:38:20.146422000Z                 FROM pg_attribute a
2020-10-05T08:38:20.146687000Z                 LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2020-10-05T08:38:20.146942000Z                 LEFT JOIN pg_type t ON a.atttypid = t.oid
2020-10-05T08:38:20.147201000Z                 LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
2020-10-05T08:38:20.147458000Z                WHERE a.attrelid = '"miq_worker_types"'::regclass
2020-10-05T08:38:20.147721000Z                  AND a.attnum > 0 AND NOT a.attisdropped
2020-10-05T08:38:20.147969000Z                ORDER BY a.attnum
2020-10-05T08:38:20.148229000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:63:in `block (2 levels) in query'
2020-10-05T08:38:20.148531000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
2020-10-05T08:38:20.148815000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
2020-10-05T08:38:20.149070000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
2020-10-05T08:38:20.149332000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:62:in `block in query'
2020-10-05T08:38:20.149609000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:581:in `block (2 levels) in log'
2020-10-05T08:38:20.149879000Z 	from /usr/share/ruby/monitor.rb:230:in `mon_synchronize'
2020-10-05T08:38:20.150192000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:580:in `block in log'
2020-10-05T08:38:20.150476000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
2020-10-05T08:38:20.150749000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:571:in `log'
2020-10-05T08:38:20.150997000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:61:in `query'
2020-10-05T08:38:20.151252000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/postgresql_adapter.rb:757:in `column_definitions'
2020-10-05T08:38:20.151500000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/schema_statements.rb:113:in `columns'
2020-10-05T08:38:20.151886000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/schema_cache.rb:69:in `columns'
2020-10-05T08:38:20.152351000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/schema_cache.rb:75:in `columns_hash'
2020-10-05T08:38:20.152644000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/model_schema.rb:466:in `load_schema!'
2020-10-05T08:38:20.152927000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/attributes.rb:234:in `load_schema!'
2020-10-05T08:38:20.153178000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/attribute_decorators.rb:51:in `load_schema!'
2020-10-05T08:38:20.153425000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-virtual_attributes-1.6.0/lib/active_record/virtual_attributes.rb:108:in `load_schema!'
2020-10-05T08:38:20.153666000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/model_schema.rb:459:in `block in load_schema'
2020-10-05T08:38:20.153959000Z 	from /usr/share/ruby/monitor.rb:230:in `mon_synchronize'
2020-10-05T08:38:20.154229000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/model_schema.rb:456:in `load_schema'
2020-10-05T08:38:20.154480000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-virtual_attributes-1.6.0/lib/active_record/virtual_attributes/virtual_arel.rb:26:in `arel_attribute'
2020-10-05T08:38:20.154742000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/table_metadata.rb:25:in `arel_attribute'
2020-10-05T08:38:20.154992000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/predicate_builder.rb:112:in `block in expand_from_hash'
2020-10-05T08:38:20.155255000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/predicate_builder.rb:71:in `each'
2020-10-05T08:38:20.155511000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/predicate_builder.rb:71:in `flat_map'
2020-10-05T08:38:20.155796000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/predicate_builder.rb:71:in `expand_from_hash'
2020-10-05T08:38:20.156057000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/predicate_builder.rb:21:in `build_from_hash'
2020-10-05T08:38:20.156306000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/where_clause_factory.rb:19:in `build'
2020-10-05T08:38:20.156547000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/relation/query_methods.rb:50:in `not'
2020-10-05T08:38:20.156821000Z 	from /var/www/miq/vmdb/app/models/miq_worker_type.rb:50:in `clean_worker_types'
2020-10-05T08:38:20.157085000Z 	from /var/www/miq/vmdb/app/models/miq_worker_type.rb:23:in `block in seed'
2020-10-05T08:38:20.157334000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `transaction'
2020-10-05T08:38:20.157580000Z 	from /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.3/lib/active_record/transactions.rb:212:in `transaction'
2020-10-05T08:38:20.157862000Z 	from /var/www/miq/vmdb/app/models/miq_worker_type.rb:22:in `seed'
2020-10-05T08:38:20.158122000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:120:in `block (4 levels) in seed_classes'
2020-10-05T08:38:20.158377000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/core_ext/benchmark.rb:14:in `block in ms'
2020-10-05T08:38:20.158639000Z 	from /usr/share/ruby/benchmark.rb:308:in `realtime'
2020-10-05T08:38:20.158941000Z 	from /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.3/lib/active_support/core_ext/benchmark.rb:14:in `ms'
2020-10-05T08:38:20.159204000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:120:in `block (3 levels) in seed_classes'
2020-10-05T08:38:20.159628000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:118:in `each'
2020-10-05T08:38:20.159987000Z 	from /var/www/miq/vmdb/lib/evm_database.rb:118:in `block (2 levels) in seed_classes'
2020-10-05T08:38:20.160306000Z 	from /var/www/miq/vmdb/lib/extensions/ar_table_lock.rb:21:in `block (2 levels) in with_lock'
2020-10-05T08:38:20.160589000Z 	from /usr/share/ruby/timeout.rb:93:in `block in timeout'
2020-10-05T08:38:20.160901000Z 	from /usr/share/ruby/timeout.rb:33:in `block in catch'
2020-10-05T08:38:20.161166000Z 	from /usr/share/ruby/timeout.rb:33:in `catch'
2020-10-05T08:38:20.161419000Z 	from /usr/share/ruby/timeout.rb:33:in `catch'
2020-10-05T08:38:20.161697000Z 	from /usr/share/ruby/timeout.rb:108:in `timeout'
2020-10-05T08:38:20.161952000Z 	from /var/www/miq/vmdb/lib/extensions/ar_table_lock.rb:21:in `block in with_lock'
2020-10-05T08:38:20.162207000Z 	from /opt/manageiq/manageiq-gemset/
@agrare
Copy link
Member

agrare commented Oct 5, 2020

@varun0002 did you run the database migrations after upgrading the code from ivanchuk to jansa?

@varun0002
Copy link
Author

I guess no, are there any steps published to do that?

@Fryguy
Copy link
Member

Fryguy commented Oct 5, 2020

We will need to add upgrade steps for the various forms (in this case the monolithic docker image)...transferring this issue to manageiq-documentation

@Fryguy Fryguy transferred this issue from ManageIQ/manageiq Oct 5, 2020
@Fryguy Fryguy changed the title Unable to upgrade to manageiq/manageiq:jansa-1 image Need documentation for upgrading monolithic docker image Oct 5, 2020
@Fryguy
Copy link
Member

Fryguy commented Oct 5, 2020

@bdunne Do you have any steps for this?

@varun0002
Copy link
Author

varun0002 commented Nov 10, 2020

Any update on the steps to upgrade?

@Fryguy
Copy link
Member

Fryguy commented Nov 10, 2020

Sorry @varun0002, no. The docker monolithic image is really meant for "trying out" ManageIQ and it is not expect to be used for production scenarios. Documentation for upgrade also implies that we need documentation for how to deploy with persistent database, and perhaps persistent certificates, and encryption keys. If you have any documentation for any of that, we would welcome a contribution!

@bdunne
Copy link
Member

bdunne commented Nov 10, 2020

I don't have any steps for this. As you mentioned, it is meant for "trying out" ManageIQ. And I would expect a production deployment to use either pods or appliances. That being said, it should be possible if the important data (postgresql database, certs, GUID, etc.) is stored on persistent volumes.

@varun0002
Copy link
Author

@Fryguy Yes, I am running this with persistent volumes (postgresql database, certs & GUID) and happy to contribute but couldn't find the file to update this information.

@bdunne I am running all managiq components in a container. I started following below document to migrate (though it talks about K8 & multiple containers). However, it's failing on step 7 with:

link: https://www.manageiq.org/docs/reference/latest/installing_on_kubernetes/index.html#migrating-from-appliances

Error:
rake aborted!
URI::InvalidURIError: the scheme postgresql does not accept registry part: :@: (or bad hostname?)
/opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/connection_specification.rb:40:in initialize' /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/connection_specification.rb:282:in new'
/opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/connection_specification.rb:282:in resolve_url_connection' /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/connection_specification.rb:270:in resolve_hash_connection'
/opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/connection_specification.rb:245:in resolve_connection' /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/connection_specification.rb:143:in resolve'
/opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/connection_specification.rb:163:in block in resolve_all' /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/connection_specification.rb:162:in each'
/opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/connection_specification.rb:162:in resolve_all' /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/connection_handling.rb:72:in resolve'
/opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/core.rb:54:in configurations=' /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/core.rb:56:in block in module:Core'
/opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.4/lib/active_support/concern.rb:122:in class_eval' /opt/manageiq/manageiq-gemset/gems/activesupport-5.2.4.4/lib/active_support/concern.rb:122:in append_features'
/opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/base.rb:293:in include' /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/base.rb:293:in class:Base'
/opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/base.rb:277:in <module:ActiveRecord>' /opt/manageiq/manageiq-gemset/gems/activerecord-5.2.4.4/lib/active_record/base.rb:27:in <top (required)>'
/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-schema-a800fbb786e4/lib/reserve.rb:1:in require' /opt/manageiq/manageiq-gemset/bundler/gems/manageiq-schema-a800fbb786e4/lib/reserve.rb:1:in <top (required)>'
/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-schema-a800fbb786e4/lib/manageiq/schema.rb:11:in require' /opt/manageiq/manageiq-gemset/bundler/gems/manageiq-schema-a800fbb786e4/lib/manageiq/schema.rb:11:in <top (required)>'
/opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/runtime.rb:88:in require' /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/runtime.rb:88:in rescue in block in require'
/opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/runtime.rb:65:in block in require' /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in each'
/opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in require' /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler.rb:174:in require'
/var/www/miq/vmdb/config/application.rb:31:in <top (required)>' /var/www/miq/vmdb/Rakefile:5:in <top (required)>'
/opt/manageiq/manageiq-gemset/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'

Caused by:
LoadError: cannot load such file -- manageiq-schema
/opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in require' /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in block (2 levels) in require'
/opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in each' /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in block in require'
/opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in each' /opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in require'
/opt/manageiq/manageiq-gemset/gems/bundler-2.1.4/lib/bundler.rb:174:in require' /var/www/miq/vmdb/config/application.rb:31:in <top (required)>'
/var/www/miq/vmdb/Rakefile:5:in <top (required)>' /opt/manageiq/manageiq-gemset/gems/rake-13.0.1/exe/rake:27:in <top (required)>'

@Fryguy
Copy link
Member

Fryguy commented Nov 11, 2020

The DATABASE_URL env var is built from other env vars, if i recall...I wonder if something is missing there. I've hit this manageiq-schema error before when I've run a /bin/bash on a container and forgot to specify the DATABASE_URL env vars.

@varun0002
Copy link
Author

I was able to upgrade it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants