cancel
Showing results for 
Search instead for 
Did you mean: 

Installation fails with Windows 10

Level 3 Traveller

Installation fails with Windows 10

Hi Guys,

 

i tried several times to install PostgreSQL.

 

There ist the log:

 

Log started 04/28/2018 at 19:33:11
Preferred installation mode : win32
Trying to init installer in mode win32
Mode win32 successfully initialized
[19:33:15] Initializing PostgreSQL installer
[19:33:15] Windows Version is: Windows 10 (10.0)
[19:33:15] Operating System Language is: de
[19:33:15] Current build_identifier is: 10.3-1
[19:33:15] System PATH:
C:\Program Files (x86)\Intel\TXE Components\iCLS\;C:\Program Files\Intel\TXE Components\iCLS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\TXE Components\DAL\;C:\Program Files (x86)\Intel\TXE Components\DAL\;C:\Program Files\Intel\TXE Components\IPT\;C:\Program Files (x86)\Intel\TXE Components\IPT\;C:\Users\Matze\AppData\Local\Microsoft\WindowsApps
[19:33:15] Initializing pg10 variables
[19:33:15] Download url: https://s3.amazonaws.com/pgcentral
[19:33:15] PostgreSQL Locale to install: DEFAULT
Setting variable windows_net_session_exitcode from C:\Users\Matze\AppData\Local\Temp\postgresql_Matze/net-session-exit-code.bat
Script exit code: 0

Script output:
 0

Script stderr:
 

[19:33:18] Exit code of "net session" is: 0.
[19:33:18] Orphaned PostgreSQL servicename found.  Cleaning up now
[19:33:18] Executing pg10 Pre-install actions
[19:33:56] Validating installdir: E:\Programme\postgresql
[19:33:56] Setting pg dir: E:\Programme\postgresql\pg10
Setting variable check_pgc-path from C:\Users\Matze\AppData\Local\Temp\postgresql_Matze/check-path.bat "E:\Programme\postgresql"
Script exit code: 0

Script output:
 OK

Script stderr:
 

[19:36:33] Testing selected data dir: E:\Programme\postgresql\data\pg10
[19:36:33] Using pg free port = 5432
[19:36:34] Network connection required for component download
Preparing to Install
Windows security permissions
[19:36:35] Granting permissions to directories
Granting permission to NetworkService for E:\Programme\postgresql
Granting permission to Everyone on Logs
Check download connection
Preparing to Install
[19:36:35] Executing postgresql ready to install actions
Check for existing Windows service
Check for existing installation: E:\Programme\postgresql
[19:36:35] Checking for PostgreSQL installation in existing directory E:\Programme\postgresql
[19:36:35] Executing pgadmin ready to install actions
Unpacking files
Unpacking files
[19:41:09] Executing pg10 Post-install actions
PGC info
Run PGC info so that pgc install information is saved to installer log file
Executing E:\Programme\postgresql/pgc info
Script exit code: 0

Script output:
 ######################################################################
#             PGC: v3.3.5  E:\Programme\postgresql
...
######################################################################

Script stderr:
 

Set global repo
Set download (repo) url: https://s3.amazonaws.com/pgcentral
Executing E:\Programme\postgresql/pgc set GLOBAL REPO https://s3.amazonaws.com/pgcentral
Script exit code: 0

Script output:
 

Script stderr:
 

[19:41:19] Check for updated requested, now checking for updates ...
Checking for Updates
Executing E:\Programme\postgresql/pgc update
Script exit code: 255

Script output:
 Retrieving the remote list of latest component versions (versions.sql) ...

Script stderr:
 Program ended with an error exit code

Error with configuration or permissions. Please see log file for more information.
Create cluster (initdb) or configure existing datadir
Setting up database
[19:42:06] Creating new database for pg10 in data dir E:\Programme\postgresql\data\pg10
Determine locale
Windows
Creating initial database and postgres user
Executing E:\Programme\postgresql/pgc init pg10 --datadir "E:\Programme\postgresql\data\pg10" --options "--encoding UTF8 "
Script exit code: 1

Script output:
 
## Initializing pg10 #######################
Setting directory and file permissions.
Bearbeitete Datei: E:\Programme\postgresql\data\pg10
1 Dateien erfolgreich verarbeitet, bei 0 Dateien ist ein Verarbeitungsfehler aufgetreten.
setting permission to log dir
Bearbeitete Datei: E:\Programme\postgresql\data\logs\pg10
1 Dateien erfolgreich verarbeitet, bei 0 Dateien ist ein Verarbeitungsfehler aufgetreten.
 
Initializing Postgres DB with:
  E:\Programme\postgresql\pg10\bin\initdb -U postgres -A md5 --encoding UTF8  -D "E:\Programme\postgresql\data\pg10" --pwfile="E:\Programme\postgresql\pg10\.pgpass" > "E:\Programme\postgresql\data\logs\pg10\install.log" 2>&1
ERROR: Unable to Initialize PG. see logfile: E:\Programme\postgresql\data\logs\pg10\install.log
Error running init-pg10

Script stderr:
 Program ended with an error exit code

Error with configuration or permissions. Please see log file for more information.
Problem running post-install step. Installation may not complete correctly
 Error with configuration or permissions. Please see log file for more information.
[19:43:11] Running pgAdmin post installation actions
Installing pgAdmin3 ...
Executing E:\Programme\postgresql/pgc install pgadmin3
Script exit code: 255

Script output:
   ['pgadmin3']
Get:1 https://s3.amazonaws.com/pgcentral pgadmin3-1.23.0b-win64

Script stderr:
 Program ended with an error exit code

Error with configuration or permissions. Please see log file for more information.
Problem running post-install step. Installation may not complete correctly
 Error with configuration or permissions. Please see log file for more information.
Cleanup
Deleting temp dir: C:\Users\Matze\AppData\Local\Temp\postgresql_Matze
Creating Uninstaller
Creating uninstaller 25%
Creating uninstaller 50%
Creating uninstaller 75%
Creating uninstaller 100%
Uninstaller icon changed
Installation completed
Signed uninstaller
Log finished 04/28/2018 at 19:44:02

 

 

 

Can anyone give me an advice to solve the problem?

 

Many thanks.

Greetz.

1 REPLY
Moderator

Re: Installation fails with Windows 10

Hi,

Hope you are doing good !

From the below error,

Executing E:\Programme\postgresql/pgc update
Script exit code: 255

Script output:
 Retrieving the remote list of latest component versions (versions.sql) ...

Script stderr:
 Program ended with an error exit code

 
 It seems that the updater is not able to connect to the specified link so could you please try running the installer with the open network access and check if its getting completed.
 
 
 If you still face the issue then share the install.log from location "E:\Programme\postgresql\data\logs\pg10\install.log" with the exact version and the name of the installer file which you are executing.