<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 6, 2023 at 10:53 AM Mike Perkins <<a href="mailto:mikep@randomtraveller.org.uk" target="_blank">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 06/01/2023 14:13, Daryl McDonald wrote:<br>
> I have a dual boot Ubuntu 20.04/22.04 FE/BE system. I successfully restored<br>
> my database to myth in 22.04 and mythfilldatabase fails. Thinking I needed<br>
> to then go through the xmltv configure process again I get this:<br>
> $ tv_grab_zz_sdjson_sqlite --configure --config-file<br>
> $HOME/.mythtv/intenna.xmltv<br>
> tv_grab_zz_sdjson_sqlite uses a local database for downloaded EPG data.<br>
> Please specify the database name created via tv_grab_zz_sdjson_sqlite<br>
> --manage-lineups<br>
> Database for Schedules Direct EPG: [/home/mythtv/.xmltv/SchedulesDirect.DB]<br>
> intenna<br>
> Unable to create parent directory for intenna: mkdir .: Permission denied<br>
> at /usr/local/bin/tv_grab_zz_sdjson_sqlite line 4397.<br>
> I have two sources intenna and antenna, same result for both.<br>
> Permissions are identical on both systems:<br>
> ls -al /usr/local/bin/tv_grab_zz_sdjson_sqlite<br>
> -r-xr-xr-x 1 root root 338312 Jan  6 07:52<br>
> /usr/local/bin/tv_grab_zz_sdjson_sqlite<br>
> <br>
> aryl@trieli:/media/daryl/b48b3666-5550-4407-859d-74f11d287875/usr/local/bin$<br>
> ls -al tv_grab_zz_sdjson_sqlite<br>
> -r-xr-xr-x 1 root root 322422 Nov  7  2020 tv_grab_zz_sdjson_sqlite<br>
> <br>
> FE info shows mythfilldatabase failed error code 1<br>
> <br>
> I also see an internal Ubuntu error:<br>
> "tmdb3typy crashed with IndexError in_getitem_():list index outside range"<br>
> <br>
> What do I need to do next to put this right?<br>
> TIA  Daryl<br>
> <br>
It is fairly plain what is happening:<br>
<br>
 > Permissions are identical on both systems:<br>
 > ls -al /usr/local/bin/tv_grab_zz_sdjson_sqlite<br>
 > -r-xr-xr-x 1 root root 338312 Jan  6 07:52<br>
 > /usr/local/bin/tv_grab_zz_sdjson_sqlite<br>
<br>
There are no write permissions for /anyone/ here, although root of course has the ability to do <br>
almost anything. Again:<br>
<br>
 > aryl@trieli:/media/daryl/b48b3666-5550-4407-859d-74f11d287875/usr/local/bin$<br></blockquote><div>didn't copy fully should be daryl not aryl </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
 > ls -al tv_grab_zz_sdjson_sqlite<br>
 > -r-xr-xr-x 1 root root 322422 Nov  7  2020 tv_grab_zz_sdjson_sqlite<br>
<br>
You're running this as aryl but again there are no write permissions on the file at all, only read <br>
and execute.<br></blockquote><div>the 20.04 system did filldatabase, bur 22.04 does not with identical permissions </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Does your mythtv system run from aryl normally? If so, change the ownership and permissions as <br>
follows (and as root or using sudo):<br>
<br>
$HOME/.mythtv#chown -R aryl:aryl *<br>
$HOME/.mythtv#chmod -R ugo+rwx *<br></blockquote><div>did this:</div><div>daryl@trieli:~$ sudo chown -R mythtv:mythtv /home/daryl/.mythtv</div>[sudo] password for daryl: <br>daryl@trieli:~$ sudo chmod -R ugo+rwx /home/daryl/.mythtv<br>daryl@trieli</div><div class="gmail_quote">but mythfilldatabase failed, this being the interesting bit:</div><div class="gmail_quote">023-01-06 11:03:57.079753 I  XMLTV config file is: /home/mythtv/.mythtv/antenna.xmltv<br>2023-01-06 11:03:57.932071 E  XMLTV grabber returned error code 1<br>2023-01-06 11:03:58.431953 E  Malformed XML file, missing </tv> element, at line 1, Premature end of document.<br>2023-01-06 11:03:58.672958 I  Updating source #8 (intenna) with grabber tv_grab_zz_sdjson_sqlite<br>2023-01-06 11:03:58.673791 I  Found 36 channels for source 8 which use grabber<br>2023-01-06 11:03:59.483859 I  Grabber has capabilities: baseline manualconfig preferredmethod lineups apiconfig <br>2023-01-06 11:04:00.285675 I  Grabber prefers method: allatonce<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
The -R propagates the ownership/permissions down any lower level directories.<br>
<br>
If you do /not/ normally run as aryl, then adjust the 'chown' as appropriate.<br>
<br>
-- <br>
<br>
Mike Perkins<br>
<br>
<br>
_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div></div>