When attempting to upgrade the VMware Cloud Director (VCD) database, the upgrade utility fails to at task 4 with the following error:
java.lang.IllegalArgumentException: state
Subsequent attempts to rerun the upgrade utility abort immediately, returning the following output indicating an incomplete upgrade state:
Welcome to the VMware Cloud Director upgrade utility
Verify that you have a valid license key to use the version of the
VMware Cloud Director software to which you are upgrading.
This utility will apply several updates to the database. Please
ensure you have created a backup of your database prior to continuing.
Do you wish to upgrade the product now? [Y/N] Y
Examining database at URL: jdbc:postgresql://##.####.##:####/vcloud?socketTimeout=##gssl=true
A previous attempt to upgrade the database was incomplete. Please restore your database from a backed up copy and try again.