[
https://issues.apache.org/jira/browse/FINERACT-1457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17466608#comment-17466608
]
Petri Tuomola commented on FINERACT-1457:
-----------------------------------------
I'll fix the Kubernetes YAML.
The problem with sticking to Flyway 5.x is that it does not support MariaDB
10.6. So then we would have the problem the other way around: it would not be
possible to use new/up-to-date versions of the database, and everyone would be
forced to use MySQL 5.7 or an equally old version of MariaDB. So we would be
stuck on both out of date version of database as well as Flyway, and no way to
remain up-to-date.
In my view the right solution would be to ask people to upgrade their database
from MySQL 5.7 to MariaDB 10.6 after which the latest version of Fineract
should just work. The upgrade from MySQL to MariaDB should hopefully be an easy
process: [https://mariadb.com/kb/en/upgrading-from-mysql-to-mariadb/]
> Fineract no longer works with MySQL 5.7 due to Flyway v8 upgrade
> ----------------------------------------------------------------
>
> Key: FINERACT-1457
> URL: https://issues.apache.org/jira/browse/FINERACT-1457
> Project: Apache Fineract
> Issue Type: Bug
> Components: Database
> Affects Versions: 1.6.0
> Reporter: Michael Vorburger
> Priority: Critical
> Fix For: 1.6.0
>
>
> https://www.fineract.dev is failing to upgrade to the latest bleeding edge
> Fineract code from master branch, see
> https://github.com/vorburger/www.fineract.dev/issues/8:
> {noformat}
> 2021-12-29 18:54:47.772 ERROR 10 --- [ main]
> o.s.b.web.embedded.tomcat.TomcatStarter : Error starting Tomcat context.
> Exception: org.springframework.beans.factory.UnsatisfiedDependencyException.
> Message: Error creating bean with name 'securityConfig': Unsatisfied
> dependency expressed through field 'userDetailsService'; nested exception is
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> creating bean with name 'userDetailsService': Unsatisfied dependency
> expressed through field 'platformUserRepository'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'appUserRepository' defined in
> org.apache.fineract.useradministration.domain.AppUserRepository defined in
> @EnableJpaRepositories declared on PersistenceConfig: Cannot create inner
> bean '(inner bean)#4ab90d01' of type
> [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
> property 'entityManager'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name '(inner bean)#4ab90d01': Cannot resolve reference to bean
> 'entityManagerFactory' while setting constructor argument; nested exception
> is org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'tenantDatabaseUpgradeService': Invocation of init method
> failed; nested exception is
> org.flywaydb.core.internal.license.FlywayEditionUpgradeRequiredException:
> Flyway Teams Edition or MySQL upgrade required: MySQL 5.7 is no longer
> supported by Flyway Community Edition, but still supported by Flyway Teams
> Edition.
> (...)
> Caused by:
> org.flywaydb.core.internal.license.FlywayEditionUpgradeRequiredException:
> Flyway Teams Edition or MySQL upgrade required: MySQL 5.7 is no longer
> supported by Flyway Community Edition, but still supported by Flyway Teams
> Edition.
> at
> org.flywaydb.core.internal.database.base.Database.ensureDatabaseNotOlderThanOtherwiseRecommendUpgradeToFlywayEdition(Database.java:126)
> at
> org.flywaydb.core.internal.database.mysql.MySQLDatabase.ensureSupported(MySQLDatabase.java:252)
> at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:188)
> at org.flywaydb.core.Flyway.repair(Flyway.java:335)
> at
> org.apache.fineract.infrastructure.core.service.TenantDatabaseUpgradeService.upgradeTenantDB(TenantDatabaseUpgradeService.java:118)
> at
> org.apache.fineract.infrastructure.core.service.TenantDatabaseUpgradeService.upgradeAllTenants(TenantDatabaseUpgradeService.java:63)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at
> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389)
> at
> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333)
> at
> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157)
> ... 108 common frames omitted{noformat}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)