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

"Possibly failed to run initdb" - Windows #136

Open
intrepidOlivia opened this issue Jun 20, 2018 · 5 comments
Open

"Possibly failed to run initdb" - Windows #136

intrepidOlivia opened this issue Jun 20, 2018 · 5 comments

Comments

@intrepidOlivia
Copy link

I am trying to run tests using an embedded postgres server, but the process just hangs indefinitely after it extracts the archive and runs all the insert statements. There's one small Warning line that states Possibly failed to run initdb, but provides no further information about what went wrong or whether it actually failed to run and if that's what the problem is. Is there any way I can debug this?

@jablonskidawid
Copy link

There is a problem with starting instance of postgres process.
Try to run embedded postgres manually. Run exec C:\Users\USERNAME.embedpostgresql\postgresql-9.6.8-1-windows-x64-binaries\pgsql\bin\initdb.exe.
I had message box with error due to missing library MSVCR120.dll and after installing it (https://www.microsoft.com/en-us/download/confirmation.aspx?id=40784) embedded prostgres started

@LukeButters
Copy link

I wonder if it would be possible to detech if MSVCR120 is missing and print a warning, rather than have nothing printed to console and no error shown at all.

@LukeButters
Copy link

Perhaps what would also help is adding support for capturing the output of from the commands run or checking the exit code and printing what command failed. Currently under windows nothing is printed at all making debugging hard.

@mfvanek
Copy link

mfvanek commented Apr 19, 2019

I've faced with the same problem. Could you please increase priority of this issue?

@Jim-Lin
Copy link

Jim-Lin commented Jul 11, 2019

i solve it by the follows

  1. download postgresql-windows.exe from official site
  2. execute exe and wait it install requirement
    01
  3. click Cancel
    02

that's all, maybe help you guys

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

5 participants