-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.io.IOException: Gave up waiting for server to start after 10000ms #97
Comments
Hi @lwitzani. In my opinion, it is very likely the error is related to the modified binaries. In that case I can't give you any assistance. However, here are some ideas to deal with the problem. You can try to prepare a test that will not require the postgis extension to eliminate the cause due to modified files. You can also try to start the binaries manually like this |
I am currently starting the postgres server with this line I logged into the build agent and tried to connect multiple times to the database server that should be started through this command (right when the build is running) but i really cannot connect to it, so it seems that the server is just not started. I also tried your provided command |
i set the log level to DEBUG and defined a output redirector as follows
So running locally, in the redirector file i have
with the last line saying that the database system is now ready to accept connections. The printed command in the middle tells that everything is now ready to be startet using this command. additionally via log level DEBUG i get these outputs
with the last line saying it finished in 834ms to start the server which is pretty fast i guess. Now on contrast to this, on the build agent i have in the redirect file:
but after that it does not continue with the log lines that state that the server is starting. Also in the build log that is now visible via log level DEBUG:
but after that it does not state that it has been started (the 834ms from before). I also tried to use the exact same command to start the database server on the build agent which is used locally on my machine. It was like
and it successfully and instantly started the database server, so no problem there. I have absolutely no clue why this would not work on the build agent |
now i tried to find the version that introduced this behaviour.
and it works fine. |
Thank you for your comprehensive investigation! Based on your findings, I'm guessing that the problem could be related to the following issues: #66 #67. The previous |
hey, just a short update. I switched to version 2.0.2 and now everything works again as intended. Thank you! |
Ok, perfect! Thanks for the information. |
Hi,
i have a similar issue as in zonkyio/embedded-database-spring-test#1
I am currently in the process of updating the postgres related dependencies in our project.
Before we had
and i tried to update to
Locally all tests work when starting them via intellij and also directly via mvn test.
The problem now occurs on our build system.
We use TeamCity together with Windows Agents to execute the builds.
The build step is basically mvn clean deploy.
With the old configuration, everything worked fine but with the new one the builds have failed tests.
Unfortunately, the only log output for failed tests is
and the strange part is that not all tests fail like this.
In fact, 35 fail and 91 pass.
So it seems that it should actually work, otherwise all tests would fail.
Do you have any idea what the problem could be in this case?
As an additional note, i have to mention that i modified the used embedded-postgres-binaries-windows-amd64-14.5.0.jar to include a postgres environment that has the postgis extension installed.
It contains the original environment + manually installed postgis extension files.
This is the case for both versions 13.2.0 and 14.5.0 and it worked perfectly on 13.2.0. I don't think that this is the problem.
Thanks so much!
Cheers,
Lukas
The text was updated successfully, but these errors were encountered: