How can we help you today? How can we help you today?

Error linking to development database

Hello! New Flyway Desktop/CLI user here. In trying to link to a development database (Provisioning method: Docker; Driver: PostgreSQL) I received the following error:

Database connection failed: Error reading resolver configuration for resolver docker
Caused by: Cannot deserialize value of type `java.lang.String` from Array value (token `JsonToken.START_ARRAY`)
 at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: org.flywaydb.provisioner.docker.DockerEnvironmentProvisionerConfigurationExtension["composeFile"])

This suggests there's an issue with my Compose file. The docker compose file that I am using is a multi-container app, and I reference only the postgres service. Thoughts on how I might fix this error?
masselja83
0

Comments

3 comments

  • Peter_Laws
    Hello masselja83, welcome!

    Are you able to share the compose file please to give us some context?
    We can happily create you a support ticket to share it privately if you prefer.
    Peter_Laws
    0
  • masselja83
    Thanks @Peter_Laws
    I don't yet have permission to share the compose file for our overarching app but I can tell you that it references some public repos (https://github.com/USSBA/hubzone-webmaphttps://github.com/USSBA/hubzone-api) and some private ones, while a configured Postgres service (postgis/postgis:13-3.4) is used for the backend. Does that help diagnose the error?
    masselja83
    0
  • Peter_Laws
    I'm afraid not, without any frame of reference I fear the best I can offer are the generic examples shown at that combine multiple images https://hub.docker.com/r/redgate/flyway

    If Flyway is the only part you're struggling with you could alternative start by combining flyway and its corresponding db and then iterate out. That would probably also allow you to share the results if you still have issues.
    Peter_Laws
    0

Add comment

Please sign in to leave a comment.