Error after updating cache on one of my databases

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

Moderator: Moderators

Error after updating cache on one of my databases

Postby hohoho » Sun Feb 22, 2009 12:53 pm

My computer bricked when I plugged a USB device into the laptop (turned out the usb cable was no good).

Unfortunately this was during an update of cache on one of my databases.

OK, so I reboot and start doing the housekeeping again, it completes with an 'error while updating cache'.

The dbase seems to run ok within PT3....

What do I need to do to fix it ?
hohoho
 
Posts: 108
Joined: Mon Oct 27, 2008 6:54 am

Re: Error after updating cache on one of my databases

Postby WhiteRider » Sun Feb 22, 2009 3:11 pm

A couple of things you can try .

You can reindex your database from the PostgreSQL command prompt. Click Start --> Programs --> PostgreSQL --> Command prompt. At the prompt that appears, type “reindexdb -a” and hit enter. Be aware that if you have large databases this may take a while, so be patient and wait for it to finish.
(If the re-index doesn't work because you are not logged in as user 'postgres' enter: "reindexdb -U postgres -a").

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 --> Reload Configuration and PostgreSQL will ignore the damaged data.

If you still have trouble after that, Please enable logging, try a cache rebuild and attach your PokerTracker.log file to this ticket.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Error after updating cache on one of my databases

Postby hohoho » Mon Feb 23, 2009 4:13 am

WhiteRider wrote:A couple of things you can try .

You can reindex your database from the PostgreSQL command prompt. Click Start --> Programs --> PostgreSQL --> Command prompt. At the prompt that appears, type “reindexdb -a” and hit enter. Be aware that if you have large databases this may take a while, so be patient and wait for it to finish.
(If the re-index doesn't work because you are not logged in as user 'postgres' enter: "reindexdb -U postgres -a").


Did this.

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 --> Reload Configuration and PostgreSQL will ignore the damaged data.


Had done this previously...

If you still have trouble after that, Please enable logging, try a cache rebuild and attach your PokerTracker.log file to this ticket.[/quote]

I get the error : unable to execute query;;reason: fatal error (ERROR:could not open relation with OID 134943

Should I submit a ticket or do you know what this is off the top of your head?
hohoho
 
Posts: 108
Joined: Mon Oct 27, 2008 6:54 am

Re: Error after updating cache on one of my databases

Postby kraada » Mon Feb 23, 2009 10:41 am

Please try uninstalling and reinstalling PostgreSQL per this tutorial and see if that helps.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Error after updating cache on one of my databases

Postby hohoho » Tue Feb 24, 2009 3:44 am

That seems a bit drastic.

All my other databases work ok, so I don't think it's postgres.

I may export all the hands and then build a new dbase from this one particular 'error' dbase.

I can look through the database randomly at players, all data seems there but it has a cache problem for sure.
hohoho
 
Posts: 108
Joined: Mon Oct 27, 2008 6:54 am

Re: Error after updating cache on one of my databases

Postby kraada » Tue Feb 24, 2009 1:53 pm

That error tends to mean something has gotten corrupted in the database itself.

It sounds like you feel somewhat comfortable with querying the database directly, so if the only problem is the cache table you can drop the table entirely

DROP TABLE holdem_cache;
and
DROP TABLE tourney_holdem_cache;

then try rebuilding then in PT3 and see if that fixes it. This can sometimes happen if PostgreSQL thinks a relation exists that has already been changed due to a filesystem corruption or loss of power during operation.
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