PDA

View Full Version : Not connecting to Postgres problem?



Sirus
01-04-2009, 02:52 PM
When I double click HEM I get various erros stating that HEM cannot connect. I go into postgres and try to connect and I get this error


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 "127.0.0.1" 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.

Please help!

thx

morny
01-04-2009, 09:45 PM
http://www.holdemmanager.net/faq/afmviewfaq.aspx?faqid=34

Please follow this FAQ above

Sirus
01-08-2009, 10:18 AM
I did what is stated in the FAQ then I get this error

http://img70.imageshack.us/img70/3747/errorgi7.jpg

morny
01-08-2009, 12:26 PM
Sounds like something is blocking access to the HM folder, it would also explain the previous error too.

Make sure UAC is disabled http://www.holdemmanager.net/faq/afmviewfaq.aspx?faqid=73 and a reboot might solve the problem but if it dosent then do the following:
http://208.109.95.123/faq/?f=171

Sirus
01-08-2009, 04:56 PM
Now my hard drive is nearly full for some unknown reason? The postgres folder in my programs is 33.8GB in size? I tried to re-install postgres and I got this popup

http://img176.imageshack.us/img176/6570/64932125mr0.jpg



processed file: C:\Program Files\PostgreSQL\8.3\data\global\2845
processed file: C:\Program Files\PostgreSQL\8.3\data\global\2846
processed file: C:\Program Files\PostgreSQL\8.3\data\global\2847
processed file: C:\Program Files\PostgreSQL\8.3\data\global\config_exec_param s
The process cannot access the file because it is being used by another process.

Sirus
01-08-2009, 04:57 PM
Thankfully I was able to back up my db two days ago. Should I just uninstall postgres again. Delete all known data wrt postgres and install postgres again and restore my db?

edit: I am unable to delete the postgres folder (33.8gb) in program files becasuse it states that it is being used in another program?

morny
01-08-2009, 07:56 PM
Youll probably need to free up some space before uninstalling, as silly as that sounds it needs space to transfer files over and back during the installation process. So try deleting some unused files and emptying the recycle bin and then reboot.

Then follow this FAQ fopr moving postgreSQL http://www.holdemmanager.net/faq/afmviewfaq.aspx?faqid=101

Sirus
01-08-2009, 08:01 PM
I'm going to reformat my comp as since I've got it a few things haven't been working correctly, and a reformat will solve these problems.

Thanks for your help

Sirus
01-11-2009, 12:17 AM
i backed up my database, reformatted my comp, installed a new database, restored my saved database and my postgres file in program files is now 22.7GB?

why is this?

Sirus
01-11-2009, 10:31 AM
should it be that big?

morny
01-11-2009, 07:41 PM
Yeah, mines about 24gb, they can get quite big, you may have older databases you can delete. Go to Options > Database Management and it will list all the databases you have.

You can also delete whatevers in the C:\Program Files\PostgreSQL\8.3\data\pg_log folder as this can get quite big

Sirus
01-12-2009, 10:44 PM
But the actual .backup file is only 1.73GB in size?

morny
01-13-2009, 12:26 PM
How many HH have you http://www.holdemmanager.net/faq/afmviewfaq.aspx?faqid=19 and when you go to Options > Database Management how many databases do you see?

The backup file would just be a compressed setup file basically so its not going to be the same size.

Sirus
01-13-2009, 03:05 PM
How many HH have you http://www.holdemmanager.net/faq/afmviewfaq.aspx?faqid=19 and when you go to Options > Database Management how many databases do you see?

The backup file would just be a compressed setup file basically so its not going to be the same size.

i dont know how many hands i have because I reformatted my comp again due to driver issues.

would it matter what I call the database and what the restored database is called?

morny
01-13-2009, 08:47 PM
No the name shouldnt matter, just make sure you restore it to an empty database

Sirus
01-14-2009, 03:50 PM
when I first installed hem I didnt change the settings to SQL ASCII

http://www.holdemmanager.net/images/install_guides/pginst_05.jpg


I just kept them on the default. Now I am trying to install the backup, but my postgres has been change to SQL ASCII, would this mean compatibilty issues?

morny
01-14-2009, 04:17 PM
That looks like an older version of postgreSQL, can you try this one http://www.holdemmanager.net/faq/?f=176, it shouldnt cause compatibility issues as far as im aware

Sirus
01-14-2009, 04:40 PM
That looks like an older version of postgreSQL, can you try this one http://www.holdemmanager.net/faq/?f=176, it shouldnt cause compatibility issues as far as im aware

I already use 8.3. The picture is from the hem installation guide, found on the main website.

morny
01-14-2009, 05:28 PM
Yeah it shouldnt be an issue either way, i think it defaults to win1252 when you install 8.3 so i would use that

Sirus
01-14-2009, 11:55 PM
I restored my database when I was able to click done, instead of closing down, it asked me if I wanted to restore again?

Now when I import there are like 95% errors. When I restart my hem, the hands/players that were imported are not there?

morny
01-15-2009, 10:54 AM
When it asks would you like to do it again it usually means there was a problem so the database might be corrupt, do you have the original HH if so create a new database and restore them or if youve still got access to the old database then export the hands and import them

Sirus
01-17-2009, 01:34 PM
can I delete any stuff from the base folder to free up space?

morny
01-17-2009, 02:36 PM
Only from the C:\Program Files\PostgreSQL\8.3\data\pg_log folder
There may be other stuff you can delete but youd need to know what your doing as deleting 1 wrong file could corrupt the whole database, if you ask on the PostgreSQL forums they might be able to give you a better idea