zonkyio / embedded-postgres

Java embedded PostgreSQL component for testing
Apache License 2.0
344 stars 43 forks source link

Duplicate postgres binaries #62

Closed Quafadas closed 3 years ago

Quafadas commented 3 years ago

I got this library working briefly... but now I get this :-( ...

[error] java.lang.IllegalStateException: Duplicate postgres binaries
[error]         at io.zonky.test.db.postgres.embedded.DefaultPostgresBinaryResolver.findPgBinary(DefaultPostgresBinaryResolver.java:78)
[error]         at io.zonky.test.db.postgres.embedded.DefaultPostgresBinaryResolver.getPgBinary(DefaultPostgresBinaryResolver.java:60)
[error]         at io.zonky.test.db.postgres.embedded.EmbeddedPostgres.prepareBinaries(EmbeddedPostgres.java:784)
[error]         at io.zonky.test.db.postgres.embedded.EmbeddedPostgres.<init>(EmbeddedPostgres.java:133)
[error]         at io.zonky.test.db.postgres.embedded.EmbeddedPostgres$Builder.start(EmbeddedPostgres.java:583)
[error]         at example.backend.WithDbFramework.setup(WithDbFramework.scala:26)

Does anyone have a hint on what might be causing this or how to diagnose?

tomix26 commented 3 years ago

Hi, there should also be another message Detected multiple binaries of the same architecture: '...' printing the list of problematic dependencies. That should give you the hint where the problem is.

Quafadas commented 3 years ago

Hmmmm... I don't understand what happened, but the problem disappeared after killing off the build tool.

I'll keep an eye out for this again and see if I can find the message you suggest - currently, I can't reproduce it, after having had it for an hour or so :-(...

Thanks for the feedback.