View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Mar 27, 2006 4:20 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Hi everyone ... small problem. I want to recreate/rebuild the Myth db to it's former glory.

Search:
database crash
db crash
recovering db
rebuilding db
recreating lost db

Useful Results:

http://mysettopbox.tv/phpBB2/viewtopic. ... recovering

http://www.knoppmythwiki.org/index.php? ... storeHowTo

Yesterday MythTV crashed. Myth reported not being able to connect to the backend.

I rebooted and the GUI wouldn't start. So in desperation, (it had been a heavy weekend climbing mountains and drinking far too much and the GF was beginning to worry about missing 'Planet Earth'), I reinstalled Myth using auto upgrade on version R5A30.2

I ended up with recovering an old out of datedb which menas lots of orphaned recordings. Boo. :(

Now, will the command:

Code:
myth.rebuilddatabase.pl --dbhost=localhost


work out of the box? Will it find everything automatically? And does this command recreate the enteries in the data base so the next episode is automatically recorded as previous? Or do I have to set the recording options automatically?

Perhaps I'm being over cautious and I should just try this command but I'd like to check before I make things far worse. :?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 6:18 am 
Offline
Joined: Wed Jan 07, 2004 12:14 pm
Posts: 434
Location: Charlotte, NC
That script will find the orphaned recordings but will require you to enter the identities (name or some identifier that will show up in "recordings") It will not recover your "to be recorded" settings - you will have to reset those manually.

When you run the script, it will indentify the files by a date and time stamp so, if you wanted to, you could research each one to determine the show identity. Or you could just enter a unique name (show 1, show 2 , etc...) so that something will show up in the recordings screen that can be selected and played...

_________________
nbdwt73


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 28, 2006 2:07 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
thanks for that. worked like a charm


Top
 Profile  
 
PostPosted: Tue Mar 28, 2006 10:32 am 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
tophee wrote:
Yesterday MythTV crashed. Myth reported not being able to connect to the backend.


I had this last week, and was able to work around it.
Maybe same situation, maybe not, but here goes:

I re-started the backend, and brought up the listing of recorded shows using mythweb. It got partway through, then showed "can't connect" messages. But I could tell where it was having trouble. It was choking on one of the recordings. Wouldn't display its thumbnail pic.
So I went into the database using PHPMyAdmin, browsed the "recordings" table, and deleted the offending record. Then I went into \myth\tv via SSH and deleted the corresponding file (don't remember if it was .nuv or .mpg) and then deleted the corresponding on in the "pretty" directory too.
Re-started the backend again, and all was well.

Then it happened AGAIN! I've since gone back to the 7676 nVidia drivers.....
This time, I did the same thing, but when I came back into the listing of programs, there were only 6 shows! Yikes! I thought about ways to re-build the database from the files (the files were there in \myth\tv).
Then I realized that the shows DID show up in mythweb. So the front-end was being filtered somehow. Ah - it had crashed on my wife, and she had gone into the program listing, and probably pressed ENTER on the dialog that comes up when it can't find anything. It comes up with a filter dialog, and she'd somehow set it to display only "drama". Mystery solved.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 28, 2006 9:37 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
My hard drive crashed and I had to fsck the drive. Unfortunately, this left me with only lost+found. Great the system wouldn't boot, I have a ton of recordings and I'm getting ready to go on a trip. What to do, what to do? Well, I booted off an R5A22 CD I had handy and mounted the drive.
Code:
mount -o rw /dev/hda1 /mnt/hda1
ls -al /mnt/hda1/lost+found/*/*/* > out
The only thing I wanted to try and recover was the db, I knew if I could do that, I'd be ok. Knowing db was in /var/lib/mysql/mythconverg, I looked for mysql and a mythtv just below it in out. This told me where the directory would be. Having found which #ABCXYZ directory housed the db, I cd to it and found everything intact. I scp all those files over to my workstation. I then did a auto upgrade. After that process, I scp'd the files back and
Code:
chown mysql.mysql /var/lib/mysql/mythconverg/*
/etc/init.d/mysql restart
/etc/init.d/mythbackend restart
I was back in business!

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 18, 2006 10:14 am 
Offline
Joined: Tue Jul 26, 2005 2:49 pm
Posts: 26
nbdwt73 wrote:
myth.rebuilddatabase.pl

That script will find the orphaned recordings but will require you to enter the identities (name or some identifier that will show up in "recordings") It will not recover your "to be recorded" settings - you will have to reset those manually.

When you run the script, it will indentify the files by a date and time stamp so, if you wanted to, you could research each one to determine the show identity. Or you could just enter a unique name (show 1, show 2 , etc...) so that something will show up in the recordings screen that can be selected and played...


By "orphaned recordings", I assume you guys mean .nuv files in the myth/tv directory that is not showing up in the myth database; and running the myth.rebuilddatabase.pl will enable you to put the entries into it.

However, does this script also work in the other direction? That is, delete entries from the database when the corresponding .nuv file no longer exists in myth/tv directory?

Thanks.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu