/
Restart failed update of TermWeb 4 (flyway errors)

Restart failed update of TermWeb 4 (flyway errors)

Problem

Latest update has failed on tomcat startup and contains errors about failed flyway migration.

Error creating bean with name 'flyway' defined in class path resource [com/termweb4/core/FlywayConfig.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Schema `termweb4` contains a failed migration to version 4.0.38 !

Solution

First of all you need to fix source of error (termweb configuration, database corruption, etc), after that you’ll be able to restart failed migration with start of Tomcat.

  1. Locate failed migration in table schema_version and delete it:

    DELETE FROM `schema_version` WHERE (`version` = '4.0.38');
  2. Start a tomcat and monitor continuation of update, if everything is ok you must see message about successful tomcat startup.

In case when you fixed update problem manually you can change installation flag of failed migration:

UPDATE schema_version SET success = '1' WHERE (version = '4.0.38');

Related articles

Related content

Update TermWeb 4 with new version
Update TermWeb 4 with new version
More like this
Edit the settings in termweb.properties file
Edit the settings in termweb.properties file
More like this
Upgrading TermWeb
Upgrading TermWeb
More like this
TermWeb gives Proxy Error
TermWeb gives Proxy Error
More like this
TermWeb 3 migration to 4 fails with "Data truncated for column 'api_key' at row 1"
TermWeb 3 migration to 4 fails with "Data truncated for column 'api_key' at row 1"
More like this
Migrate TermWeb 3.x to TermWeb 4.0 (Linux)
Migrate TermWeb 3.x to TermWeb 4.0 (Linux)
More like this