Skip to content

HAPI FHIR fails to start: Flyway Community Edition does not support PostgreSQL 15 #5

Description

@niccoreyes

Description

The eref-hapi container fails to start with PostgreSQL 15.18. The root cause is that Flyway Community Edition 10.x does not support PostgreSQL ≥15 (requires Teams/Enterprise license per Redgate licensing).

Error

org.flywaydb.core.api.FlywayException: Unsupported Database: PostgreSQL 15.18

Root Cause

  1. SPRING_CONFIG_LOCATION=file:/app/config/ replaces default config locations, so the embedded spring.flyway.enabled: false from src/main/resources/application.yaml is not loaded
  2. The runtime config/application.yaml did not disable Flyway, triggering Flyway auto-configuration
  3. Flyway CE 10.x only supports PostgreSQL ≤14

Fix Applied

  • Added spring.flyway.enabled: false to config/application.yaml
  • Fixed typo: allow-circular-references: truedoctrue
  • Added explanatory comment documenting the Flyway rationale

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions