Ho cercato di installare PostgreSQL 9.2 per l'ultimo paio di giorni. Immagino di aver provato tutto ciò che ho trovato online ma il servizio non verrà ancora avviato. Attualmente sto facendo funzionare Windows 7 SP1. Avevo installato PostgreSQL 8.3 e funzionava bene, ma un paio di settimane fa ho deciso di disinstallarlo. Ho completamente disinstallato (eliminare l'utente postgres e il file di dati) e ora ogni volta che provo ad installare qualsiasi versione ottengo questo errore non fatale alla fine del setup quando avviene il caricamento dei moduli del database. Sono riuscito a vedere che il servizio postgresql non si avvia o, quando Windows lo avvia, si arresta. Questa è la parte rilevante del file di registro dell'installazione:Postgresql non è riuscito a installare correttamente
771 file elaborati correttamente; Impossibile elaborazione 0 file
initcluster.vbs correvano a compimento
stderr Script:
Configuring database server startup... Executing cscript //NoLogo "C:\Program Files (x86)\PostgreSQL\9.2\installer\server\startupcfg.vbs" 9.2 "NT AUTHORITY\NetworkService" "****" "C:\Program Files (x86)\PostgreSQL\9.2" "C:\Program Files (x86)\PostgreSQL\9.2\data" "postgresql-9.2" Script exit code: 0 Script output: startupcfg.vbs ran to completion Script stderr: Creating menu shortcuts... Executing cscript //NoLogo "C:\Program Files (x86)\PostgreSQL\9.2\installer\server\createshortcuts.vbs" 9.2 "postgres" 5432 "PostgreSQL 9.2 (x86)" "C:\Program Files (x86)\PostgreSQL\9.2" "C:\Program Files (x86)\PostgreSQL\9.2\data" "postgresql-9.2" Script exit code: 0 Script output: Start FixupFile(C:\Program Files (x86)\PostgreSQL\9.2\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 (x86)\PostgreSQL\9.2\scripts\runpsql.bat)... Opening file for reading... Closing file (reading)... Replacing placeholders... Opening file for writing... Closing file... End FixupFile()... createshortcuts.vbs ran to completion Script stderr: Starting the database server... Executing cscript //NoLogo "C:\Program Files (x86)\PostgreSQL\9.2\installer\server\startserver.vbs" postgresql-9.2 Script exit code: 0 Script output: Starting postgresql-9.2 Service postgresql-9.2 started successfully startserver.vbs ran to completion Script stderr: Loading additional SQL modules... Executing cscript //NoLogo "C:\Program Files (x86)\PostgreSQL\9.2\installer\server\loadmodules.vbs" "postgres" "****" "C:\Program Files (x86)\PostgreSQL\9.2" "C:\Program Files (x86)\PostgreSQL\9.2\data" 5432 Script exit code: 2 Script output: Installing the adminpack module in the postgres database... Executing 'C:\Users\George\AppData\Local\Temp\radA5996.bat'... psql: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. Failed to install the 'adminpack' module in the 'postgres' database loadmodules.vbs ran to completion Script stderr: Program ended with an error exit code Error running cscript //NoLogo "C:\Program Files (x86)\PostgreSQL\9.2\installer\server\loadmodules.vbs" "postgres" "****" "C:\Program Files (x86)\PostgreSQL\9.2" "C:\Program Files (x86)\PostgreSQL\9.2\data" 5432 : Program ended with an error exit code [10:34:28] Write the data directory to the ini file... [10:34:28] Write the port number, service ID, locale and superuser to the ini file... [10:34:28] Write ServiceID(postgresql-9.2) to registry/ini... [10:34:28] Write Superuser to ini file and windows registry... [10:34:28] Write Service Account to ini file and windows registry... [10:34:28] Write the server description to the ini file... [10:34:28] Write the server branding to the ini file... [10:34:28] Write the 'whether stack-builder is disabled or not' to the ini file... [10:34:29] Finished running post-installation/upgrade tasks. Creating Uninstaller Creating uninstaller 25% Creating uninstaller 50% Creating uninstaller 75% Creating uninstaller 100% Installation completed
Prova rapidamente ad installare una copia di 9.1 - se funziona, il problema è nel programma di installazione di 9.2. In caso contrario, suggerisce che qualcosa sul tuo setup sta interferendo. Assicurati che qualsiasi antivirus sia impostato per ignorare le directory e i processi di PostgreSQL. Vale anche la pena controllare se il server ha lasciato messaggi di log all'avvio. (P.S., grazie per aver postato il bit pertinente del log dell'installatore - semplifica la vita per tutti) –
questa domanda non sarebbe più adatta per serverfault? – didierc