Error linking to development database
masselja83
Posts: 2 New member
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?
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?
Tagged:
Answers
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.
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-webmap, https://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?
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.