<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 23, 2015 at 6:08 AM, Paul Harrison <span dir="ltr"><<a href="mailto:mythtv@sky.com" target="_blank">mythtv@sky.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5">On 23/09/15 10:13, Hika van den Hoven wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hoi Paul,<br>
<br>
Wednesday, September 23, 2015, 10:47:29 AM, you wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On 23/09/15 08:55, Hika van den Hoven wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Here's the thing...removing mythweather, music and news doesn't delete the<br>
corresponding tables, even if you use purge in apt-get.<br>
So when you reinstall and fire up the frontend, it gives the same<br>
complaints about the tables.<br>
HOWEVER, if you drop the tables after purging and reinstalling, the<br>
frontend log complains it can't find the tables in order to upgrade them.<br>
So purging/reinstalling doesn't seem to recreate/initialize the tables.<br>
I gotta sleep...but I appreciate your help. Hopefully you and others will<br>
see the issue and I'll fight the good fight when I wake up.<br>
Thanks!<br>
</blockquote>
I'm surprised! I would expect the same proces that caused the problem<br>
to recreate the tables. How then if you add a plug-in to a running<br>
system? Normally on a fresh or updated system the frontend when first<br>
run does this!<br>
<br>
<br>
</blockquote>
Each plugin has it own schema version and we store the version in the<br>
settings table so for MythNews it's 'NewsDBSchemaVer'.<br>
The database upgrade code looks at the schema version in the settings<br>
table and only attempts to update it if it is lower than the actually<br>
schema version.<br>
Assuming no update to the plugins was performed this looks like a DB<br>
corruption problem of some sort so running <a href="http://optimize_mythdb.pl" rel="noreferrer" target="_blank">optimize_mythdb.pl</a> would be a<br>
good idea.<br>
If you have dropped the MythNews table you will have to remove the<br>
'NewsDBSchemaVer' schema version setting in the settings table to get<br>
the plugin to recreate the tables.<br>
Paul H.<br>
_______________________________________________<br>
</blockquote>
Thanks also on behalf of Ian. So his problem could have come from<br>
corruption of that value! Does <a href="http://optimize_mythdb.pl" rel="noreferrer" target="_blank">optimize_mythdb.pl</a> check on those<br>
version values? I mean, deeper then just comparing?<br>
</blockquote>
<br></div></div>
All the script does is tell mysql to check the tables and repair/analyse them. It doesn't do anything more than that (actually the latest version will defrag some of the larger tables but that's all).<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
The weird thing is that his problem was a wrongfully attempt at<br>
upgrading, but when he dropped the table it did nothing?<br>
</blockquote>
<br></span>
Must admit it puzzling how it's got in this state even DB corruption doesn't really explain the logs.<br>
<br>
Take the MythNews table there has only ever been 2 versions of the table 1000 was the initial version that goes back many year IIRC and the last one is 1001. Unfortunately we are missing from the log snippets what version Myth thinks the tables are for MythNews but it is clearly trying to upgrade it to 1001. So either the 'NewsDBSchemaVer setting is missing or has a strange version?<br>
<br></blockquote></div><br><br></div><div class="gmail_extra">Back online for a bit. Just checked for NewsDBSchemaVer and it's showing 1000.<br><br></div><div class="gmail_extra">Apart from the weird restart, I have no idea how this happened. I didn't try to restore any info for the db until last night. Rest of the mythbox is humming along. Just these three plugins have gone loco. :-)<br></div></div>