cancel
Showing results for 
Search instead for 
Did you mean: 

PostgreSQL Installer fails at Initializing the database cluster. Help.

Adventurer

PostgreSQL Installer fails at Initializing the database cluster. Help.

Can someone help with this.  We have tried  intalling the postgresql-10.1-3-windows-x64.exe for Windows 7 Pro 64 bit as many ways as we can think.

 

It allways goes through all of its steps until the very end.  It then hangs on the  Initializing the database cluster, and a rad0313f.bat batch file opens up.  It has the following contents:

@ECHO OFF
CHCP 1252
icacls "C:\Program Files\PostgreSQL\10\data" /grant "SWAI\tdfm1"Smiley SadNP)(RX) > "C:\Users\TDFM1\AppData\Local\Temp\rad446D3.tmp" 2>&1
EXIT /B %ERRORLEVEL%

 

18 REPLIES
EDB Team Member

Re: PostgreSQL Installer fails at Initializing the database cluster. Help.

Are you running the install as a user with administrator privileges?
Adventurer

Re: PostgreSQL Installer fails at Initializing the database cluster. Help.

Yes, I have full privaleges.  For some reason, access to the database cluster is being denied.

 

Adventurer

Re: PostgreSQL Installer fails at Initializing the database cluster. Help.

I tried again and just kept closing the batch files that seemd to fail.  PGAdmin is creatted but without any data cluster.  Any ideas?

This was in the log file:

 

Initialising the database cluster (this may take a few minutes)...
Executing cscript //NoLogo "C:\Program Files\PostgreSQL\10/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\Program Files\PostgreSQL\10" "C:\Program Files\PostgreSQL\10\data" 5432 "English,UnitedStates" 0
Script exit code: 0

Script output:
WScript.Shell Initialized...
Scripting.FileSystemObject initialized...

Called CreateDirectory(C:\Program Files\PostgreSQL\10\data)...
Called CreateDirectory(C:\Program Files\PostgreSQL\10)...
WScript.Network initialized...
strParentOfDataDirC:\Program Files\PostgreSQL\10
logged in userSWAI\tdfm1
Called AclCheck(C:\Program Files\PostgreSQL\10\data)
Called IsVistaOrNewer()...
'winmgmts' object initialized...
Version:6.1
MajorVersion:6
Executing icacls to ensure the SWAI\tdfm1 account can read the path C:\Program Files\PostgreSQL\10\data
Executing batch file 'rad0313F.bat'...
Output file does not exists...
Called IsVistaOrNewer()...
'winmgmts' object initialized...
Version:6.1
MajorVersion:6
Ensuring we can write to the data directory (using icacls) to SWAI\tdfm1:
Executing batch file 'rad0313F.bat'...
Output file does not exists...
Executing batch file 'rad0313F.bat'...
Output file does not exists...
Reading: objConfFile is nothing...
Writing: objConfFile is nothing...
Called AclCheck(C:\Program Files\PostgreSQL\10\data)
Called IsVistaOrNewer()...
'winmgmts' object initialized...
Version:6.1
MajorVersion:6
Executing icacls to ensure the NT AUTHORITY\NetworkService account can read the path C:\Program Files\PostgreSQL\10\data
Executing batch file 'rad0313F.bat'...
Output file does not exists...
Called IsVistaOrNewer()...
'winmgmts' object initialized...
Version:6.1
MajorVersion:6
Granting service account access to the data directory (using icacls) to NT AUTHORITY\NetworkService:
Executing batch file 'rad0313F.bat'...
Output file does not exists...
initcluster.vbs ran to completion

Script stderr:

Configuring database server startup...
Executing cscript //NoLogo "C:\Program Files\PostgreSQL\10\installer\server\startupcfg.vbs" 10 "NT AUTHORITY\NetworkService" "****" "C:\Program Files\PostgreSQL\10" "C:\Program Files\PostgreSQL\10\data" "postgresql-x64-10"
Script exit code: 0

Script output:
startupcfg.vbs ran to completion

Moderator

Re: PostgreSQL Installer fails at Initializing the database cluster. Help.

Hi,

If you encounter an error during the installation process on a Windows system, exit the installation, and ensure that your version of Windows is up-to-date.  After applying any  outstanding operating system updates, re-invoke the PostgreSQL installer.

If you still facing the same issue then kindly share the latest installation log files from %TEMP% directory.

In addition to the above could you please also make sure that the TEMP directory have proper permission so that user can read, write and execute.

Adventurer

Re: PostgreSQL Installer fails at Initializing the database cluster. Help.

somehow my reply got lost.

I updated Windows, and made sure that both c:\Temp and the %Temp% had permissions.  However, the permissions in the %Temp% were greyed out.  I also could not access the user profile from a PC where the C:\drive was shared, but could get into Users.

 

I reinstalled and it again failed in the 3 batch files where icacls is called.  They open in order and I shut them down.  After that I get two popup error messages.

 

Failed to load SQL modules into the database cluster

 

Problem running post-install step. Installation may not complet correctly.

Error reading file C:/Program Files/PostgreSQL/10/dat/postgresqul.conf

 

I will attempt to post the log file in a separate reply.

 

Adventurer

Re: PostgreSQL Installer fails at Initializing the database cluster. Help.

I did everything, and posted a reply.  somehow it ended up as a reply to the original message.

Moderator

Re: PostgreSQL Installer fails at Initializing the database cluster. Help.

Hi,

 

Thank you for the update.

 

Could you please try resending the response as we are not able to get the response shared by you.

Try uploading and sharing the download link for the bitrock installation log files on the http://uploads.enterprisedb.com/

 

Adventurer

Re: PostgreSQL Installer fails at Initializing the database cluster. Help.

Here is the log file:

Log started 02/06/2018 at 14:15:22
Preferred installation mode : qt
Trying to init installer in mode qt
Mode qt successfully initialized
Executing cscript //NoLogo "C:\Users\TDFM1\AppData\Local\Temp\postgresql_installer_324885683f\prerun_checks.vbs"
Script exit code: 0

Script output:
 The scripting host appears to be functional.

Script stderr:
 

Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 Base Directory. Setting variable iBaseDirectory to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 Branding. Setting variable iBranding to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 Version. Setting variable brandingVer to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 Shortcuts. Setting variable iShortcut to empty value
[14:15:27] Using branding: PostgreSQL 10
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 SB_Version. Setting variable sb_version to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 pgAdmin_Version. Setting variable pgadmin_version to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 CLT_Version. Setting variable clt_version to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 Data Directory. Setting variable server_data_dir to empty value
Executing C:\Users\TDFM1\AppData\Local\Temp/postgresql_installer_324885683f/temp_check_comspec.bat 
Script exit code: 0

Script output:
 "test ok"

Script stderr:
 

Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 Data Directory. Setting variable iDataDirectory to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 Base Directory. Setting variable iBaseDirectory to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 Service ID. Setting variable iServiceName to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 Service Account. Setting variable iServiceAccount to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 Super User. Setting variable iSuperuser to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 Branding. Setting variable iBranding to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 Version. Setting variable brandingVer to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 Shortcuts. Setting variable iShortcut to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-10 DisableStackBuilder. Setting variable iDisableStackBuilder to empty value
[14:15:28] Existing base directory: 
[14:15:28] Existing data directory: 
[14:15:28] Using branding: PostgreSQL 10
[14:15:28] Using Super User: postgres and Service Account: NT AUTHORITY\NetworkService
[14:15:28] Using Service Name: postgresql-x64-10
Executing C:\Users\TDFM1\AppData\Local\Temp\postgresql_installer_324885683f\vcredist_x86.exe /passive /norestart
Script exit code: 0

Script output:
 

Script stderr:
 

Executing C:\Users\TDFM1\AppData\Local\Temp\postgresql_installer_324885683f\vcredist_x64.exe /passive /norestart
Script exit code: 0

Script output:
 

Script stderr:
 

Executing C:\Users\TDFM1\AppData\Local\Temp\postgresql_installer_324885683f\getlocales.exe 
Script exit code: 0

Script output:
 AfrikaansxxCOMMAxxxxSPxxSouthxxSPxxAfrica=Afrikaans, South Africa
list of all languages.
V
isiZuluxxCOMMAxxxxSPxxSouthxxSPxxAfrica=isiZulu, South Africa

Script stderr:
 

Preparing to Install
Preparing to Install
Directory already exists: C:\Program Files\PostgreSQL\10\installer
Unpacking files
Unpacking C:\Program Files\PostgreSQL\10\installer\prerun_checks.vbs
Unpacking C:\Program Files\PostgreSQL\10\installer\vcredist_x86.exe
Directory already exists: C:\Program Files\PostgreSQL\10\installer
Unpacking files
Unpacking C:\Program Files\PostgreSQL\10\installer\vcredist_x64.exe
Directory already exists: C:\Program Files\PostgreSQL\10
Directory already exists: C:\Program Files\PostgreSQL\10\bin
Directory already exists: C:\Program Files\PostgreSQL\10\doc
Directory already exists: C:\Program Files\PostgreSQL\10\doc\contrib
Directory already exists: C:\Program Files\PostgreSQL\10\doc\postgresql
Directory already exists: C:\Program Files\PostgreSQL\10\doc\postgresql\html
Directory already exists: C:\Program Files\PostgreSQL\10\doc\extension
Directory already exists: C:\Program Files\PostgreSQL\10\include
Directory already exists: C:\Program Files\PostgreSQL\10\include\libxml
Directory already exists: C:\Program Files\PostgreSQL\10\include\server
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\utils
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\replication
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\storage
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\fe_utils
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\executor
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\datatype
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\foreign
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\catalog
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\access
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\tsearch
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\tsearch\dicts
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\lib
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\mb
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\port
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\port\win32
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\port\win32\netinet
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\port\win32\arpa
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\port\win32\sys
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\port\win32_msvc
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\port\win32_msvc\sys
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\port\atomics
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\optimizer
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\regex
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\bootstrap
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\tcop
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\statistics
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\snowball
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\snowball\libstemmer
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\parser
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\libpq
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\common
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\postmaster
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\rewrite
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\commands
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\nodes
Directory already exists: C:\Program Files\PostgreSQL\10\include\server\portability
Directory already exists: C:\Program Files\PostgreSQL\10\include\internal
Directory already exists: C:\Program Files\PostgreSQL\10\include\internal\libpq
Directory already exists: C:\Program Files\PostgreSQL\10\include\informix
Directory already exists: C:\Program Files\PostgreSQL\10\include\informix\esql
Directory already exists: C:\Program Files\PostgreSQL\10\include\libxslt
Directory already exists: C:\Program Files\PostgreSQL\10\include\openssl
Directory already exists: C:\Program Files\PostgreSQL\10\include\libpq
Directory already exists: C:\Program Files\PostgreSQL\10\installer
Directory already exists: C:\Program Files\PostgreSQL\10\installer\server
Directory already exists: C:\Program Files\PostgreSQL\10\scripts
Directory already exists: C:\Program Files\PostgreSQL\10\scripts\images
Directory already exists: C:\Program Files\PostgreSQL\10\share
Directory already exists: C:\Program Files\PostgreSQL\10\share\contrib
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\pt_BR
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\pt_BR\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\ru
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\ru\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\de
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\de\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\nb
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\nb\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\tr
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\tr\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\ja
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\ja\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\he
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\he\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\ro
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\ro\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\es
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\es\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\fr
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\fr\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\it
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\it\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\sv
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\sv\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\zh_CN
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\zh_CN\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\ta
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\ta\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\cs
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\cs\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\zh_TW
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\zh_TW\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\ko
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\ko\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\pl
Directory already exists: C:\Program Files\PostgreSQL\10\share\locale\pl\LC_MESSAGES
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezonesets
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\Mexico
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\America
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\America\North_Dakota
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\America\Kentucky
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\America\Indiana
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\America\Argentina
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\Arctic
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\Europe
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\Chile
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\Pacific
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\Etc
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\Canada
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\Australia
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\Africa
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\Atlantic
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\Antarctica
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\Brazil
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\Indian
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\Asia
Directory already exists: C:\Program Files\PostgreSQL\10\share\timezone\US
Directory already exists: C:\Program Files\PostgreSQL\10\share\tsearch_data
Directory already exists: C:\Program Files\PostgreSQL\10\share\extension
Unpacking files
Unpacking C:\Program Files\PostgreSQL\10\
to doc and include....
Un packs many many many files. deleted due to limit.
[14:22:43] Running the post-installation/upgrade actions: [14:22:43] Write the base directory to the ini file... [14:22:43] Write the version number to the ini file... Initialising the database cluster (this may take a few minutes)... Executing cscript //NoLogo "C:\Program Files\PostgreSQL\10/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\Program Files\PostgreSQL\10" "C:\Program Files\PostgreSQL\10\data" 5432 "DEFAULT" 0 Script exit code: 0 Script output: WScript.Shell Initialized... Scripting.FileSystemObject initialized... Called CreateDirectory(C:\Program Files\PostgreSQL\10\data)... Called CreateDirectory(C:\Program Files\PostgreSQL\10)... WScript.Network initialized... strParentOfDataDirC:\Program Files\PostgreSQL\10 logged in userSWAI\tdfm1 Called AclCheck(C:\Program Files\PostgreSQL\10\data) Called IsVistaOrNewer()... 'winmgmts' object initialized... Version:6.1 MajorVersion:6 Executing icacls to ensure the SWAI\tdfm1 account can read the path C:\Program Files\PostgreSQL\10\data Executing batch file 'radAC469.bat'... Output file does not exists... Called IsVistaOrNewer()... 'winmgmts' object initialized... Version:6.1 MajorVersion:6 Ensuring we can write to the data directory (using icacls) to SWAI\tdfm1: Executing batch file 'radAC469.bat'... Output file does not exists... Executing batch file 'radAC469.bat'... Output file does not exists... Reading: objConfFile is nothing... Writing: objConfFile is nothing... Called AclCheck(C:\Program Files\PostgreSQL\10\data) Called IsVistaOrNewer()... 'winmgmts' object initialized... Version:6.1 MajorVersion:6 Executing icacls to ensure the NT AUTHORITY\NetworkService account can read the path C:\Program Files\PostgreSQL\10\data Executing batch file 'radAC469.bat'... Output file does not exists... Called IsVistaOrNewer()... 'winmgmts' object initialized... Version:6.1 MajorVersion:6 Granting service account access to the data directory (using icacls) to NT AUTHORITY\NetworkService: Executing batch file 'radAC469.bat'... Output file does not exists... initcluster.vbs ran to completion Script stderr: Configuring database server startup... Executing cscript //NoLogo "C:\Program Files\PostgreSQL\10\installer\server\startupcfg.vbs" 10 "NT AUTHORITY\NetworkService" "****" "C:\Program Files\PostgreSQL\10" "C:\Program Files\PostgreSQL\10\data" "postgresql-x64-10" Script exit code: 0 Script output: startupcfg.vbs ran to completion Script stderr: Creating menu shortcuts... Executing cscript //NoLogo "C:\Program Files\PostgreSQL\10\installer\server\createshortcuts_server.vbs" 10 "postgres" 5432 "PostgreSQL 10" "C:\Program Files\PostgreSQL\10" "C:\Program Files\PostgreSQL\10\data" "postgresql-x64-10" Script exit code: 0 Script output: Start FixupFile(C:\Program Files\PostgreSQL\10\scripts\serverctl.vbs)... Opening file for reading... Closing file (reading)... Replacing placeholders... Opening file for writing... Closing file... End FixupFile()... Start FixupFile(C:\Program Files\PostgreSQL\10\scripts\runpsql.bat)... Opening file for reading... Closing file (reading)... Replacing placeholders... Opening file for writing... Closing file... End FixupFile()... createshortcuts_server.vbs ran to completion Script stderr: Starting the database server... Executing cscript //NoLogo "C:\Program Files\PostgreSQL\10\installer\server\startserver.vbs" postgresql-x64-10 Script exit code: 0 Script output: startserver.vbs ran to completion Script stderr: [14:23:38] Installing the adminpack module in the postgres database... Executing C:\Program Files\PostgreSQL\10\bin\psql.exe -c "CREATE EXTENSION adminpack" -d postgres Script exit code: 2 Script output: Script stderr: psql: could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? Failed to load SQL modules into the database cluster. [14:23:46] Write the data directory to the ini file... [14:23:46] Write the port number, service ID, locale and superuser to the ini file... [14:23:46] Write ServiceID(postgresql-x64-10) to registry/ini... Problem running post-install step. Installation may not complete correctly Error reading file C:/Program Files/PostgreSQL/10/data/postgresql.conf [14:24:11] Delete the temporary scripts directory... Creating menu shortcuts... Executing cscript //NoLogo "C:\Program Files\PostgreSQL\10\installer\server\createshortcuts_clt.vbs" "PostgreSQL 10" "C:\Program Files\PostgreSQL\10" Script exit code: 0 Script output: Start FixupFile(C:\Program Files\PostgreSQL\10\scripts\runpsql.bat)... Opening file for reading... Closing file (reading)... Replacing placeholders... Opening file for writing... Closing file... End FixupFile()... createshortcuts_clt.vbs ran to completion Script stderr: [14:24:12] Write the server description to the ini file... [14:24:12] Write the server branding to the ini file... Creating Uninstaller Creating uninstaller 25% Creating uninstaller 50% Creating uninstaller 75% Creating uninstaller 100% Installation completed Log finished 02/06/2018 at 14:24:17 Executing C:\Program Files\PostgreSQL\10/bin/stackbuilder.exe Script exit code: unknown signal Script output: Script stderr: child killed: unknown signal Error running C:\Program Files\PostgreSQL\10/bin/stackbuilder.exe : child killed: unknown signal

 

Adventurer

Re: PostgreSQL Installer fails at Initializing the database cluster. Help.