Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

When I install the server for the first time, when almost finished it reports:

(from log file "%temp%\bitlock_installer1376.txt")

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

Script output:
 Installing the adminpack module in the postgres database...
    Executing 'C:\Users\ibrahim\AppData\Local\Temp\rad4E73F.bat'...
psql: could not connect to server: Connection refused (0x0000274D/10061)
    Is the server running on host "localhost" (::1) and accepting
    TCP/IP connections on port 5432?
could not connect to server: Connection refused (0x0000274D/10061)
    Is the server running on host "localhost" (127.0.0.1) and accepting
    TCP/IP connections on port 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.3\installer\server\loadmodules.vbs" "postgres" "****" "C:\Program Files\PostgreSQL\9.3" "C:\Users\ibrahim\PostgreSQL\9.3\data" 5432 : Program ended with an error exit code

I cannot start pgAdmin neither doint anything.

In file "pg_hba.conf" I have:

host        all           all            127.0.0.1/5432           md5
share|improve this question
    
Got a 3rd party firewall or antivirus package installed? (even if disabled)? Also, take a look at the files in the PostgreSQL install dir under data\pg_log, see if there's anything informative there. –  Craig Ringer Feb 21 at 4:55
    
Yes, have the windows firewall. I have disabled it witout any success –  Desolator Feb 21 at 5:16
    
OK, so check the PostgreSQL log files. –  Craig Ringer Feb 21 at 5:20
    
Isn't the log above containing the required details? –  Desolator Feb 21 at 5:45
1  
No. Read my first comment. –  Craig Ringer Feb 21 at 6:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.