Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Does not work on Travis CI with 2.5(PostgreSQL 10) #110

Open
kazuki43zoo opened this issue Nov 22, 2017 · 5 comments
Open

Does not work on Travis CI with 2.5(PostgreSQL 10) #110

kazuki43zoo opened this issue Nov 22, 2017 · 5 comments

Comments

@kazuki43zoo
Copy link

kazuki43zoo commented Nov 22, 2017

I've upgraded to 2.5 (=PostgreSQL 10). But it does not work on Travis CI(Linux).

See https://travis-ci.org/kazuki43zoo/mybatis-3/jobs/299145674#L3460-L3538

Note:
2.5 with PostgreSQL 9.6.5(new EmbeddedPostgres(Version.V9_6_5)) work fine.

@kazuki43zoo
Copy link
Author

Note: Work fine on Mac OS.

@smecsia
Copy link
Member

smecsia commented Nov 23, 2017

@kazuki43zoo I've tested your case in my local environment (Ubuntu 16.04) and can confirm the failure. I haven't dug deeper, but your problem is that initdb of 10.1 fails with the following:

postgres: error while loading shared libraries: libicuuc.so.53: cannot open shared object file: No such file or directory

I've found a workaround: you're using Paths.get("target/postgres") as a cached directory. Changing this to Paths.get(System.getProperty("java.io.tmpdir"), "pgembed") fixes the problem,

Also I'd suggest you to add this line to your log4j.properties to be able to track possible failures in the future (with postgresql-embedded > 2.5):

log4j.logger.ru.yandex.qatools.embed.postgresql=WARN, stdout

smecsia added a commit to smecsia/postgresql-embedded that referenced this issue Nov 23, 2017
kazuki43zoo added a commit to kazuki43zoo/mybatis-3 that referenced this issue Nov 23, 2017
@kazuki43zoo
Copy link
Author

@smecsia , Thanks for your comments.
A workaround is working fine!

@addmeaning
Copy link

Does ebmeddedPostgres.restoreFromFile() works on Travis? As far as I understand, the library uses flapdoodle to spin "pg_restore" process. Does the library provide "pg_restore" executable for Travis environment?

@sdeleuze
Copy link

sdeleuze commented Apr 13, 2018

Same error than @smecsia on Ubuntu 17.10.

sdeleuze added a commit to sdeleuze/r2dbc that referenced this issue Apr 13, 2018
sdeleuze added a commit to sdeleuze/r2dbc that referenced this issue Apr 13, 2018
sdeleuze added a commit to sdeleuze/r2dbc that referenced this issue Apr 13, 2018
sdeleuze added a commit to sdeleuze/r2dbc that referenced this issue Apr 13, 2018
sdeleuze added a commit to sdeleuze/r2dbc that referenced this issue Apr 13, 2018
sdeleuze added a commit to sdeleuze/r2dbc that referenced this issue Apr 13, 2018
sdeleuze added a commit to sdeleuze/r2dbc that referenced this issue Apr 13, 2018
nebhale pushed a commit to r2dbc/r2dbc-client that referenced this issue May 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants