Skip to forum
Notifications
Clear all

Problem installing HM2

9 Posts
2 Users
0 Reactions
3,649 Views
Upforgrabs
Joined: 27.02.2009

Hi,

I just bought myself a new computer but now I can't seem to manage to install HM2 anymore. It always gives me a postgresql error.

When I try to install it, it starts with installing postgresql and the test it runs Always gives me this error:

==================== 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:\PostgreSQL --> C:\PostgreSQL-prev-2014-10-Nov-14-12-47
Create folder: C:\PostgreSQL-prev-2014-10-Nov-14-12-47
Moving files: C:\PostgreSQL\*.* to C:\PostgreSQL-prev-2014-10-Nov-14-12-47\
Remove folder: C:\PostgreSQL\
renamed dir
wrote testfile
Create folder: c:\postgreSQL
Execute: "C:\Program Files (x86)\PSQLINSTALL\postgres84.exe" --mode unattended --superpassword postgrespass --prefix c:\postgreSQL --datadir c:\postgreSQL\data
postgres installdir: C:\Program Files (x86)\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

Anyone knows how to fix this?

Thanks


Reply
Quote
8 replies
netsrak
Joined: 11.03.2006

Did you already have Postgresql installed with another password? For example with Pokertracker?
Please see our FAQ: http://hm2faq.holdemmanager.com/questions/1001/Can+not+Connect+%7B47%7D+Failed+to+Start+PostgreSQL+


Reply
Quote
Upforgrabs
Joined: 27.02.2009

No, I have no postgresql installed yet. I tried installing it seperatly afterwards but that gives me the same error...


Reply
Quote
netsrak
Joined: 11.03.2006

You got no other error during the installation of Postgres?


Reply
Quote
Upforgrabs
Joined: 27.02.2009

Hi Netsrak,

This is the full detail I get when trying to install HM2:

Output folder: C:\Program Files (x86)\PSQLINSTALL
top level install dir -->C:
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: 1
starting seclogon
seclogon error status: 0
seclogon status: 4
firewall enabled: 1
firewall port 5432 enabled: 1
port 5432 already 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 (x86)\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:\PostgreSQL --> C:\PostgreSQL-prev-2016-25-May-14-56-51
Create folder: C:\PostgreSQL-prev-2016-25-May-14-56-51
Moving files: C:\PostgreSQL\*.* to C:\PostgreSQL-prev-2016-25-May-14-56-51\
Remove folder: C:\PostgreSQL\
renamed dir
wrote testfile
Create folder: c:\postgreSQL
Execute: "C:\Program Files (x86)\PSQLINSTALL\postgres84.exe" --mode unattended --superpassword postgrespass --prefix c:\postgreSQL --datadir c:\postgreSQL\data
postgres installdir: C:\Program Files (x86)\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


Reply
Quote
netsrak
Joined: 11.03.2006

I mean when you try to install postgresql as standalone.

Is the postgresql service running?
Can you connect via pgadmin as explained in the FAQ?


Reply
Quote
Upforgrabs
Joined: 27.02.2009

Sorry for the late reply, I tried installing the postgres stand-alone from your FAQ after creating the postgesql directory etc as stated in the FAQ.

I got this error: "Problem running post-install step. Installation may not complete correctly. Error reading file C:/Program Files (X86)/Postgresql/8.4/data/postgresql.conf"

After this it continues installing but when I try to install HM2, it doesn't seem to find the already installed postgres and wants to install a new one with the errors as posted in my earlier posts.

The postgresql service is not running either


Reply
Quote
netsrak
Joined: 11.03.2006

As long as the postgresql service is not running HM2 will not install. So you need to find out why Postgresql is not installing.
Something on your system like a firewall or virusscanner might block it or you have an invalid network configuration or.....
I suggest you search in some specialised postgresql forums for how to find the installation log files.
And you can try the latest postgresql version 9.6.


Reply
Quote
Upforgrabs
Joined: 27.02.2009

Hi,

I just managed to install it :f_thumbsup:

After reading through a lot of forums I combined the following solutions:

Creating the postgres user itself and giving it admin rights.
Creating the postgres directory.
Creating the postgres data directory directly under C:/ and not in program files

Suddenly it worked and I am now setting up HM2

Thanks for the effort!


Reply
Quote