Errors during downloading and housekeeping process:

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

Moderator: Moderators

Errors during downloading and housekeeping process:

Postby muckyouraces » Fri Feb 06, 2009 8:08 pm

PT3 Build 4 (newest version downloaded a few days ago) was unable to download hands my last session due to "fatal errors during the download process"

the error message was the following:

2009/02/05 16:00:15: Full Tilt: Unable to import hand (#10455473664). Reason: Unable to execute query: COPY holdem_hand_summary FROM STDIN;; Reason: Fatal Error (ERROR: duplicate key value violates unique constraint "holdem_hand_summary_primary_key" CONTEXT: COPY holdem_hand_summary, line 1: "82 300 8 35 10455473664 2009/02/06 00:00:03 2009/02/05 16:00:15 2 0 0 0 158.60 0.00 0.00 0.00 4.00 0..." )

also because i play on 2 sites:

2009/02/05 16:00:18: Cereus Network: Unable to import hand (#1244841564). Reason: Unable to execute query: COPY holdem_hand_summary FROM STDIN;; Reason: Fatal Error (ERROR: duplicate key value violates unique constraint "holdem_hand_summary_primary_key" CONTEXT: COPY holdem_hand_summary, line 1: "83 800 4 266 1244841564 2009/02/06 00:00:00 2009/02/05 16:00:17 2 0 0 0 33.00 0.00 0.00 0.00 1.00 0...." )

I tried the housekeeping process and got the following message:

"There were errors during the housekeeping process:

Unable to execute query: VACUUM FULL;; Reason: Fatal Error (ERROR: invalid page header in block 540 of relation "holdem_hand_player_combinations")
Unable to execute query: ANALYZE;; Reason: Fatal Error (ERROR: invalid page header in block 540 of relation "holdem_hand_player_combinations")

Any suggestions???

UPDATE: Now I am getting this message when trying to import: 2009/02/06 16:11:03: 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.
HELP!!
muckyouraces
 
Posts: 12
Joined: Tue Mar 11, 2008 8:11 am

Re: Errors during downloading and housekeeping process:

Postby kraada » Sat Feb 07, 2009 9:59 am

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.

If after that you still see the 'database outdated' error, please follow the instructions in this post as those should fix it for you.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Errors during downloading and housekeeping process:

Postby muckyouraces » Sun Feb 08, 2009 9:34 am

I followed the directions and the link you gave when PT still wouldn't work and gave me that message about "PT is configured to import into an outdated Database"

I noticed in your directions on the link you gave that I shouldn't worry if the "Install_PLpgSQL.sql" query failed. But you didn't mention if anyone should be concerned if the "Update_DB_Build4.sql" query failed. I didn't get any error or fail message with the first query (Install_PLpgSQL.sql), but the second one (Update_DB_Build4.sql) I received a message saying query failed: (I exited out and tried to start PT3 and see if it would work and it gave this message again, "PT is configured to import into an outdated Database. So I tried to do the process again to make sure I did it right, and I got the following:

NOTICE: index "hhpc:idx2-id_player" does not exist, skipping
Query result with 1 rows discarded.

NOTICE: ALTER TABLE / ADD PRIMARY KEY will create implicit index "holdem_hand_histories_primary_key" for table "holdem_hand_histories"
NOTICE: ALTER TABLE / ADD PRIMARY KEY will create implicit index "holdem_hand_player_combinations_primary_key" for table "holdem_hand_player_combinations"

ERROR: concurrent insert in progress

********** Error **********

ERROR: concurrent insert in progress
SQL state: XX000


P.S. Is there a way I can just download PT3 from scratch and start all over with a new PostgreSQL? I realize I would probably wipe out all of my data, but I don't really care about old data anyway, I mainly use stats from current sessions only.
muckyouraces
 
Posts: 12
Joined: Tue Mar 11, 2008 8:11 am

Re: Errors during downloading and housekeeping process:

Postby kraada » Sun Feb 08, 2009 11:04 am

If you don't care about your old data, starting fresh isn't that difficult. You can uninstall and reinstall PostgreSQL as explained in this guide, which is what you need to do (reinstalling PT3 shouldn't matter for these specific issues).

After uninstalling, if you delete the C:\Program Files\PostgreSQL directory completely before reinstalling you will completely remove your old database and be starting over completely from scratch.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Errors during downloading and housekeeping process:

Postby Wildebeest » Wed Feb 11, 2009 8:57 am

I had the same problem described after a system crash - and after adding "zero_damaged_pages = on", it fixed the problem.
However, i was wondering if there is any lingering problem that will come back?
In short, do I need to worry about losing all my data at some later point?
Wildebeest
 
Posts: 20
Joined: Sun May 25, 2008 11:25 pm

Re: Errors during downloading and housekeeping process:

Postby kraada » Wed Feb 11, 2009 11:39 am

You wouldn't lose all of your data. The worst possible scenario is that some small portion is damaged, but that's unlikely. The thing is that PostgreSQL is designed to be a bulletproof server for enterprise applications. It's built to never have a hint of lost data, so when the system comes down it complains so as to make sure that data isn't silently lost. For our purposes though, it is a bit of overkill and you shouldn't need to worry (worst case some of the data from the last few hands you imported didn't make it into the database). Though you shouldn't try to crash your computer regularly either; if you don't bring down the PostgreSQL service properly and turn the computer off and do it a lot eventually there will be enough damage that you won't be able to recover from it.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Technical Support / Bug Reports [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests