Я пытаюсь установить PostgreSQL 9.2 в течение последних нескольких дней. Наверное, я пробовал все, что мог найти в Интернете, но служба все равно не запустится. В настоящее время я запускаю Windows 7 SP1. Я использовал PostgreSQL 8.3 и работал нормально, но пару недель назад я решил удалить его. Я полностью удалил его (удалил пользователя postgres и файл данных), и теперь каждый раз, когда я пытаюсь установить любую версию, я получаю эту нефатальную ошибку в конце установки, когда происходит загрузка модулей базы данных. Мне удалось увидеть, что служба postgresql не запускается или окна не запускаются, а затем останавливаются. Это соответствующая часть файла журнала установки:Postgresql не удалось установить исправление
Успешно обработано 771 файл; Ошибка обработка 0 файлов
initcluster.vbs побежал к завершению
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
Быстро попробуйте установить копию 9.1 - если это работает, проблема в установщике 9.2. Если нет, это говорит о том, что что-то на вашей настройке мешает. Убедитесь, что любой антивирус установлен для игнорирования каталогов и процессов PostgreSQL. Также стоит проверить, оставил ли сервер какие-либо сообщения журнала при его запуске. (P.S. спасибо за отправку соответствующего бита журнала установщика - облегчает жизнь для всех) –
не будет ли этот вопрос лучше подходит для serverfault? – didierc