On 23-12-2013 08:17, Ronei Heck wrote:
  > Volta e meia deparo com um erro ao instalar o postgres 9.1 64 ou 32 bits no 
final da instalação, tanto no windows 7 32 bist quanto no 64 bits. Na maioria 
instala normalmente, mas em alguns casos, não. A mensagem do erro é a seguinte:
  >
  > “Problem running post-install step. Installation may not complete 
correctly. The database cluster initialisation failed.”

> Já conseguiu identificar qual é o erro que ocorre na inicialização? Talvez 
> seja possível verificar no log de Aplicativos do
> Windows e nos dar um parecer mais válido da sua situação.

No log de instalação estranhei o que está no começo do arquivo:

Log started 03/19/2014 at 15:23:36
Preferred installation mode : qt
Trying to init installer in mode qt
Mode qt successfully initialized
Could not find registry key 
HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-9.1 Service 
Account. Setting variable iServiceAccount to empty value
Could not find registry key 
HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-9.1 Super User. 
Setting variable iSuperuser to empty value
Could not find registry key 
HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-9.1 Branding. 
Setting variable iBranding to empty value
Could not find registry key 
HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-9.1 
DisableStackBuilder. Setting variable iDisableStackBuilder to empty value
[15:23:44] Existing base directory: C:\Program Files\PostgreSQL\9.1
[15:23:44] Existing data directory: C:\Program Files\PostgreSQL\9.1\data
[15:23:44] Using branding: PostgreSQL 9.1
[15:23:44] Using Super User: postgres and Service Account: postgres
[15:23:44] Using Service Name: postgresql-9.1
Executing cscript //NoLogo "C:\Users\win\AppData\Local\Temp\prerun_checks.vbs"
Script exit code: 0

E o que está no final do arquivo:

Loading additional SQL modules...
Executing cscript //NoLogo "C:\Program 
Files\PostgreSQL\9.1\installer\server\loadmodules.vbs" "postgres" "****" 
"C:\Program Files\PostgreSQL\9.1" "C:\Program Files\PostgreSQL\9.1\data" 5432
Script exit code: 2

Script output:
Installing the adminpack module in the postgres database...
    Executing 'C:\Users\win\AppData\Local\Temp\rad81326.bat'...
psql: nÆo p“de conectar ao servidor: Connection refused (0x0000274D/10061)
    O servidor est  executando na m quina "localhost" (::1) e aceitando
    conexäes TCP/IP na porta 5432?
nÆo p“de conectar ao servidor: Connection refused (0x0000274D/10061)
    O servidor est  executando na m quina "localhost" (127.0.0.1) e aceitando
    conexäes TCP/IP na porta 5432?

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\PostgreSQL\9.1\installer\server\loadmodules.vbs" "postgres" "****" 
"C:\Program Files\PostgreSQL\9.1" "C:\Program Files\PostgreSQL\9.1\data" 5432 : 
Program ended with an error exit code
[15:28:33] Write the data directory to the ini file...
[15:28:33] Write the port number, service ID, locale and superuser to the ini 
file...
[15:28:34] Write ServiceID(postgresql-9.1) to registry/ini...
Problem running post-install step. Installation may not complete correctly
Error reading file C:/Program Files/PostgreSQL/9.1/data/postgresql.conf
Creating Uninstaller
Creating uninstaller 25%
Creating uninstaller 50%
Creating uninstaller 75%
Creating uninstaller 100%
Installation completed
Log finished 03/19/2014 at 15:28:55

Se puder ajudar, agradeço.

Ronei Heck
_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a