Installation PostgreSQL unter Windows10 funktioniert nicht

Hallo zusammen,

ich versuche seit geraumer zeit PostgreSQL auf meinem neuen Laptop mit Windows 10 zu installieren doch ex funktioniert partout nicht.

Von der Website https://www.openscg.com/bigsql/postgresql/installers.jsp/ downloade ich den Installer, während der Installation stürzt jedes mal meine python.exe ab.

Die Installation schließt mit Fehler ab, ich bekomme es einfach nicht installiert.

Was muss ich beachten bevor ich nochmal neu installiere? Deinstallieren ist klar, aber komplett gelöscht ist postgreSQL trotzdem nicht, oder?

Bei dem zweiten Versuch habe ich mal den gesamten Windows Defender ausgeschaltet, keine Verbesserung.

Hier der 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



Wäre super wenn jemand Ratschläge hätte.

Mfg,

Matthias.

Muß es Windows sein?

Versuche es mal mit dem offiziellen Windows-Installer von hier: https://www.postgresql.org/download/windows/

Generell läuft PostgreSQL auf einem Linux deutlich besser, viele der Tools um PostgreSQL herum sind auch unter Windows nicht verfügbar. Zumindest für Produktivsysteme solltest Du kein Windows nehmen.

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.

Mal im Log nachgeschaut? Typische Probleme unter Windows sind installierte Software der Gattung “Schlangenöl”, also Virenprogramme oder Tischbrandschutzmauern.

du kannst auch das mal probieren: https://www.2ndquadrant.com/en/resources/2uda/

wenn es da Probleme gibt, bitte Feedback geben.

Ich würde auch mal einen Blick auf die wirkliche “Neuigkeit” des OS werfen. Ein neuer Laptop kann ab Werk ein durchaus sehr altes WIn10 haben.
Wie und wann dann die Updates laufen ist MS Geheimnis. Also mal aktiv prüfen, ob Fall Update usw. drauf bzw. angekommen ist.

Pro Forma:
die PG Installation startest Du natürlich als Admin, gell?!

Alles klar hat funktionert.

Windows war natürlich aktuell, nur bin ich über die Original Seite und dann dem Downloader gegangen, der scheinbar irgendwas anderes runtergeladen hat.

Sehr komische Sache, der Link von akretschmar hat aber funktioniert, vielen Dank dafür.