Satellite 6.4 upgrade fails on upgrade step migrate_candlepin
Issue
Satellite 6.4 upgrade fails with the following error:
[root@Satellite ~]# foreman-maintain upgrade run --target-version 6.4
...
Upgrade Step: migrate_candlepin...
########## ERROR ############
Error running command: liquibase --driver=org.postgresql.Driver --classpath=/usr/share/java/postgresql-jdbc.jar:/var/lib/tomcat/webapps/candlepin/WEB-INF/classes/ --changeLogFile=db/changelog/changelog-update.xml --url=jdbc:postgresql://localhost/candlepin --username=candlepin --password=2TAyYBggykkcjb4m5wFUgxsnyUPthJAW --logLevel=severe migrate -Dcommunity=False
Status code: 65280
Command output: Liquibase update Failed: org/candlepin/liquibase/FixDuplicatePoolsLiquibaseWrapper : Unsupported major.minor version 52.0
SEVERE 11/10/18 3:57 PM:liquibase: org/candlepin/liquibase/FixDuplicatePoolsLiquibaseWrapper : Unsupported major.minor version 52.0
java.lang.UnsupportedClassVersionError: org/candlepin/liquibase/FixDuplicatePoolsLiquibaseWrapper : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
...
Configuring PostgreSQL with JDBC URL: jdbc:postgresql://localhost/candlepin
Migrating Candlepin database
--driver=org.postgresql.Driver --classpath=/usr/share/java/postgresql-jdbc.jar:/var/lib/tomcat/webapps/candlepin/WEB-INF/classes/ --changeLogFile=db/changelog/changelog-update.xml --url=jdbc:postgresql://localhost/candlepin --username=candlepin --password=2TAyYBggykkcjb4m5wFUgxsnyUPthJAW --logLevel=severe
Traceback (most recent call last):
File "/usr/share/candlepin/cpdb", line 317, in <module>
dbsetup.update()
File "/usr/share/candlepin/cpdb", line 75, in update
self._run_liquibase("db/changelog/changelog-update.xml")
File "/usr/share/candlepin/cpdb", line 106, in _run_liquibase
output = run_command("liquibase %s migrate -Dcommunity=%s" % (liquibase_options, self.community))
File "/usr/share/candlepin/cpdb", line 38, in run_command
error_out(command, status, output)
File "/usr/share/candlepin/cpdb", line 46, in error_out
raise Exception("Error running command")
Exception: Error running command
/usr/share/candlepin/cpdb --update --database '//localhost/candlepin' --user 'candlepin' --password '2TAyYBggykkcjb4m5wFUgxsnyUPthJAW' failed! Check the output for error!
Upgrade step migrate_candlepin failed. Check logs for more information.
This may also occur when running:
[root@Satellite ~]# foreman-maintain upgrade run --target-version 6.4.z
or
[root@Satellite ~]# satellite-installer --upgrade
Environment
- Red Hat Satellite 6.4
- candlepin-2.4.8-1.el7 or higher
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.