<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 3, 2015 at 12:32 PM, Bill Meek <span dir="ltr"><<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 02/02/2015 10:50 PM, Daryl McDonald wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
There was definitely something corrupting my database, what got me going<br>
again was restoring a database from a few months ago, now I have<br>
mega-multiple orphans to deal with. The question now is will any of the<br>
testing you've suggested be of any value, with the old database in place?<br>
Thanks Bill, Daryl<br>
<br>
</blockquote>
<br></span>
Value, probably. Needed, not now. My next response would *probably* have included the<br>
Wiki and steps for restoring the DB, which it sounds like you've done.<br>
<br>
I was trying to verify that a DB restore was all that was required, rather<br>
than the rsync that you had considered.<br>
<br>
Knowing your passwords and being able to run mysqlanalyze is probably a<br>
good thing to know now so if you have future problems, you can get a<br>
feel for what's wrong.<br>
<br>
Doing more frequent DB backups is probably a good idea. I thought that<br>
Mythbuntu had a cron job that did it for you. I choose to backup weekly,<br>
and /etc/cron.weekly/mythtv-<u></u>database does the heavy lifting for me. I<br>
changed the script to also check the size of the backup and email the<br>
results to my BE user. That way if the backup runs, but has an unusual<br>
file size, I'll know to see if the backup is correct or some thing's<br>
wrong.<br>
<br>
I'd still look at the mysql error logs to see if there are any clues about<br>
why this happened.<div class=""><div class="h5"><br>
<br>
-- <br>
Bill<br>
______________________________<u></u>_________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://lists.mythtv.org/<u></u>mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/<u></u>Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a></div></div></blockquote><div><br></div><div>I had the DB backups set to daily, keeping the last five, but when I tried,early on, to restore, MCC didn't recognize any backups as "valid" which became my big roadblock. The backup I found and used was on a flash drive and about three months old, so I had to manipulate the settings to reflect the new HDHR and ended up pruning quite a few recordings that we might (not now) have watched and others went into "videos". I think I'm in good shape now, I ran "orphans.py" after rearranging things and after applying 1 thru 5 I got a strange message:</div><div><br></div><div><div>Are you sure you want to continue?</div><div>> yes</div><div>Traceback (most recent call last):</div><div>  File "./find-orphans.py", line 230, in <module></div><div>    main()</div><div>  File "./find-orphans.py", line 214, in main</div><div>    opt[1](opt[2])</div><div>  File "./find-orphans.py", line 129, in delete_recs</div><div>    rec.delete(True, True)</div><div>  File "/usr/lib/python2.7/dist-packages/MythTV/dataheap.py", line 363, in delete</div><div>    return self.getProgram().delete(force, rerecord)</div><div>  File "/usr/lib/python2.7/dist-packages/MythTV/mythproto.py", line 956, in delete</div><div>    res = int(be.deleteRecording(self, force=force))</div><div>ValueError: invalid literal for int() with base 10: ''</div><div>daryl@daryl-A780L3C:~$ ./find-orphans.py</div><div>Traceback (most recent call last):</div><div>  File "./find-orphans.py", line 221, in <module></div><div>    DB = MythDB()</div><div>  File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 1275, in __init__</div><div>    raise MythDBError(MythError.DB_CREDENTIALS)</div><div>MythTV.exceptions.MythDBError: Could not find database login credentials</div><div>daryl@daryl-A780L3C:~$ </div></div><div><br></div><div>Should this be a new thread?</div></div><br></div></div>