Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [fly way] Version 1.2.1 cannot be started #4247

Closed
2 of 3 tasks
dzygcc opened this issue Feb 24, 2025 · 1 comment
Closed
2 of 3 tasks

[Bug] [fly way] Version 1.2.1 cannot be started #4247

dzygcc opened this issue Feb 24, 2025 · 1 comment
Labels
Bug Something isn't working

Comments

@dzygcc
Copy link
Contributor

dzygcc commented Feb 24, 2025

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

上一个版本1.1.0 因为fly way mysql5.7无法启动,现在升级到1.2.1,数据库重新用1.2.1里的sql初始化的,仍然无法启动。

求禁用 fly way的方法。

报错:
[dinky] 2025-02-24 15:08:38.593 ESC[1;31m ERRORESC[m ESC[1;35m30359ESC[m --- [ main] ESC[1;36morg.springframework.boot.SpringApplicationESC[m: Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'adminController' defined in URL [jar:file:/data0/app/dinky-release-1.14-1.2.1/lib/dinky-admin-1.2.1.jar!/org/dinky/controller/AdminController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl' defined in URL [jar:file:/data0/app/dinky-release-1.14-1.2.1/lib/dinky-admin-1.2.1.jar!/org/dinky/service/impl/UserServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userRoleServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userRoleMapper' defined in URL [jar:file:/data0/app/dinky-release-1.14-1.2.1/lib/dinky-admin-1.2.1.jar!/org/dinky/mapper/UserRoleMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flyway' defined in class path resource [org/dinky/configure/DatabaseFlywayMigration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.flywaydb.core.Flyway]: Factory method 'flyway' threw exception; nested exception is org.flywaydb.core.api.FlywayException: Found more than one migration with version 20240506.1.0.2
Offenders:
-> /data0/app/dinky-release-1.14-1.2.1/bin/file:/data0/app/dinky-release-1.14-1.2.1/lib/dinky-admin-1.2.1.jar!/db/migration/mysql/V20240506.1.0.2__baseline.sql (SQL)
-> /data0/app/dinky-release-1.14-1.2.1/bin/file:/data0/app/dinky-release-1.14-1.2.1/lib/dinky-admin-1.2.1.jar!/db/migration/postgresql/V20240506.1.0.2__baseline.sql (SQL)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:801) ~[spring-beans-5.3.31.jar:5.3.31]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:224) ~[spring-beans-5.3.31.jar:5.3.31]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) ~[spring-beans-5.3.31.jar:5.3.31]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) ~[spring-beans-5.3.31.jar:5.3.31]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.31.jar:5.3.31]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.31.jar:5.3.31]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.31.jar:5.3.31]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.31.jar:5.3.31]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.31.jar:5.3.31]

What you expected to happen

能启动成功

How to reproduce

dinky-release-1.14-1.2.1 下载后,初始化,启动就报错。

Anything else

No response

Version

1.2.1

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@dzygcc dzygcc added Bug Something isn't working Waiting for reply Waiting for reply labels Feb 24, 2025
@github-actions github-actions bot changed the title [Bug] [fly way] 1.2.1 版本无法启动 [Bug] [fly way] Version 1.2.1 cannot be started Feb 24, 2025
@Zzm0809
Copy link
Contributor

Zzm0809 commented Feb 25, 2025

application.yml 中 active: include 去掉 flyway

@aiwenmo aiwenmo removed the Waiting for reply Waiting for reply label Feb 27, 2025
@aiwenmo aiwenmo closed this as completed Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants