MASTER_USER and MASTER_PASSWORD is described as optional in 1.4. Configure New Variable Values. However, when these values are not set, empty strings are set in patches that explained in 1.7. Patch System Components. As the result, update process fails:
Migrating to OnpremisesUpgrade21To22 (20180511145413) == 20180511145413 OnpremisesUpgrade21To22: migrating ========================== Starting requirements update... Creating master admin user... rake aborted! StandardError: An error has occurred, all later migrations canceled: Cannot transition state via :activate from :pending (Reason(s): Username is too short (minimum is 3 characters)) /opt/system/vendor/bundle/ruby/2.3.0/gems/state_machines-0.4.0/lib/state_machines/event.rb:224:in `block in add_actions' /opt/system/vendor/bundle/ruby/2.3.0/gems/state_machines-0.4.0/lib/state_machines/machine.rb:725:in `block (2 levels) in define_helper' /opt/system/lib/three_scale/upgrades/from_21_to_22.rb:72:in `block in create_master_admin_user' /opt/system/vendor/bundle/ruby/2.3.0/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/validations.rb:16:in `create!' /opt/system/lib/three_scale/upgrades/from_21_to_22.rb:68:in `create_master_admin_user' /opt/system/lib/three_scale/upgrades/from_21_to_22.rb:37:in `run' /opt/system/lib/three_scale/upgrades/from_21_to_22.rb:22:in `run' /opt/system/db/migrate/20180511145413_onpremises_upgrade21_to22.rb:7:in `up' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:611:in `exec_migration' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:592:in `block (2 levels) in migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:591:in `block in migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:590:in `migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:768:in `migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:1023:in `block in execute_migration_in_transaction' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:1071:in `ddl_transaction' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:1022:in `execute_migration_in_transaction' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:984:in `block in migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:980:in `each' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:980:in `migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:823:in `up' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:801:in `migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/tasks/database_tasks.rb:139:in `migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>' /opt/system/vendor/bundle/ruby/2.3.0/gems/bugsnag-6.6.4/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.3.0/gems/bugsnag-6.6.4/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.3.0/gems/bugsnag-6.6.4/lib/bugsnag/integrations/rake.rb:18:in `execute_with_bugsnag' /opt/system/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>' Caused by: StateMachines::InvalidTransition: Cannot transition state via :activate from :pending (Reason(s): Username is too short (minimum is 3 characters)) /opt/system/vendor/bundle/ruby/2.3.0/gems/state_machines-0.4.0/lib/state_machines/event.rb:224:in `block in add_actions' /opt/system/vendor/bundle/ruby/2.3.0/gems/state_machines-0.4.0/lib/state_machines/machine.rb:725:in `block (2 levels) in define_helper' /opt/system/lib/three_scale/upgrades/from_21_to_22.rb:72:in `block in create_master_admin_user' /opt/system/vendor/bundle/ruby/2.3.0/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/validations.rb:16:in `create!' /opt/system/lib/three_scale/upgrades/from_21_to_22.rb:68:in `create_master_admin_user' /opt/system/lib/three_scale/upgrades/from_21_to_22.rb:37:in `run' /opt/system/lib/three_scale/upgrades/from_21_to_22.rb:22:in `run' /opt/system/db/migrate/20180511145413_onpremises_upgrade21_to22.rb:7:in `up' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:611:in `exec_migration' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:592:in `block (2 levels) in migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:591:in `block in migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:590:in `migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:768:in `migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:1023:in `block in execute_migration_in_transaction' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:1071:in `ddl_transaction' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:1022:in `execute_migration_in_transaction' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:984:in `block in migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:980:in `each' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:980:in `migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:823:in `up' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/migration.rb:801:in `migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/tasks/database_tasks.rb:139:in `migrate' /opt/system/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>' /opt/system/vendor/bundle/ruby/2.3.0/gems/bugsnag-6.6.4/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.3.0/gems/bugsnag-6.6.4/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.3.0/gems/bugsnag-6.6.4/lib/bugsnag/integrations/rake.rb:18:in `execute_with_bugsnag' /opt/system/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>' Tasks: TOP => db:migrate
So these values should be optional in patches.