-
Notifications
You must be signed in to change notification settings - Fork 90
postgresql-embedded fails to start in travis environment #145
Comments
I'm digging this problem for a while (using wercker CI tool). Using wercker CLI I can do the same steps locally on my machine and debug intermediate containers. (Postgres is being initiated on a maven test step.) What I have discovered so far are:
Here is the log of the failing intermediate container.
Binary files do exists.
Somehow, I can not run the executable. Which lead me to checking the instruction set compability
I also checked x64 compability:
Anyone having insights about that? |
Somehow it did had to do with the base image I was using. Maybe it was missing some runtime libraries.. I left using alpine versions and ended up using ubuntu 16.04 with preinstalled jdk. After all, it was able to execute initdb. While maven is being executed as root I created a new user and did installation & packaging using the unprivileged user. Anyone having the same issue, I'll paste here the wercker.yml file. Hope you wont waste hours like I did :)
|
Hi there, first of all, thx for your library it worked great for the last two years for me.
Currently, I have a public project which uses postgres-embedded and builds it at CI, but after some changes (probably in Travis ci agents), my test code cannot connect to Postgres on build machines. I cannot reproduce it locally and not sure how to get more information about what's going on.
Here is build log https://travis-ci.org/ArchDev/akka-http-rest/jobs/440496384#L796 and file where I use the library https://github.com/ArchDev/akka-http-rest/blob/master/src/test/scala/me/archdev/utils/InMemoryPostgresStorage.scala also Travis build config https://github.com/ArchDev/akka-http-rest/blob/master/.travis.yml
This happening only on CI (worst words ever). Locally everything works great for me. Can you please help me to debug that issue?
The text was updated successfully, but these errors were encountered: