<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 12:15 PM Mike Perkins <<a href="mailto:mikep@randomtraveller.org.uk">mikep@randomtraveller.org.uk</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">On 17/03/2023 15:56, Daryl McDonald wrote:<br>
> 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>
> <br>
>><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>
>><br>
> That was my initial attempt, but when mythfilldatabase failed again I went<br>
> back to the wiki<br>
> <br>
>> 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<br>
> <br>
> <br>
>   daryl@trieli:~$  ls -ld ~mythtv/.mythtv/*.xmltv ~mythtv/.xmltv<br>
> 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>
> but :<br>
> 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>
> And:<br>
> daryl@trieli:~$ ls -ld /home/mythtv<br>
> drwxr-x--- 5 mythtv mythtv 4096 Mar 17 10:25 /home/mythtv<br>
> daryl@trieli:~$<br>
> <br>
>><br>
>> ~mythtv/.xmltv/SchedulesDirect.DB<br>
>> Everything should be owner:group mythtv:mythtv.<br>
>><br>
> <br>
> So it looks like I'm messed up here<br>
> <br>
Yup. When you copy it passes the *numeric* value of userid and groupid. On your new system, this is <br>
likely different because, when the OS is installed, the system users may be created in a random order.<br>
<br>
This is why, when I do something like that, I create the "mythtv" group and user /before/ I install <br>
any mythtv components.<br>
<br>
It's too late for you, but next time:<br>
<br>
#groupadd -g 1006 mythtv<br>
#useradd -u 1006 -g 1006 -m -s /bin/bash mythtv<br>
<br>
I choose 1006 for those values. Yours may differ if you have other users. Syetem users start at 1, <br>
'proper' users start at 1000, which is usually allocated to the user you had to create when you <br>
installed the system. -m says create the user's directory under /home, which means that it should <br>
not get trashed if you get problems. System users go somewhere under /var.  -s says use bash as the <br>
shell.<br>
<br>
Oh, if you need to, don't forget:<br>
<br>
#passwd mythtv<br>
<br>
To fix *your* problem, go to /home and enter, as root (or via sudo):<br>
<br>
chown -R mythtv:mythtv mythtv<br>
<br>
-- <br>
<br>
Mike Perkins<br><br></blockquote><div>When I copied  from the working system they copied with mythtv or root ownership, so I chown'd them like the working system. I make the changes</div></div></div>