You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using PostgreSQL as the reporting backend, Flyway fails to initialize with the error No database found to handle jdbc:postgresql://postgres:5432/reports. This occurs despite the PostgreSQL JDBC driver being properly added as a dependency and the application being able to connect to PostgreSQL when Flyway is disabled.
Start the application and send test invoice to local AP
Error Message
INFO c.h.p.r.b.sql.FlywayMigrator$Singleton : Starting to run Flyway for DB type POSTGRESQL
Exception in thread "Thread-2" org.flywaydb.core.api.FlywayException: No database found to handle jdbc:postgresql://postgres:5432/reports
Investigation and Troubleshooting
Verified PostgreSQL driver is in dependencies
Confirmed database exists and is accessible with given credentials
Successfully connected to database when bypassing Flyway
When Flyway is disabled, application can connect but reports relation "peppol_reporting_item" does not exist
Workaround Found
Disabling Flyway (peppol.reporting.flyway.enabled=false) and manually creating the required tables allows the application to work properly, confirming that the issue is specific to Flyway driver loading.
The text was updated successfully, but these errors were encountered:
Description
When using PostgreSQL as the reporting backend, Flyway fails to initialize with the error
No database found to handle jdbc:postgresql://postgres:5432/reports
. This occurs despite the PostgreSQL JDBC driver being properly added as a dependency and the application being able to connect to PostgreSQL when Flyway is disabled.Steps to Reproduce
Configure reporting to use PostgreSQL:
Add Reporting and PostgreSQL driver as a dependency:
Start the application and send test invoice to local AP
Error Message
Investigation and Troubleshooting
relation "peppol_reporting_item" does not exist
Workaround Found
Disabling Flyway (
peppol.reporting.flyway.enabled=false
) and manually creating the required tables allows the application to work properly, confirming that the issue is specific to Flyway driver loading.The text was updated successfully, but these errors were encountered: