cancel
Showing results for 
Search instead for 
Did you mean: 

Postgresql fail with install 12 on Windows 10

Highlighted
Level 3 Traveller

Postgresql fail with install 12 on Windows 10

Hi all. Today i install Postgresql 12 on Windows 10. And show error on creating database in. After scrool  file install-postgresql.log  i see error 

 

Called Die(Failed to initialise the database cluster with initdb)...
Failed to initialise the database cluster with initdb

Script stderr:
 Program ended with an error exit code

Error running cscript //NoLogo "C:\bin\PostgreSQL12/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\Users\kvn\AppData\Local\Temp/postgresql_installer_37a9c0f77e" "C:\bin\PostgreSQL12" "C:\bin\PostgreSQL12\data" 5432 "DEFAULT" 0: Program ended with an error exit code
Problem running post-install step. Installation may not complete correctly
 The database cluster initialisation failed.

After i  type in command prompt next command

 

initdb -U "postgres" -W -D"C:\DB\PostgreSQL\"

And see next error

 

c:\bin\PostgreSQL12\bin>initdb.exe -U "postgres" -W -D"C:\DB\PostgreSQL\"
initdb: ошибка: Программа "postgres" найдена в "c:\bin\PostgreSQL12\bin/initdb.exe",
но её версия отличается от версии initdb.
Проверьте правильность установки СУБД.

 

How i can initialize database?

 

 

1 REPLY 1
EDB Team Member

Re: Postgresql fail with install 12 on Windows 10

Hi, 

 

The error shared by you, states that the installation completed, however, the DB cluster initialization failed.

 

Could you please check the below things :

 

- The permissions are set correctly on the data directory.
- No antivirus is running on the server as it might cause the issue.
- Create the DB cluster manually using the initdb utility.

 

Also, could you please share the installation logs with us for the analysis.