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

Quarkus bump to 3.10.0 fails to start when using flyway #40532

Closed
AndreRog opened this issue May 9, 2024 · 2 comments
Closed

Quarkus bump to 3.10.0 fails to start when using flyway #40532

AndreRog opened this issue May 9, 2024 · 2 comments
Labels
area/flyway kind/bug Something isn't working

Comments

@AndreRog
Copy link

AndreRog commented May 9, 2024

Describe the bug

In version 3.9.5 everything works fine, when we bump to version 3.10.0 the error bellow occurs.

{"timestamp":"2024-05-09T10:04:54.237+01:00","sequence":3416,"loggerClassName":"org.jboss.logging.Logger","loggerName":"io.quarkus.runtime.Application","level":"ERROR","message":"Failed to start application (with profile [dev])","threadName":"Quarkus Main Thread","threadId":128,"hostName":"laptop-3555.local","processName":"iam-api-dev.jar","processId":3327,"stackTrace":"java.lang.RuntimeException: Failed to start quarkus\n\tat io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)\n\tat io.quarkus.runtime.Application.start(Application.java:101)\n\tat io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:111)\n\tat io.quarkus.runtime.Quarkus.run(Quarkus.java:71)\n\tat io.quarkus.runtime.Quarkus.run(Quarkus.java:44)\n\tat io.quarkus.runtime.Quarkus.run(Quarkus.java:124)\n\tat com.feedzai.iam.authn.web.Main.main(Main.java:14)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat io.quarkus.runner.bootstrap.StartupActionImpl$1.run(StartupActionImpl.java:113)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\nCaused by: org.flywaydb.core.api.FlywayException: Unsupported Database: PostgreSQL 16.2\n\tat org.flywaydb.core.internal.database.DatabaseTypeRegister.getDatabaseTypeForConnection(DatabaseTypeRegister.java:105)\n\tat org.flywaydb.core.internal.jdbc.JdbcConnectionFactory.<init>(JdbcConnectionFactory.java:73)\n\tat org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:134)\n\tat org.flywaydb.core.Flyway.migrate(Flyway.java:147)\n\tat io.quarkus.flyway.runtime.FlywayRecorder.doStartActions(FlywayRecorder.java:136)\n\tat io.quarkus.deployment.steps.FlywayProcessor$startActions2099152139.deploy_0(Unknown Source)\n\tat io.quarkus.deployment.steps.FlywayProcessor$startActions2099152139.deploy(Unknown Source)\n\t... 13 more\n","errorType":"java.lang.RuntimeException","errorMessage":"Failed to start quarkus"}

{"timestamp":"2024-05-09T10:04:54.259+01:00","sequence":3417,"loggerClassName":"org.jboss.logging.Logger","loggerName":"io.quarkus.deployment.dev.IsolatedDevModeMain","level":"INFO","message":"Attempting to start live reload endpoint to recover from previous Quarkus startup failure","threadName":"main","threadId":1,"hostName":"laptop-3555.local","processName":"iam-api-dev.jar","processId":3327}

Expected behavior

Quarkus application to start normally.

Actual behavior

When we run quarkus dev and error occurs:

{"timestamp":"2024-05-09T10:04:54.237+01:00","sequence":3416,"loggerClassName":"org.jboss.logging.Logger","loggerName":"io.quarkus.runtime.Application","level":"ERROR","message":"Failed to start application (with profile [dev])","threadName":"Quarkus Main Thread","threadId":128,"hostName":"laptop-3555.local","processName":"iam-api-dev.jar","processId":3327,"stackTrace":"java.lang.RuntimeException: Failed to start quarkus\n\tat io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)\n\tat io.quarkus.runtime.Application.start(Application.java:101)\n\tat io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:111)\n\tat io.quarkus.runtime.Quarkus.run(Quarkus.java:71)\n\tat io.quarkus.runtime.Quarkus.run(Quarkus.java:44)\n\tat io.quarkus.runtime.Quarkus.run(Quarkus.java:124)\n\tat com.feedzai.iam.authn.web.Main.main(Main.java:14)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat io.quarkus.runner.bootstrap.StartupActionImpl$1.run(StartupActionImpl.java:113)\n\tat java.base/java.lang.Thread.run(Thread.java:833)\nCaused by: org.flywaydb.core.api.FlywayException: Unsupported Database: PostgreSQL 16.2\n\tat org.flywaydb.core.internal.database.DatabaseTypeRegister.getDatabaseTypeForConnection(DatabaseTypeRegister.java:105)\n\tat org.flywaydb.core.internal.jdbc.JdbcConnectionFactory.<init>(JdbcConnectionFactory.java:73)\n\tat org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:134)\n\tat org.flywaydb.core.Flyway.migrate(Flyway.java:147)\n\tat io.quarkus.flyway.runtime.FlywayRecorder.doStartActions(FlywayRecorder.java:136)\n\tat io.quarkus.deployment.steps.FlywayProcessor$startActions2099152139.deploy_0(Unknown Source)\n\tat io.quarkus.deployment.steps.FlywayProcessor$startActions2099152139.deploy(Unknown Source)\n\t... 13 more\n","errorType":"java.lang.RuntimeException","errorMessage":"Failed to start quarkus"}

{"timestamp":"2024-05-09T10:04:54.259+01:00","sequence":3417,"loggerClassName":"org.jboss.logging.Logger","loggerName":"io.quarkus.deployment.dev.IsolatedDevModeMain","level":"INFO","message":"Attempting to start live reload endpoint to recover from previous Quarkus startup failure","threadName":"main","threadId":1,"hostName":"laptop-3555.local","processName":"iam-api-dev.jar","processId":3327}

How to Reproduce?

  1. Quarkus application that uses a Postgres and flyway, use version 3.9.5
  2. Bump to 3.10.0
  3. quarkus dev

Output of uname -a or ver

No response

Output of java -version

openjdk version "17" 2021-09-14

Quarkus version or git rev

3.4.3

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)

Additional information

No response

@AndreRog AndreRog added the kind/bug Something isn't working label May 9, 2024
@quarkus-bot
Copy link

quarkus-bot bot commented May 9, 2024

/cc @cristhiank (flyway), @gastaldi (flyway), @geoand (flyway), @gsmet (flyway)

@gastaldi
Copy link
Contributor

gastaldi commented May 9, 2024

You need to add a new dependency. See https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.10#flyway

@gastaldi gastaldi closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/flyway kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants