Database problem

Experiencing technical difficulties? Think you've found a problem with PokerTracker 3? Report it here.

Moderator: Moderators

Database problem

Postby JohannesRSMH » Tue Jan 13, 2009 3:35 pm

When open Pokertracker 3, the following message pops up:

Your databases need updated. PokerTracker will go through each of your databases and update them.
This may take a while, depending on how many databases you have and how large they are.
Please do not interrupt PokerTracker during this process as it could result in a corrupt database.


When I click OK, it furthermore says:

The update process is complete. You should cluster, vacuum and analyze any databases that are actively used as soon as possible.


So, I do the housekeeping (cluster, analyze, vacuum and update cache) and when I click on "begin", it loads. But after a few seconds, the following message appears:

There were errors during the housekeeping process:
Unable to execute query: CREATE TABLE "new_holdem_hand_player_combinations" AS SELECT * FROM "holdem_hand_player_combinations" ORDER BY id_player DESC, id_hand DESC;; Reason: Fatal Error (ERROR: invalid page header in block 0 of relation "pg_type" )
Unable to execute query: VACUUM FULL;; Reason: Fatal Error (ERROR: invalid page header in block 0 of relation "pg_type" )
Unable to execute query: ANALYZE;; Reason: Fatal Error (ERROR: invalid page header in block 4 of relation "pg_type" )
Unable to execute query: CREATE TABLE holdem_cache (id_player integer NOT NULL, id_limit integer NOT NULL, cnt_players integer NOT NULL, cnt_hands integer, cnt_vpip integer, cnt_blind integer, cnt_bb integer, cnt_sb integer, cnt_vpip_sb integer, cnt_sb_steal_fold integer, cnt_bb_steal_fold integer, cnt_steal_def_opp_sb integer, cnt_steal_def_opp_bb integer, cnt_steal_att integer, cnt_steal_opp integer, cnt_won_hand integer, cnt_won_showdown integer, cnt_first_limp integ


All my collected stats about my opponents and myself are also not being displayed. And auto-import does not work as well. It's the same with HUD.

Anyone know what I can do?

Thanks in advance.
JohannesRSMH
 
Posts: 15
Joined: Sat Nov 22, 2008 2:36 pm

Re: Database problem

Postby kraada » Tue Jan 13, 2009 3:51 pm

This issue is often the result of faulty hardware or a system crash. You can set PostgreSQL to ignore these errors by clicking Start --> Programs --> PostgreSQL --> Configuration Files --> Edit postgresql.conf. In the configuration file that appears, go to the bottom of the file and add the text "zero_damaged_pages = on" on a new line and then save and close the file. Click Start --> Programs --> PostgreSQL --> Stop Service and then Start --> Programs --> PostgreSQL --> Start Service and PostgreSQL will ignore the damaged data. If you continue to have problems with that hard drive, you should consider replacing it.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Database problem

Postby JohannesRSMH » Tue Jan 13, 2009 4:06 pm

Thanks for your prompt answer.

Unfortunately, it still does not work.
JohannesRSMH
 
Posts: 15
Joined: Sat Nov 22, 2008 2:36 pm

Re: Database problem

Postby kraada » Tue Jan 13, 2009 4:11 pm

Do you get a different error message now or the same one?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Database problem

Postby JohannesRSMH » Tue Jan 13, 2009 4:14 pm

The same one.
JohannesRSMH
 
Posts: 15
Joined: Sat Nov 22, 2008 2:36 pm

Re: Database problem

Postby kraada » Tue Jan 13, 2009 4:22 pm

That really shouldn't happen; are you certain you saved the postgresql.conf after editing it? Make sure you do not have a # sign in front of the line; if you do that it won't be interpreted by the database when it starts up.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Database problem

Postby JohannesRSMH » Tue Jan 13, 2009 4:33 pm

kraada wrote:That really shouldn't happen; are you certain you saved the postgresql.conf after editing it? Make sure you do not have a # sign in front of the line; if you do that it won't be interpreted by the database when it starts up.

Yes, I saved the file. And no, there is no # sign in front of the line. I have just checked it up again.
JohannesRSMH
 
Posts: 15
Joined: Sat Nov 22, 2008 2:36 pm

Re: Database problem

Postby kraada » Tue Jan 13, 2009 5:45 pm

In that case, please zip up and attach the 5 most recent files in the C:\Program Files\PostgreSQL\8.3\data\pg_log\ directory to a support ticket and we'll investigate further from there.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Database problem

Postby JohannesRSMH » Tue Jan 13, 2009 6:30 pm

kraada wrote:In that case, please zip up and attach the 5 most recent files in the C:\Program Files\PostgreSQL\8.3\data\pg_log\ directory to a support ticket and we'll investigate further from there.


Done.

Edit:

Following message appears when I try to auto-import hands:

Unable to begin feeder import process. Reason: PokerTracker is configured to import into an outdated database. This must be corrected before an import can succeed.
JohannesRSMH
 
Posts: 15
Joined: Sat Nov 22, 2008 2:36 pm

Re: Database problem

Postby JohannesRSMH » Tue Jan 13, 2009 7:19 pm

I have re-installed PostgreSQL and created a new database on Pokertracker and it works fine with this new database.

Unfortunately, the old database still does not work and all my player stats (including mine) are gone (at least they cannot be displayed). Is there a way to save them?
JohannesRSMH
 
Posts: 15
Joined: Sat Nov 22, 2008 2:36 pm

Next

Return to Technical Support / Bug Reports [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests