PDA

View Full Version : Could not install postgresql. need help!



andrechiu
10-15-2010, 06:21 PM
I had some connection issues so I tried to reinstall postgresql.
However, it gave me the " Sorry, could not install postgresql message" during the reinstallation. I tried a lot of the stuff in the previous posts and FAQ. But it seems nothing worked so far. Could anybody help? Thanks!
I enclose the detailed message below:

Output folder: C:\Program Files\PSQLINSTALL
top level install dir -->C:\Program Files
Is admin account
fs=NTFS
.NET found
Extract: TestFirewall.exe... 100%
Extract: TestFirewall.exe.config... 100%
Antivirus Installed: False
test antivirus returned 0
seclogon error status: 0
seclogon status: 4
firewall enabled: 0
firewall not enabled
postgresql error status: 1060
postgresql status: 0
starting pgsql-8.3
postgresql error status: 1060
postgresql status: 0
postgresql error status: 1060
postgresql status: 0
starting postgresql-8.4
postgresql error status: 1060
postgresql status: 0
postgres installdir: C:\Program Files\PSQLINSTALL
==================== running PsqlTestClient
try userid: postgres
try pass: postgrespass
try pass: postgrespass
Connection to database failed: -->could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
<--error
1
testclient return status: 1
testclient return from file: 1
==================== finished PsqlTestClient
granting write permission on top level postgres directory
found dir
try rename C:\Program Files\PostgreSQL\8.4 --> C:\Program Files\PostgreSQL\8.4-prev-2010-10-Oct-20-34-57
Create folder: C:\Program Files\PostgreSQL\8.4-prev-2010-10-Oct-20-34-57
Moving files: C:\Program Files\PostgreSQL\8.4\*.* to C:\Program Files\PostgreSQL\8.4-prev-2010-10-Oct-20-34-57\
Remove folder: C:\Program Files\PostgreSQL\8.4\
renamed dir
wrote testfile
Delete file: C:\Program Files\PostgreSQL\testfile
Extract: postgresql-8.4.1-1-windows.exe... 100%
Execute: "C:\Program Files\PSQLINSTALL\postgresql-8.4.1-1-windows.exe" --mode unattended --superpassword postgrespass
postgres installdir: C:\Program Files\PSQLINSTALL
==================== running PsqlTestClient
try userid: postgres
try pass: postgrespass
try pass: postgrespass
Connection to database failed: -->could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
<--error
1
testclient return status: 1
testclient return from file: 1
==================== finished PsqlTestClient

morny
10-15-2010, 10:58 PM
Hi,

If that installer fails to install PostgreSQL, please reinstall PostgreSQL using the following instructions:

Start > Programs > Accessories > Command Prompt > Right-Click > Run As Administrator

net user postgres /delete
Try installing this version of PostgreSQL - http://rvgsoftware.fileburst.com/Postgres_8.3.9-v1.0.7.exe

If that installer also fails try this one it should work PostgreSQL: Choose a Mirror (http://wwwmaster.postgresql.org/download/mirrors-ftp/binary/v8.2.17/win32/postgresql-8.2.17-1.zip)

andrechiu
10-16-2010, 07:41 AM
I tried but it still gave me the same "Sorry. could not install" message.:( The 2nd link doesnt work. maybe because I am in China now?
Are there any other things I can try? Thanks!

netsrak
10-16-2010, 08:25 AM
Please try to download and install Postgresql 8.4 from PostgreSQL: The world's most advanced open source database (http://www.postgresql.org).
If that doesn't work try version 8.3.

Sometimes installing Postgresql on a different partition like D: is worth a try.

andrechiu
10-16-2010, 12:37 PM
For some strange reasons I can't open the PostgreSQL: The world's most advanced open source database (http://www.postgresql.org) websites you guys provided. Are there any other ways to download the files? Thanks!

andrechiu
10-16-2010, 03:42 PM
I got it fixed! Thank you, guys!