<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><span style="font-family:Arial,Helvetica,sans-serif">On Fri, Mar 17, 2023 at 10:57 AM Daryl McDonald <<a href="mailto:darylangela@gmail.com">darylangela@gmail.com</a>> wrote:</span><br></div></div><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"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 17, 2023 at 11:32 AM Bill Meek <<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@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"><br>
On Friday 17 March 2023 10:06:05 AM (-05:00), Daryl McDonald wrote:<br>
<br>
...<br>
snip<br>
...<br>
<br>
 > >>><br>
 > >>> and the mythfilldatabase still failed. do I need to continue in the<br>
 > >>> wiki, I assumed the rest would come with the database restore?    <br>
Daryl<br>
 > >>><br>
 > >>><br>
 > >>> I'd rerun mythfilldatabase -v xmltv and see if there are any clues.<br>
 > >>><br>
 > >>> The mythconverg DB may be OK (because of lines like: Found 37 <br>
channels<br>
 > >>> for source 1 which use grabber),<br>
 > >>> but did you restore the SQLIte DB. The default would<br>
 > >>> be: ~mythtv/.xmltv/SchedulesDirect.DB.<br>
 > >>><br>
 > >>> --<br>
 > >>> Bill<br>
 > >>> I used "<a href="http://mythconverg_restore.pl" rel="noreferrer" target="_blank">mythconverg_restore.pl</a>" so, no I didn't restore the SQLite <br>
DB.<br>
 > >>> Sorry, I'm not clear on what you mean by the default would<br>
 > >>> be: ~mythtv/.xmltv/SchedulesDirect.DB.<br>
 > >><br>
 > >><br>
 > I'm not sure where to go from here:<br>
 > <br>
 > Your Schedules Direct account has the following lineups configured:<br>
 > Lineup ID            Description<br>
 > ======================================================================<br>
 > CAN-OTA-N9A7C3       Local Over the Air Broadcast (Antenna N9A7C3)<br>
 > Specify a Schedules Direct account lineup management action<br>
 > 0: Exit lineup management<br>
 > 1: Add an additional lineup to your account<br>
 > 2: Delete an existing lineup from your account<br>
 > 3: Display your password hash<br>
 > 4: Delete any password hash stored in the database<br>
 > 5: Initialize/update the local database<br>
 > 6: Manage database lineup channel selection<br>
 > Select one: [0,1,2,3,4,5,6 (default=0)] 5<br>
 > <br>
 > Enter your database[/home/mythtv/.xmltv/SchedulesDirect.DB]:<br>
 > Initializing database /home/mythtv/.xmltv/SchedulesDirect.DB<br>
 > Unable to create settings table in database<br>
 > /home/mythtv/.xmltv/SchedulesDirect.DB: attempt to write a readonly <br>
database<br>
 > $<br>
 > And if I try to proceed:<br>
 > <br>
 >  $ tv_grab_zz_sdjson_sqlite --configure --config-file<br>
 > $HOME/.mythtv/antenna.xmltv<br>
 > Failed to write to /home/mythtv/.mythtv/antenna.xmltv.TMP at<br>
 > /usr/local/share/perl/5.34.0/XMLTV/Configure.pm line 187.<br>
 > $<br>
 > <br>
 > I'm open to suggestions.   TIA  Daryl<br>
<br>
<br>
It appears that you're running the above as  user mythtv - that's good.<br>
<br>
But the permissions on the files and/or directories are preventing it from <br>
working.<br>
<br>
I assumed you meant to copy the mythtv user files/directories from the old <br>
host to the new one.<br></blockquote><div>That was my initial attempt, but when mythfilldatabase failed again I went back to the wiki </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
If mythfilldatabase and the grabber were working there, I don't believe <br>
there's a need to start<br>
configuring it from scratch like the above.<br>
<br>
Check permissions with this:<br>
<br>
     ls -ld ~mythtv/.mythtv/*.xmltv ~mythtv/.xmltv</blockquote><div><br></div><div> daryl@trieli:~$  ls -ld ~mythtv/.mythtv/*.xmltv ~mythtv/.xmltv</div>ls: cannot access '/home/mythtv/.mythtv/*.xmltv': No such file or directory<br>drwxrwxr-x 3 gdm lxd 4096 Mar 17 10:24  /home/mythtv/.xmltv<br><div>but :</div><div>daryl@trieli:~$ ls -al /home/mythtv<br>total 24<br>drwxr-x--- 5 mythtv mythtv 4096 Mar 17 10:25 .<br>drwxr-xr-x 5 root   root   4096 Mar 17 10:48 ..<br>-rw-r--r-- 1 gdm    lxd     143 Mar 17 10:22 antenna.xmltv<br>drwxr-xr-x 8 gdm    lxd    4096 Mar 17 10:25 .mythtv<br>drwx------ 2 gdm    lxd    4096 Mar 17 10:25 .smolt<br>drwxrwxr-x 3 gdm    lxd    4096 Mar 17 10:24 .xmltv<br></div><div>And:</div><div>daryl@trieli:~$ ls -ld /home/mythtv<br>drwxr-x--- 5 mythtv mythtv 4096 Mar 17 10:25 /home/mythtv<br>daryl@trieli:~$ <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br>
~mythtv/.xmltv/SchedulesDirect.DB<br>
Everything should be owner:group mythtv:mythtv.<br>
<br>
-- <br>
Bill<br></blockquote><div><br></div><div>So it looks like I'm messed up here </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
_<br>
</blockquote></div></div><br></blockquote><div><span class="gmail_default" style="font-family:monospace,monospace">Yeah - looks like your UID and GID numbers changed between machines.  The old mythtv:mythtv is now gdm:lxd</span></div><div><span class="gmail_default" style="font-family:monospace,monospace"><br></span></div><div><span class="gmail_default" style="font-family:monospace,monospace">chown -R mythtv:mythtv /home/mythtv</span></div><div><span class="gmail_default" style="font-family:monospace,monospace"><br></span></div><div><span class="gmail_default" style="font-family:monospace,monospace">should fix it.</span> </div></div></div>