-
Notifications
You must be signed in to change notification settings - Fork 53
Embedded PostgreSQL fails to initialize but works after system restart #146
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
Comments
Hey @hongmiao-wu, thanks for the report. In these situations, the best solution is to try running the PostgreSQL database manually using the following commands:
The output should provide the Postgres database log, where the cause of the problem should be mentioned. If the database starts without issues, the problem is likely related to the permissions of the Java process that is trying to run the embedded Postgres. You can check a similar issue here: #115 |
Unfortunately, it does not work. First, it shows Then PostgreSQL server starts successfully But the app(JabRef) I wanted to run still throws the same error I mentioned above |
PostgreSQL 14.15 (Homebrew) - This doesn't look like binary files from this project. You need to use the |
LInk to code: embedded-postgres/src/main/java/io/zonky/test/db/postgres/embedded/EmbeddedPostgres.java Line 633 in 4c3dde5
|
Hey everyone, Console Output:
Specs: i tried to follow the JabRef-Setup very closely but encountered this at this step: possibly noteworthy: I installed git and java on a seperate drive to my OS. I updated the path to git manually in the settings so i could pull from the forked repo. edit: I stopped the build process and got this as console output: |
found something: i ran the command by hand and got this popup grabbed the latest visual c++ redist and installed it. solved the issue! https://learn.microsoft.com/de-de/cpp/windows/latest-supported-vc-redist?view=msvc-170 |
@iloveskittles82 Thank you for the info. I hope the original issue has also been addressed, so I'm closing this issue. |
Environment
zonky.test:embedded-postgres:2.1.0
Application: JabRef
OS: macOS 13.4
IntelliJ IDEA 2022.2.3
Java 23
The text was updated successfully, but these errors were encountered: