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
Flyway gives No database found to handle jdbc:postgresql://localhost/access_point
when deployed as Jar
#3722
Comments
I see this error since dependabot tries to upgrade Flyways from 9.22.3 to 10.1.0 |
Apparently, they changed the way flyway is distributed. dependencies {
implementation("org.flywaydb:flyway-database-postgresql:10.4.1")
} Databases supported in flyway-core:
|
Many thanks, buddy! You've helped a lot! |
Thanks @IRus Following configuration helped me to solve the issue. (if you are using gradle plugin)
|
"No database found" does not immediately explain what's going on. Team got this issue and thought it was network related. Not only did this break existing behavior but also does not convey any meaningful information. |
Thank you. This helped me |
Which version and edition of Flyway are you using?
flyway-core:9.21.1
If this is not the latest version, can you reproduce the issue with the latest one as well? (Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Running SBT
assembly
to create the final jar file, with SBTrun
the project works fineWhich database are you using? (Type & version)
PostgreSQL 15.3
Which operating system are you using?
Windows 11
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
Trying to run the tutorial on my machine, seems that running sbt run to run my main.scala file all works fine but when i run sbt assembly and then I run the jar, the error
No database found to handle jdbc:postgresql://localhost/access_point
appearsWhat did you expect to see?
I expected it to run normally and give another error related to the permissions of the user it is trying to login, but I didnt expect for it to not even make it possible to connect to the database
What did you see instead?
this:
Repository:
https://github.com/boroicamarius/scala-instance
The text was updated successfully, but these errors were encountered: