<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 11, 2023 at 8:13 PM James Abernathy <<a href="mailto:jfabernathy@gmail.com" target="_blank">jfabernathy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 11, 2023 at 1:46 PM Roland Ernst <<a href="mailto:rcrernst@gmail.com" target="_blank">rcrernst@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 11, 2023 at 7:40 PM James Abernathy <<a href="mailto:jfabernathy@gmail.com" target="_blank">jfabernathy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 11, 2023 at 1:30 PM Roland Ernst <<a href="mailto:rcrernst@gmail.com" target="_blank">rcrernst@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 11, 2023 at 6:42 PM Paul Harrison <<a href="mailto:mythtv@mythqml.net" target="_blank">mythtv@mythqml.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<p>On 11/10/2023 17:22, James Abernathy wrote:</p>
<blockquote type="cite">
<br>
<div dir="ltr">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div class="gmail_quote">
<div>So I restored from a snapshot a few days before
the last mythtv update. As soon as I booted it ran
the mythconverg backup on schema 1378. Then I sudo
apt update and upgrade, and now I am back to where
the database has indeed been updated to 1379 but the
backup will not run because the binding support
schema is still 1378.</div>
<div><br>
</div>
<div>Jim A<br>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>And I cannot run ./find_orphans_jfa.py for the same
reason.</div>
<div><br>
</div>
<div>2023-10-11 12:20:20.226853 E [2272] Python Database
Connection Database schema mismatch: we speak 1378 but
database speaks 1379<br>
Traceback (most recent call last):<br>
File "/home/jim/./find_orphans_jfa.py", line 223, in
<module><br>
DB = MythDB()<br>
File
"/usr/local/lib/python3.10/dist-packages/MythTV/database.py",
line 1272, in __init__<br>
elif self._testconfig(tmpconfig):<br>
File
"/usr/local/lib/python3.10/dist-packages/MythTV/database.py",
line 1301, in _testconfig<br>
self._check_schema(self._schema_value,
self._schema_local,<br>
File
"/usr/local/lib/python3.10/dist-packages/MythTV/database.py",
line 1335, in _check_schema<br>
raise MythDBError(MythError.DB_SCHEMAMISMATCH, value,
sver, local)<br>
MythTV.exceptions.MythDBError: Mismatched schema version for
'DBSchemaVer': database speaks version 1379, we speak
version 1378<br>
</div>
<div><br>
</div>
<div>Jim A</div>
<div><br>
</div>
</div>
</div>
<br>
</blockquote>
<p><br>
</p>
<p>I would look in <span style="font-family:monospace">/usr/local/share/perl/
</span><span style="font-family:monospace"></span>and see if there
are different version of the binding in different directories.
Look for different version of MythTV.pm</p>
<p>I don't speak perl but I would guess if you look at your perl
--version you should have a corresponding directory in <span style="font-family:monospace">/usr/local/share/perl/ </span><span style="font-family:monospace"></span>in which you should find a
MythTV.pm.</p>
<p>There is a dpkg command to see what a package installs and where
I thing it is something like <span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">dpkg -L
libmythtv-perl </span></span><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"></span></span>to
see if the bindings are being installed in the correct directory
for your version of Perl.</p>
<p><br>
</p>
<p>Paul H.<br>
</p>
</div></blockquote><div><br></div><div>IMHO, Ubuntu ppa packages installs the bindings into /usr and not into /usr/local and <br></div><div>the packages in /usr/local have precedence.<br></div><div>I guess, you did a local build/install somewhere in the past.</div><div>Try in a terminal<br></div><div><font size="4"><span style="font-family:monospace">locate MythTV.pm<br></span></font></div><div><font size="4"><span style="font-family:monospace">locate static.py</span></font></div><div><br></div><div>Roland</div></div></div></blockquote><div><br></div>jim@den-pc:~$ sudo dpkg -L libmythtv-perl<br>/.<br>/usr<br>/usr/share<br>/usr/share/doc<br>/usr/share/doc/libmythtv-perl<br>/usr/share/doc/libmythtv-perl/changelog.Debian.gz<br>/usr/share/doc/libmythtv-perl/copyright<br>/usr/share/perl5<br>/usr/share/perl5/IO<br>/usr/share/perl5/IO/Socket<br>/usr/share/perl5/IO/Socket/INET<br>/usr/share/perl5/IO/Socket/INET/MythTV.pm<br>/usr/share/perl5/MythTV<br>/usr/share/perl5/MythTV/Channel.pm<br>/usr/share/perl5/MythTV/Program.pm<br>/usr/share/perl5/MythTV/Recording.pm<br>/usr/share/perl5/MythTV/StorageGroup.pm<br>/usr/share/perl5/MythTV.pm<br><div> ---------------</div><div><br></div><div>jim@den-pc:~$ locate MythTV.pm<br>/usr/share/perl5/MythTV.pm<br>/usr/share/perl5/IO/Socket/INET/MythTV.pm<br>jim@den-pc:~$ locate static.py<br>/usr/lib/python3/dist-packages/MythTV/static.py<br></div><div><br></div><div>JIm A</div><div><br></div></div></div></blockquote><div><br></div><div>Your traceback from python shows<br></div><div> <span style="font-family:monospace"><font size="4">File "/usr/<b>local</b>/lib/python3.10/dist-packages/MythTV/database.py",</font></span></div><div><br></div><div>Roland</div></div></div></blockquote><div><br></div><div>I see what you mean, but I'm not sure how to recover from this. I just finished spinning up a Linux Mint Debian Edition (Faye) debian 12 system that has access to HDHR tuners. I have Mythtv v34 running on it with most of my critical recording rules duplication there. So I have some time to recover the production backend.</div><div><br></div><div>I imagine that my only choice would be to completely rebuild, which I was planning to do at some point and switch it from Kubuntu to some flavor of Debian 12. My biggest issue is not Mythtv. This hardware is also my Home NAS. SO the only safe way to rebuild is to buy a new boot SSD and 2 new 4TB HDD for a 4TB mirror. </div><div><br></div><div>So I'm willing to try some suggestions if you have any. I could uninstall mythtv and reinstall after deleting any /usr/local stuff if I can identify it all without killing what I have that is not mythtv related. I have a DB backup and all my recordings are on the NAS part of the system.</div><div><br></div><div>Jim A</div><br>
</div></div></blockquote><div><br></div><div>I would start with </div><div><span style="font-family:monospace"><font size="4">sudo updatedb</font></span></div><div>and repeat the above search with locate.</div><div>The try to run for each mythtv program e.g.:<br></div><div><span style="font-family:monospace"><font size="4">which mythbackend</font></span><br></div><div>and see if it is located in the /usr folder ( on Ubuntu, if installed, replace 'mythfrontend' with 'mythfrontend.real'</div><div>Check this with</div><div><span style="font-family:monospace"><font size="4">apt-cache policy</font></span></div><div>and <br></div><div>dpkg -l | grep myth</div><div><br></div><div>No need to re-install anything. Just remove the old remnants.<br></div><div><br></div><div>Roland</div><div> <br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> <br></div></div></div>