PDA

View Full Version : Problems with postgres



Steinpilz0104
09-17-2011, 04:17 AM
Hi a fellow of pokerstrategy.com has problems with his postgres Database. I try to describe what he has done until he got the message at the end of the text:

- everything ran OK until one morning, when he got this message:


Output folder: C:\Program Files\RVG Software\Holdem Manager
Is admin account
Extract: Acid Library.dll... 100%
Extract: Acid Library.snk
Extract: AxInterop.ShockwaveFlashObjects.dll... 100%
.
.
.
(everything goes fine, all items 100% successfully installed)
.
.
.
Extract: Syncfusion.Shared.Base.dll... 100%
Extract: Syncfusion.Shared.Windows.dll... 100%
Extract: Syncfusion.Tools.Base.dll... 100%
Extract: Syncfusion.Tools.Windows.dll... 100%
Extract: Syncfusion.chart.Base.dll... 100%
Extract: log4net.dll... 100%
Extract: zlib.net.dll... 100%
Output folder: C:\Program Files\RVG Software\Holdem Manager\Temp
Output folder: C:\Program Files\RVG Software\Holdem Manager
Create folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Holdem Manager
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Holdem Manager\Holdem Manager.lnk
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Holdem Manager\Uninstall Holdem Manager.lnk
Create shortcut: C:\Users\Public\Desktop\HoldemManager.lnk
Created uninstaller: C:\Program Files\RVG Software\Holdem Manager\UninstallHoldemManager.exe
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
no existing install dir
wrote testfile
Delete file: C:\Program Files\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

He corrected and tried to solve the problems with the connection (failed to establish connection with 127.0.0...), however it did not work. At the final he got the message: "Sorry, could not install postgreSQL"

With ping 127.0.0.1; he got the connection, however it didn't work. He tried to uninstall postgres completely, after restart he gets in PG admin and the database recreates itself.

Nowe he has the message below, what can he do to solve the problem?


Server doesn't listen
The server doesn't accept connections: the connection library reports
could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" and accepting TCP/IP connections on port 5432?

If you encounter this message, please check if the server you're trying to contact is actually running PostgreSQL on the given port. Test if you have network connectivity from your client to the server host using ping or equivalent tools. Is your network / VPN / SSH tunnel / firewall configured correctly?

For security reasons, PostgreSQL does not listen on all available IP addresses on the server machine initially. In order to access the server over the network, you need to enable listening on the address first.
For PostgreSQL servers starting with version 8.0, this is controlled using the "listen_addresses" parameter in the postgresql.conf file. Here, you can enter a list of IP addresses the server should listen on, or simply use '*' to listen on all available IP addresses. For earlier servers (Version 7.3 or 7.4), you'll need to set the "tcpip_socket" parameter to 'true'.

You can use the postgresql.conf editor that is built into pgAdmin III to edit the postgresql.conf configuration file. After changing this file, you need to restart the server process to make the setting effective.

If you double-checked your configuration but still get this error message, it's still unlikely that you encounter a fatal PostgreSQL misbehaviour. You probably have some low level network connectivity problems (e.g. firewall configuration). Please check this thoroughly before reporting a bug to the PostgreSQL community.

Sarek
09-17-2011, 03:52 PM
If you have Win7 (or Vista), consider the following:
1) PC name must be in English and "in one word" - requires reboot after changing.
2) The same for Windows user name. If not - create new Win user with EN name and reboot PC for this user when install Postgres. And he must have admin rights. After installation you can kill this new user - his mission is completed.
3) Secondary logon service must be set to "Autostart".
4) UAC = OFF
5) Disable firewall and antivirus when installing Postgres and HM. Or uninstall them at all.
6) All installations must run "as admin" (by right-click on file). And do them as first thing after PC reboot.
7) If you want to change install path for Postgres (or to set non-default folder for database cluster) - download "standalone" installation file from Download PostgreSQL | EnterpriseDB (http://www.enterprisedb.com/products-services-training/pgdownload#windows)
8) If your Windows is not in English - you have to install Postgres not in default folder in Program_Files. Create new (example: c:\postgresql) first and select it when install.
9) Install Postgres and HM separarelly, one after one. As admin. If HM (when runs for the 1st time) says "no database" - simply create it via DBControlpanel.
10) If Postgres install fails - after uninstalling don't forget to kill windows user named "postgres":
Go to Start > Programs > Accessories > Command Prompt > Right-Click > Run As Administrator
In the window that appears please type the following and press enter:
net user postgres /del
exactly as shown. You should get a confirmation if it was successful.
11) Run all pokerclients "as admin" too.

Steinpilz0104
09-18-2011, 08:11 AM
Hi

Mya fellow has XP and has some understanding problems...


1) PC name must be in English and "in one word" - requires reboot after changing.
He has a french window installation... what kind of "PC-Name do you mean? Example?


3) Secondary logon service must be set to "Autostart".
4) UAC = OFF
What do you mean with that? can you give me ascreen shot to it?


8) If your Windows is not in English - you have to install Postgres not in default folder in Program_Files. Create new (example: c:\postgresql) first and select it when install.

He has already tried that.

What does the standalone installation to help him to cope with the problem?

Thank you for your answer and regards

Patvs
09-18-2011, 11:58 AM
Turn on the secondary Logon. The secondary logon service is a standard windows service which is available on every windows computer. In the latest versions it is not started automatically. You need to start it via control panel > administrative tools > services. Starting it once should insure it works in the future also.

Try installing SQL 8.2: PostgreSQL: Choose a Mirror (http://wwwmaster.postgresql.org/download/mirrors-ftp/binary/v8.2.21/win32/postgresql-8.2.21-1.zip)
to port 5433 and connect to that instead.

: Turn off User Account Control: How to Disable and Turn Off UAC in Windows 7 « My Digital Life (http://www.mydigitallife.info/2008/12/30/how-to-disable-and-turn-off-uac-in-windows-7/)