Poker Software
Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Aug 2008
    Posts
    12

    Default Error Restoring Database

    I recently got a new hard drive. I uninstalled postgresql after making a backup of the HEM database. I then installed new version 8.3 to the new hard drive and attempted to restore the backed up database.

    Everything seems to be going along fine then after quite a while I get the following error message at the end of the Restore Database window after many lines of what looks like successful processing.

    pg_restore: [custom archiver] could not uncompress data: incorrect data check
    pg_restore: *** aborted because of error

    Process returned exit code 1.


    If I click OK I get: "Are you sure you wish to run a restore from this file again?"

    If I choose YES here, it runs the whole thing over with the same result.

    Any ideas?

    Thanks.

  2. #2
    [Former] HM Support fabio's Avatar
    Join Date
    Jul 2008
    Posts
    2,067

    Default

    You backupped a 8.2 db and tried to restore it in 8.3?

  3. #3
    Junior Member
    Join Date
    Aug 2008
    Posts
    12

    Default

    Quote Originally Posted by fabio View Post
    You backupped a 8.2 db and tried to restore it in 8.3?
    Yep. Can't imagine that the new version wouldn't handle the old format. Could this be the problem?

  4. #4
    [Former] HM Support fabio's Avatar
    Join Date
    Jul 2008
    Posts
    2,067

    Default

    Not sure but its possible.

  5. #5
    Junior Member
    Join Date
    Aug 2008
    Posts
    12

    Default

    Quote Originally Posted by fabio View Post
    Not sure but its possible.
    Prior to the abort error saying it could not uncompress there are hundreds of lines that look like perfectly successful restore messages. That obviously doesn't mean much but it does look like 8.3 took a bunch of the info before failing to "uncompress".

    Here are a few of the lines immediately before the message in the original post in case it helps anyone:

    pg_restore: restoring data for table "bonuses"
    pg_restore: restoring data for table "compiledplayerresults"
    pg_restore: restoring data for table "compiledplayerresults_month"
    pg_restore: restoring data for table "compiledplayerresultspositionaction"
    pg_restore: restoring data for table "compiledplayerresultspositionaction_month"
    pg_restore: restoring data for table "compiledresults"
    pg_restore: restoring data for table "compiledresults_month"
    pg_restore: restoring data for table "gametypes"
    pg_restore: restoring data for table "handhistories"

  6. #6
    [Former] HM Support fabio's Avatar
    Join Date
    Jul 2008
    Posts
    2,067

    Default

    I suggest installing 8.2 and restoring the database. If you still want to switch to 8.3 then export all your hands and reimport them later.

  7. #7
    Junior Member
    Join Date
    Aug 2008
    Posts
    12

    Default

    Quote Originally Posted by fabio View Post
    I suggest installing 8.2 and restoring the database. If you still want to switch to 8.3 then export all your hands and reimport them later.
    I gave it a try. Unfortunately, I get the exact same abort/error message before it finishes restoring into 8.2.

    Does anyone have any idea about the whole compress/uncompress thing? When making the backup the PgAdmin defaults to compress so that's what I used. Now the software seems unable to "uncompress" via the simple restore function.

    Maybe there's a more detailed way to run a restore that includes addressing this issue?

    Any ideas or help is appreciated.

  8. #8
    Administrator Rvg72's Avatar
    Join Date
    Jul 2008
    Posts
    3,056

    Default

    Quote Originally Posted by Ahem View Post
    I gave it a try. Unfortunately, I get the exact same abort/error message before it finishes restoring into 8.2.

    Does anyone have any idea about the whole compress/uncompress thing? When making the backup the PgAdmin defaults to compress so that's what I used. Now the software seems unable to "uncompress" via the simple restore function.

    Maybe there's a more detailed way to run a restore that includes addressing this issue?

    Any ideas or help is appreciated.
    Please try this:

    get to the command prompt and go to the c:\program files\postgresql\8.x\bin folder and run pg_dumpall -U postgres > c:\dbbackup.sql

    This may take a while. Then on the new postgres folder get to the same folder in cmd and type

    psql -U postgres -f c:\dbbackup.sql postgres

    This should safely backup and restore between versions

    Roy

Similar Threads

  1. Database error suggests reindex
    By reecelights in forum Manager General
    Replies: 5
    Last Post: 08-16-2008, 01:03 AM
  2. Error trying to open the database
    By 1night in forum Manager General
    Replies: 3
    Last Post: 07-26-2008, 01:32 AM
  3. Database directory error POSTGRESQL
    By skrilax in forum Manager General
    Replies: 1
    Last Post: 07-17-2008, 06:28 PM
  4. error when trying to compact database
    By kdwiggins in forum Manager General
    Replies: 1
    Last Post: 07-17-2008, 05:56 PM
  5. Creating Database Error
    By Kwan in forum Manager General
    Replies: 0
    Last Post: 07-11-2008, 02:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •