Closed natechadwick closed 4 months ago
Note: See the same errors on the Derby database on Windows install of the DTS, but the metadata service still deploys, but the tables don't have the updated indexes.
I think the last error is what causes the failed deployment on mysql on linux.
Running Changeset: changeLog.xml::20170503041524-3::user
2024-02-27 08:48:59,709 [main] ERROR liquibase.changelog- ChangeSet changeLog.xml::20170503041524-3::user encountered an exception.
2024-02-27 08:48:59,717 [main] INFO liquibase.command- Update command encountered an exception.
2024-02-27 08:48:59,724 [main] INFO liquibase.lockservice- Successfully released change log lock
2024-02-27 08:48:59,724 [main] INFO liquibase.command- Command execution complete
2024-02-27 08:48:59,864 [main] ERROR org.apache.catalina.core.StandardContext- One or more listeners failed to start. Full details will be found in the appropriate container log file
2024-02-27 08:48:59,865 [main] ERROR org.apache.catalina.core.StandardContext- Context [/perc-metadata-services] startup failed due to previous errors
Hi Nate, there is issue related to DBMS Precondition failed: expected mysql, got mariadb in "masterChangeLog.xml" in case when database is mariadb.
Still getting error in case of linux environment: Caused by: liquibase.exception.DatabaseException: Table 'mysql_dts.blog_post_visit' doesn't exist [Failed SQL: (1146) ALTER TABLE mysql_dts.blog_post_visit MODIFY VISIT_ID BIGINT AUTO_INCREMENT]
Hi Nate, This issue is happening as "blog_post_visit" table is case sensitive in case of linux. Actual table name should be "BLOG_POST_VISIT". Fixed by #1257
Describe the bug
When upgrading then from a previous version 8.x or 5.x to the latest 8.1.3 when the DTS is configured with a MySQL database running on MySQL on the linux platform, the metadata service fails to start with Liquibase migration errors.
To Reproduce
Steps to reproduce the behavior:
on MySQL:
On Derby:
Expected behavior The metadata service should start correctly and the liquibase database migration that optimizes indexes for performance should be applied successfully on all database platforms.
Versions Affected