PT v2 Backup Issues

Any support related posts should go here.

PT v2 Backup Issues

Postby a_good_year » Fri Mar 21, 2008 4:50 pm

I am trying to backup my PTv2 db for the first time since my reinstallation and it is giving me the following message:

"
C:\Program Files\PostgreSQL\8.3\bin>"C:\Program Files\PostgreSQL\8.3\bin\pg_dump
.exe" -i -h localhost -p 5432 -U postgres -F c -v -f "C:\Users\kchua000\Desktop\
Cardrunners\Tracking\Micro_Stakes_db_032108.backup" "MICROSTAKES"
Password:
pg_dump: [archiver (db)] connection to database "MICROSTAKES" failed: FATAL: pa
ssword authentication failed for user "postgres"
pg_dump: *** aborted because of error



Error 1 has occurred ==== BACKUP FAILED TO COMPLETE!!!
Press any key to continue . . ."

I am on Vista w/ SP1.

Please help.

Thanks.
a_good_year
 
Posts: 20
Joined: Sun Mar 09, 2008 8:52 pm

Re: PT v2 Backup Issues

Postby a_good_year » Fri Mar 21, 2008 4:55 pm

Woops, wrong message posted. Here it is:

"
C:\Program Files\PostgreSQL\8.3\bin>"C:\Program Files\PostgreSQL\8.3\bin\pg_dump
.exe" -i -h localhost -p 5432 -U postgres -F c -v -f "C:\Users\kchua000\Desktop\
Cardrunners\Tracking\Micro_Stakes_db_032108.backup" "MICROSTAKES"
pg_dump: [archiver (db)] connection to database "MICROSTAKES" failed: server clo
sed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
pg_dump: *** aborted because of error



Error 1 has occurred ==== BACKUP FAILED TO COMPLETE!!!
Press any key to continue . . ."

I don't recall putting a password for my db.
a_good_year
 
Posts: 20
Joined: Sun Mar 09, 2008 8:52 pm

Re: PT v2 Backup Issues

Postby a_good_year » Fri Mar 21, 2008 5:04 pm

Oh, and I followed the instructions to edit the pg_hba.conf as instructed.
a_good_year
 
Posts: 20
Joined: Sun Mar 09, 2008 8:52 pm

Re: PT v2 Backup Issues

Postby ptrack pat » Fri Mar 21, 2008 5:18 pm

There is a problem with this database if it keeps shutting down the PostgreSQL service like this.

Try using the FULL vacuum/analyze option on the PostgreSQL Database Functions window.

Also, you can try reindexing all of the tables as detailed here:
archives/PT2/viewtopic.php?t=13546&highlight=reindex+pgadmin
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: PT v2 Backup Issues

Postby a_good_year » Fri Mar 21, 2008 6:30 pm

Doesn't work, but I think this extra info that I neglected to give you might help:
"
After I click on "Backup" and type in a file name for the backup file I want to create, a window pops up asking for the location of the "pg_dump.exe" file. So I locate it at "C:\Program Files\PostgreSQL\8.3\bin". Then the cmd prompt window pops up and asks for my password, but I don't have a password, so I hit enter. Then the following message pops up:

"
C:\Program Files\PostgreSQL\8.3\bin>"C:\Program Files\PostgreSQL\8.3\bin\pg_dump
.exe" -i -h localhost -p 5432 -U postgres -F c -v -f "C:\Users\kchua000\Desktop\
Cardrunners\Tracking\Observed_Hands_db_032108.backup" "MICROSTAKES"
Password:
pg_dump: [archiver (db)] connection to database "MICROSTAKES" failed: fe_sendaut
h: no password supplied
pg_dump: *** aborted because of error



Error 1 has occurred ==== BACKUP FAILED TO COMPLETE!!!
Press any key to continue . . ."

Does this have anything to do with Vista security? Maybe its a new thing with Vista + Service Pack 1?
a_good_year
 
Posts: 20
Joined: Sun Mar 09, 2008 8:52 pm

Re: PT v2 Backup Issues

Postby ptrack pat » Fri Mar 21, 2008 8:09 pm

You have to edit the pg_hba.conf file as administrator if you are using Vista.

From the Start menu select All Programs > PostgreSQL 8.3 > Configuration Files - right-click on "Edit pg_hba.conf" and select "Run as administrator" from the list. Now at the bottom of the file change both places where it says "MD5" to say "trust" and then save the file and try the backup again.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: PT v2 Backup Issues

Postby a_good_year » Fri Mar 21, 2008 8:38 pm

Bingo!!! You're the man!
a_good_year
 
Posts: 20
Joined: Sun Mar 09, 2008 8:52 pm


Return to PTH Support

Who is online

Users browsing this forum: No registered users and 8 guests

cron
highfalutin