[mythtv-users] mythfilldatabase failing after OS upgrade

Mike Perkins mikep at randomtraveller.org.uk
Fri Jan 6 15:51:06 UTC 2023


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$
 > 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.

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 *

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




More information about the mythtv-users mailing list