[mythtv-users] mythfilldatabase failing after OS upgrade

Daryl McDonald darylangela at gmail.com
Fri Jan 6 16:08:58 UTC 2023


On Fri, Jan 6, 2023 at 10:53 AM Mike Perkins <mikep at randomtraveller.org.uk>
wrote:

> On 06/01/2023 14:13, Daryl McDonald wrote:
> > I have a dual boot Ubuntu 20.04/22.04 FE/BE system. I successfully
> restored
> > my database to myth in 22.04 and mythfilldatabase fails. Thinking I
> needed
> > to then go through the xmltv configure process again I get this:
> > $ tv_grab_zz_sdjson_sqlite --configure --config-file
> > $HOME/.mythtv/intenna.xmltv
> > tv_grab_zz_sdjson_sqlite uses a local database for downloaded EPG data.
> > Please specify the database name created via tv_grab_zz_sdjson_sqlite
> > --manage-lineups
> > Database for Schedules Direct EPG:
> [/home/mythtv/.xmltv/SchedulesDirect.DB]
> > intenna
> > Unable to create parent directory for intenna: mkdir .: Permission denied
> > at /usr/local/bin/tv_grab_zz_sdjson_sqlite line 4397.
> > I have two sources intenna and antenna, same result for both.
> > Permissions are identical on both systems:
> > ls -al /usr/local/bin/tv_grab_zz_sdjson_sqlite
> > -r-xr-xr-x 1 root root 338312 Jan  6 07:52
> > /usr/local/bin/tv_grab_zz_sdjson_sqlite
> >
> > aryl at trieli
> :/media/daryl/b48b3666-5550-4407-859d-74f11d287875/usr/local/bin$
> > ls -al tv_grab_zz_sdjson_sqlite
> > -r-xr-xr-x 1 root root 322422 Nov  7  2020 tv_grab_zz_sdjson_sqlite
> >
> > FE info shows mythfilldatabase failed error code 1
> >
> > I also see an internal Ubuntu error:
> > "tmdb3typy crashed with IndexError in_getitem_():list index outside
> range"
> >
> > What do I need to do next to put this right?
> > TIA  Daryl
> >
> It is fairly plain what is happening:
>
>  > Permissions are identical on both systems:
>  > ls -al /usr/local/bin/tv_grab_zz_sdjson_sqlite
>  > -r-xr-xr-x 1 root root 338312 Jan  6 07:52
>  > /usr/local/bin/tv_grab_zz_sdjson_sqlite
>
> There are no write permissions for /anyone/ here, although root of course
> has the ability to do
> almost anything. Again:
>
>  > aryl at trieli
> :/media/daryl/b48b3666-5550-4407-859d-74f11d287875/usr/local/bin$
>
didn't copy fully should be daryl not aryl

>  > ls -al tv_grab_zz_sdjson_sqlite
>  > -r-xr-xr-x 1 root root 322422 Nov  7  2020 tv_grab_zz_sdjson_sqlite
>
> You're running this as aryl but again there are no write permissions on
> the file at all, only read
> and execute.
>
the 20.04 system did filldatabase, bur 22.04 does not with identical
permissions

>
> Does your mythtv system run from aryl normally? If so, change the
> ownership and permissions as
> follows (and as root or using sudo):
>
> $HOME/.mythtv#chown -R aryl:aryl *
> $HOME/.mythtv#chmod -R ugo+rwx *
>
did this:
daryl at trieli:~$ sudo chown -R mythtv:mythtv /home/daryl/.mythtv
[sudo] password for daryl:
daryl at trieli:~$ sudo chmod -R ugo+rwx /home/daryl/.mythtv
daryl at trieli
but mythfilldatabase failed, this being the interesting bit:
023-01-06 11:03:57.079753 I  XMLTV config file is:
/home/mythtv/.mythtv/antenna.xmltv
2023-01-06 11:03:57.932071 E  XMLTV grabber returned error code 1
2023-01-06 11:03:58.431953 E  Malformed XML file, missing </tv> element, at
line 1, Premature end of document.
2023-01-06 11:03:58.672958 I  Updating source #8 (intenna) with grabber
tv_grab_zz_sdjson_sqlite
2023-01-06 11:03:58.673791 I  Found 36 channels for source 8 which use
grabber
2023-01-06 11:03:59.483859 I  Grabber has capabilities: baseline
manualconfig preferredmethod lineups apiconfig
2023-01-06 11:04:00.285675 I  Grabber prefers method: allatonce

>
> The -R propagates the ownership/permissions down any lower level
> directories.
>
> If you do /not/ normally run as aryl, then adjust the 'chown' as
> appropriate.
>
> --
>
> Mike Perkins
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20230106/34c8eca3/attachment.htm>


More information about the mythtv-users mailing list