liquibase.exception.MigrationFailedException: Migration failed for change set master.xml::002::generated: Reason: master.xml : liquibase.precondition.core.PrimaryKeyExistsPrecondition@669251cc : Table 'liquibasetr.?nstallation' doesn't exist

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JIRA by Ali Ok, 1 year ago
Migration failed for change set master.xml::002::generated: Reason: master.xml : liquibase.precondition.core.PrimaryKeyExistsPrecondition@669251cc : Table 'liquibasetr.?nstallation' doesn't exist
via JIRA by Ali Ok, 1 year ago
Migration failed for change set master.xml::002::generated: Reason: master.xml : liquibase.precondition.core.PrimaryKeyExistsPrecondition@669251cc : Table 'liquibasetr.?nstallation' doesn't exist
via Stack Overflow by Grzegorz Olszewski
, 2 years ago
Migration failed for change set /tmp/test.changeset.xml::4::test: Reason: /tmp/test.changeset.xml : No rows returned from SQL Precondition
via liquibase.org by Unknown author, 1 year ago
Migration failed for change set latest/vw/departments_vw.xml::1::jsmith:     Reason:          update.xml : Error getting jdbc:hsqldb:hsql://localhost/testdb view with liquibase.statement.core.GetViewDefinitionStatement@a00185 :          Caused By: Precondition Error
via JIRA by Nathan Voxland, 1 year ago
Migration failed for change set latest/vw/departments_vw.xml::1::jsmith: Reason: update.xml : Error getting jdbc:hsqldb:hsql://localhost/testdb view with liquibase.statement.core.GetViewDefinitionStatement@a00185 : Caused By: Precondition Error
via JIRA by Nathan Voxland, 1 year ago
Migration failed for change set latest/vw/departments_vw.xml::1::jsmith: Reason: update.xml : Error getting jdbc:hsqldb:hsql://localhost/testdb view with liquibase.statement.core.GetViewDefinitionStatement@a00185 : Caused By: Precondition Error
liquibase.exception.MigrationFailedException: Migration failed for change set master.xml::002::generated: Reason: master.xml : liquibase.precondition.core.PrimaryKeyExistsPrecondition@669251cc : Table 'liquibasetr.?nstallation' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
at com.mysql.jdbc.Util.getInstance(Util.java:386)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2618)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2568)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1557)
at com.mysql.jdbc.DatabaseMetaData$7.forEach(DatabaseMetaData.java:3967)
at com.mysql.jdbc.IterateBlock.doForAll(IterateBlock.java:51)
at com.mysql.jdbc.DatabaseMetaData.getPrimaryKeys(DatabaseMetaData.java:3951)
at liquibase.snapshot.JdbcDatabaseSnapshot$CachingDatabaseMetaData$6.fastFetchQuery(JdbcDatabaseSnapshot.java:479)
at liquibase.snapshot.ResultSetCache$SingleResultSetExtractor.fastFetch(ResultSetCache.java:282)
at liquibase.snapshot.ResultSetCache.get(ResultSetCache.java:56)
at liquibase.snapshot.JdbcDatabaseSnapshot$CachingDatabaseMetaData.getPrimaryKeys(JdbcDatabaseSnapshot.java:448)
at liquibase.snapshot.jvm.PrimaryKeySnapshotGenerator.snapshotObject(PrimaryKeySnapshotGenerator.java:39)
at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:60)
at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)
at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:163)
at liquibase.snapshot.DatabaseSnapshot.init(DatabaseSnapshot.java:60)
at liquibase.snapshot.DatabaseSnapshot.(DatabaseSnapshot.java:37)
at liquibase.snapshot.JdbcDatabaseSnapshot.(JdbcDatabaseSnapshot.java:25)
at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:126)
at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:134)
at liquibase.snapshot.SnapshotGeneratorFactory.has(SnapshotGeneratorFactory.java:88)
at liquibase.precondition.core.PrimaryKeyExistsPrecondition.check(PrimaryKeyExistsPrecondition.java:79)
at liquibase.precondition.core.NotPrecondition.check(NotPrecondition.java:38)
at liquibase.precondition.core.AndPrecondition.check(AndPrecondition.java:43)
at liquibase.precondition.core.PreconditionContainer.check(PreconditionContainer.java:201)
at liquibase.changelog.ChangeSet.execute(ChangeSet.java:471)
at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:43)
at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:73)
at liquibase.Liquibase.update(Liquibase.java:200)
at liquibase.integration.commandline.Main.doMigration(Main.java:1044)
at liquibase.integration.commandline.Main.run(Main.java:175)

Users with the same issue

6 times, 1 year ago
2 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 9 months ago
51 times, 1 year ago
Once, 1 year ago
123 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.