Próbowałem zainstalować PostgreSQL 9.2 przez ostatnie kilka dni. Chyba spróbowałem wszystkiego, co mogłem znaleźć w Internecie, ale usługa nadal się nie uruchamia. Aktualnie korzystam z systemu Windows 7 SP1. Kiedyś PostgreSQL 8.3 był zainstalowany i działał dobrze, ale kilka tygodni temu zdecydowałem się go odinstalować. Całkowicie go odinstalowałem (usuń użytkownika PostgreSQL i plik danych) i teraz za każdym razem, gdy próbuję zainstalować jakąkolwiek wersję, otrzymuję ten nie krytyczny błąd na końcu instalacji, gdy ma miejsce ładowanie modułów bazy danych. Udało mi się przekonać, że usługa postgresql się nie uruchamia, lub gdy system Windows uruchamia ją, a następnie zatrzymuje się. To jest odpowiednia część pliku dziennika instalacji:PostgreSQL nie zainstalował poprawki
Pomyślnie przetworzono 771 plików; Failed przetwarzanie 0 plików
initcluster.vbs pobiegł do zakończenia
Script stderr:
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
Szybko spróbuj zainstalować kopię 9.1 - jeśli to działa, problem występuje w instalatorze 9.2. Jeśli nie, sugeruje, że coś w twoim setupie przeszkadza. Upewnij się, że każdy program antywirusowy jest ustawiony tak, aby ignorował katalogi i procesy PostgreSQL. Warto również sprawdzić, czy serwer zostawił jakiekolwiek komunikaty dziennika po uruchomieniu. (P.S. dzięki za umieszczenie odpowiedniego fragmentu dziennika instalatora - ułatwia życie każdemu) –
czy to pytanie nie byłoby lepiej dostosowane do błędu serwera? – didierc