Having issues with chef-server-ctl upgrade and partybus


#1

I’m trying to upgrade my server from 12.11 to 12.15. Getting the following error. Tried this fix https://github.com/chef/chef-server/issues/1037, but it didn’t help.

Chef Client finished, 46/579 resources updated in 01 minutes 29 seconds
Chef Server Reconfigured!
ok: down: bookshelf: 4159s, normally up
ok: down: nginx: 0s, normally up
ok: down: oc_bifrost: 4155s, normally up
ok: down: oc_id: 4153s, normally up
ok: down: opscode-chef-mover: 4152s, normally up
ok: down: opscode-erchef: 4150s, normally up
ok: down: opscode-expander: 4148s, normally up
ok: down: opscode-reporting: 4148s, normally up
ok: down: opscode-solr4: 4146s, normally up
ok: down: postgresql: 1s, normally up
ok: down: rabbitmq: 0s, normally up
ok: down: redis_lb: 0s, normally up
ok: run: postgresql: (pid 10635) 1s
[private-chef-upgrade] - Latest Migration Available: 1.34
[private-chef-upgrade] - Migrations to Run: [#<Partybus::MigrationFile:0x00000002c1a460 @path="/opt/opscode/embedded/upgrades/001/033_users_email_lower_idx.rb", @major=1, @minor=33>, #<Partybus::MigrationFile:0x00000002c1a078 @path="/opt/opscode/embedded/upgrades/001/034_create_and_update_user.rb", @major=1, @minor=34>]
[private-chef-upgrade] - Current Migration Version: 1.32
[private-chef-upgrade] - Starting Migration 1.33
[private-chef-upgrade] - Running Command: sqitch --engine pg --db-name opscode_chef --db-host 127.0.0.1 --db-port 5432 --db-user “opscode-pgsql” --top-dir /opt/opscode/embedded/service/opscode-erchef/schema deploy @users_email_functional_index --verify with options {:env=>{“PGPASSWORD”=>“43a99e559c1591b3dfe614d1716234aa7d16cc7c8341485678e2ca67db2eb2d998906e705bf6768c0420c69520ba957c536e”}}
Cannot deploy to an earlier target; use “revert” instead
bundler: failed to load command: ./bin/partybus (./bin/partybus)
RuntimeError: Partybus failed to execute command ‘sqitch --engine pg --db-name opscode_chef --db-host 127.0.0.1 --db-port 5432 --db-user “opscode-pgsql” --top-dir /opt/opscode/embedded/service/opscode-erchef/schema deploy @users_email_functional_index --verify’ exitstatus: 2
/opt/opscode/embedded/service/partybus/lib/partybus/command_runner.rb:16:in run_command' /opt/opscode/embedded/service/partybus/lib/partybus/migration_api/v1.rb:100:inrun_command’
/opt/opscode/embedded/service/partybus/lib/partybus/migration_api/v1.rb:116:in run_sqitch' (eval):8:inblock in load_migration’
/opt/opscode/embedded/service/partybus/lib/partybus/migration_api/v1.rb:16:in instance_eval' /opt/opscode/embedded/service/partybus/lib/partybus/migration_api/v1.rb:16:ininitialize’
/opt/opscode/embedded/service/partybus/lib/partybus/dsl_runner.rb:37:in new' /opt/opscode/embedded/service/partybus/lib/partybus/dsl_runner.rb:37:inrun_migration’
/opt/opscode/embedded/service/partybus/lib/partybus/dsl_runner.rb:19:in run' /opt/opscode/embedded/service/partybus/lib/partybus/migrations.rb:41:inrun_migration’
/opt/opscode/embedded/service/partybus/bin/partybus:151:in block in do_upgrade' /opt/opscode/embedded/service/partybus/bin/partybus:147:ineach’
/opt/opscode/embedded/service/partybus/bin/partybus:147:in do_upgrade' /opt/opscode/embedded/service/partybus/bin/partybus:179:inblock in <top (required)>’
/opt/opscode/embedded/service/partybus/bin/partybus:159:in open' /opt/opscode/embedded/service/partybus/bin/partybus:159:in<top (required)>’

Any help would be greatly appreciated.

Thanks,
Mike