Mailing List Archive

mythfilldatabase failing after OS upgrade
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@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
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On Fri, Jan 6, 2023 at 9:13 AM Daryl McDonald <darylangela@gmail.com> 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@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
>

Here is a look at the attempt:

daryl@trieli:~$ sudo su mythtv
[sudo] password for daryl:
$ mythfilldatabase
2023-01-06 09:46:46.956493 C mythfilldatabase version: fixes/32
[v32.0+fixes.20220325.f69ce764b7-0ubuntu1] www.mythtv.org
2023-01-06 09:46:46.956503 C Qt version: compile: 5.15.2, runtime: 5.15.3
2023-01-06 09:46:46.956538 I Ubuntu 22.04.1 LTS (x86_64)
2023-01-06 09:46:46.956540 N Enabled verbose msgs: general
2023-01-06 09:46:46.956548 N Setting Log Level to LOG_INFO
2023-01-06 09:46:46.967243 I Added logging to the console
2023-01-06 09:46:46.967436 I Setup Interrupt handler
2023-01-06 09:46:46.967442 I Setup Terminated handler
2023-01-06 09:46:46.967446 I Setup Segmentation fault handler
2023-01-06 09:46:46.967449 I Setup Aborted handler
2023-01-06 09:46:46.967452 I Setup Bus error handler
2023-01-06 09:46:46.967456 I Setup Floating point exception handler
2023-01-06 09:46:46.967460 I Setup Illegal instruction handler
2023-01-06 09:46:46.967490 I Setup Real-time signal 0 handler
2023-01-06 09:46:46.967494 I Setup Hangup handler
2023-01-06 09:46:46.967608 N Using runtime prefix = /usr
2023-01-06 09:46:46.967610 N Using configuration directory =
/home/mythtv/.mythtv
2023-01-06 09:46:46.967643 I Assumed character encoding: en_CA.UTF-8
2023-01-06 09:46:46.967961 I Empty LocalHostName. This is typical.
2023-01-06 09:46:46.967964 I Using a profile name of: 'trieli' (Usually
the same as this host's name.)
2023-01-06 09:46:46.968004 I Start up testing connections. DB localhost,
BE , attempt 0, status dbAwake, Delay: 2000
2023-01-06 09:46:48.009560 N Setting QT default locale to en_CA
2023-01-06 09:46:48.009578 I Current locale en_CA
2023-01-06 09:46:48.009664 N Reading locale defaults from
/usr/share/mythtv//locales/en_ca.xml
2023-01-06 09:46:48.066209 I PowerDBus: Added UPower.Device
'/org/freedesktop/UPower/devices/keyboard_hidpp_battery_0'
2023-01-06 09:46:48.066651 I Power: On AC power
2023-01-06 09:46:48.119182 I Power: Supported actions:
Suspend,Restart,Shutdown
2023-01-06 09:46:48.120918 I Loading en_ca translation for module
mythfrontend
2023-01-06 09:46:48.123531 I Current MythTV Schema Version (DBSchemaVer):
1376
2023-01-06 09:46:48.130041 I MythCoreContext::ConnectCommandSocket():
Connecting to backend server: 127.0.0.1:6543 (try 1 of 1)
2023-01-06 09:46:48.135485 I MythCoreContext::CheckProtoVersion(): Using
protocol version 91 BuzzOff
2023-01-06 09:46:48.135844 I Opening blocking connection to master backend
2023-01-06 09:46:48.393821 I Updating source #1 (antenna) with grabber
tv_grab_zz_sdjson_sqlite
2023-01-06 09:46:48.394686 I Found 37 channels for source 1 which use
grabber
2023-01-06 09:46:48.395208 I Starting process manager
2023-01-06 09:46:48.397066 I Starting IO manager (read)
2023-01-06 09:46:48.397203 I Starting process signal handler
2023-01-06 09:46:48.397379 I Starting IO manager (write)
2023-01-06 09:46:49.400123 I Grabber has capabilities: baseline
manualconfig preferredmethod lineups apiconfig
2023-01-06 09:46:50.251358 I Grabber prefers method: allatonce
2023-01-06 09:46:50.252767 I XMLTV config file is:
/home/mythtv/.mythtv/antenna.xmltv
2023-01-06 09:46:51.155718 E XMLTV grabber returned error code 1
2023-01-06 09:46:51.754906 E Malformed XML file, missing </tv> element, at
line 1, Premature end of document.
2023-01-06 09:46:51.998502 I Updating source #8 (intenna) with grabber
tv_grab_zz_sdjson_sqlite
2023-01-06 09:46:51.999324 I Found 36 channels for source 8 which use
grabber
2023-01-06 09:46:52.806787 I Grabber has capabilities: baseline
manualconfig preferredmethod lineups apiconfig
2023-01-06 09:46:53.660513 I Grabber prefers method: allatonce
2023-01-06 09:46:53.661796 I XMLTV config file is:
/home/mythtv/.mythtv/intenna.xmltv
2023-01-06 09:46:54.513831 E XMLTV grabber returned error code 1

**2023-01-06 09:46:55.014309 E Malformed XML file, missing </tv> element,
at line 1, Premature end of document.

2023-01-06 09:46:55.102388 E Failed to fetch some program info
2023-01-06 09:46:55.102438 I Adjusting program database end times.
2023-01-06 09:46:55.102955 I 0 replacements made
2023-01-06 09:46:55.102959 I Marking generic episodes.
2023-01-06 09:46:55.362963 I Found 0
2023-01-06 09:46:55.362970 I Extending non-unique programids with multiple
parts.
2023-01-06 09:46:55.511171 I Found 0
2023-01-06 09:46:55.511178 I Fixing missing original airdates.
2023-01-06 09:46:55.991303 I Found 0 with programids
2023-01-06 09:46:55.992112 I Found 0 without programids
2023-01-06 09:46:55.992116 I Marking repeats.
2023-01-06 09:46:56.014304 I Found 0
2023-01-06 09:46:56.014307 I Unmarking new episode rebroadcast repeats.
2023-01-06 09:46:56.177554 I Found 0
2023-01-06 09:46:56.961775 I Marking episode first showings.
2023-01-06 09:46:58.214495 I Found 40508
2023-01-06 09:46:58.214503 I Marking episode last showings.
2023-01-06 09:46:59.453928 I Found 40462
2023-01-06 09:46:59.466497 I
===============================================================
| Attempting to contact the master backend for rescheduling. |
| If the master is not running, rescheduling will happen when |
| the master backend is restarted. |
===============================================================
2023-01-06 09:46:59.467928 N mythfilldatabase run complete.
2023-01-06 09:46:59.468187 I PowerDBus: Closing interfaces
2023-01-06 09:46:59.469953 I Waiting for threads to exit.
2023-01-06 09:46:59.469985 I Exiting
$

Is ** any clue?
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
Friday, January 6, 2023, 3:51:47 PM, you wrote:

> On Fri, Jan 6, 2023 at 9:13 AM Daryl McDonald <darylangela@gmail.com> 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@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



> Here is a look at the attempt:


>  daryl@trieli:~$ sudo su mythtv[sudo] password for daryl:
> $ mythfilldatabase
> 2023-01-06 09:46:46.956493 C  mythfilldatabase version: fixes/32
> [v32.0+fixes.20220325.f69ce764b7-0ubuntu1] www.mythtv.org
> 2023-01-06 09:46:46.956503 C  Qt version: compile: 5.15.2, runtime: 5.15.3
> 2023-01-06 09:46:46.956538 I  Ubuntu 22.04.1 LTS (x86_64)
> 2023-01-06 09:46:46.956540 N  Enabled verbose msgs:  general
> 2023-01-06 09:46:46.956548 N  Setting Log Level to LOG_INFO
> 2023-01-06 09:46:46.967243 I  Added logging to the console
> 2023-01-06 09:46:46.967436 I  Setup Interrupt handler
> 2023-01-06 09:46:46.967442 I  Setup Terminated handler
> 2023-01-06 09:46:46.967446 I  Setup Segmentation fault handler
> 2023-01-06 09:46:46.967449 I  Setup Aborted handler
> 2023-01-06 09:46:46.967452 I  Setup Bus error handler
> 2023-01-06 09:46:46.967456 I  Setup Floating point exception handler
> 2023-01-06 09:46:46.967460 I  Setup Illegal instruction handler
> 2023-01-06 09:46:46.967490 I  Setup Real-time signal 0 handler
> 2023-01-06 09:46:46.967494 I  Setup Hangup handler
> 2023-01-06 09:46:46.967608 N  Using runtime prefix = /usr
> 2023-01-06 09:46:46.967610 N  Using configuration directory = /home/mythtv/.mythtv
> 2023-01-06 09:46:46.967643 I  Assumed character encoding: en_CA.UTF-8
> 2023-01-06 09:46:46.967961 I  Empty LocalHostName. This is typical.
> 2023-01-06 09:46:46.967964 I  Using a profile name of: 'trieli'
> (Usually the same as this host's name.)
> 2023-01-06 09:46:46.968004 I  Start up testing connections. DB
> localhost, BE , attempt 0, status dbAwake, Delay: 2000
> 2023-01-06 09:46:48.009560 N  Setting QT default locale to en_CA
> 2023-01-06 09:46:48.009578 I  Current locale en_CA
> 2023-01-06 09:46:48.009664 N  Reading locale defaults from
> /usr/share/mythtv//locales/en_ca.xml
> 2023-01-06 09:46:48.066209 I  PowerDBus: Added UPower.Device
> '/org/freedesktop/UPower/devices/keyboard_hidpp_battery_0'
> 2023-01-06 09:46:48.066651 I  Power: On AC power
> 2023-01-06 09:46:48.119182 I  Power: Supported actions: Suspend,Restart,Shutdown
> 2023-01-06 09:46:48.120918 I  Loading en_ca translation for module mythfrontend
> 2023-01-06 09:46:48.123531 I  Current MythTV Schema Version (DBSchemaVer): 1376
> 2023-01-06 09:46:48.130041 I
> MythCoreContext::ConnectCommandSocket(): Connecting to backend
> server: 127.0.0.1:6543 (try 1 of 1)
> 2023-01-06 09:46:48.135485 I  MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
> 2023-01-06 09:46:48.135844 I  Opening blocking connection to master backend
> 2023-01-06 09:46:48.393821 I  Updating source #1 (antenna) with grabber tv_grab_zz_sdjson_sqlite
> 2023-01-06 09:46:48.394686 I  Found 37 channels for source 1 which use grabber
> 2023-01-06 09:46:48.395208 I  Starting process manager
> 2023-01-06 09:46:48.397066 I  Starting IO manager (read)
> 2023-01-06 09:46:48.397203 I  Starting process signal handler
> 2023-01-06 09:46:48.397379 I  Starting IO manager (write)
> 2023-01-06 09:46:49.400123 I  Grabber has capabilities: baseline
> manualconfig preferredmethod lineups apiconfig
> 2023-01-06 09:46:50.251358 I  Grabber prefers method: allatonce
> 2023-01-06 09:46:50.252767 I  XMLTV config file is:
> /home/mythtv/.mythtv/antenna.xmltv
> 2023-01-06 09:46:51.155718 E  XMLTV grabber returned error code 1
> 2023-01-06 09:46:51.754906 E  Malformed XML file, missing </tv>
> element, at line 1, Premature end of document.
> 2023-01-06 09:46:51.998502 I  Updating source #8 (intenna) with grabber tv_grab_zz_sdjson_sqlite
> 2023-01-06 09:46:51.999324 I  Found 36 channels for source 8 which use grabber
> 2023-01-06 09:46:52.806787 I  Grabber has capabilities: baseline
> manualconfig preferredmethod lineups apiconfig
> 2023-01-06 09:46:53.660513 I  Grabber prefers method: allatonce
> 2023-01-06 09:46:53.661796 I  XMLTV config file is:
> /home/mythtv/.mythtv/intenna.xmltv
> 2023-01-06 09:46:54.513831 E  XMLTV grabber returned error code 1

> **2023-01-06 09:46:55.014309 E  Malformed XML file, missing </tv>
> element, at line 1, Premature end of document.

> 2023-01-06 09:46:55.102388 E  Failed to fetch some program info
> 2023-01-06 09:46:55.102438 I  Adjusting program database end times.
> 2023-01-06 09:46:55.102955 I      0 replacements made
> 2023-01-06 09:46:55.102959 I  Marking generic episodes.
> 2023-01-06 09:46:55.362963 I      Found 0
> 2023-01-06 09:46:55.362970 I  Extending non-unique programids with multiple parts.
> 2023-01-06 09:46:55.511171 I      Found 0
> 2023-01-06 09:46:55.511178 I  Fixing missing original airdates.
> 2023-01-06 09:46:55.991303 I      Found 0 with programids
> 2023-01-06 09:46:55.992112 I      Found 0 without programids
> 2023-01-06 09:46:55.992116 I  Marking repeats.
> 2023-01-06 09:46:56.014304 I      Found 0
> 2023-01-06 09:46:56.014307 I  Unmarking new episode rebroadcast repeats.
> 2023-01-06 09:46:56.177554 I      Found 0
> 2023-01-06 09:46:56.961775 I  Marking episode first showings.
> 2023-01-06 09:46:58.214495 I      Found 40508
> 2023-01-06 09:46:58.214503 I  Marking episode last showings.
> 2023-01-06 09:46:59.453928 I      Found 40462
> 2023-01-06 09:46:59.466497 I  
> ===============================================================
> | Attempting to contact the master backend for rescheduling.  |
> | If the master is not running, rescheduling will happen when |
> | the master backend is restarted.                            |
> ===============================================================
> 2023-01-06 09:46:59.467928 N  mythfilldatabase run complete.
> 2023-01-06 09:46:59.468187 I  PowerDBus: Closing interfaces
> 2023-01-06 09:46:59.469953 I  Waiting for threads to exit.
> 2023-01-06 09:46:59.469985 I  Exiting
> $


> Is ** any clue?  

Hoi Daryl,

I do not know the precise workings of tv_grab_zz_sdjson.

My guess would be that the uid for the user you use on the two
installations do not match or that that user is missing a group
membership. You should have to compare them.
Also I notice that the sqlite database only has read permissions, so
unless it is as-is downloaded, no data could be added to that
database. However if it is in there it could be extracted.

Anyhow there is a permissions problem.


Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
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@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@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


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On Fri, Jan 6, 2023 at 10:53 AM Mike Perkins <mikep@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@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@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@trieli:~$ sudo chown -R mythtv:mythtv /home/daryl/.mythtv
[sudo] password for daryl:
daryl@trieli:~$ sudo chmod -R ugo+rwx /home/daryl/.mythtv
daryl@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@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On Fri, Jan 6, 2023 at 11:08 AM Daryl McDonald <darylangela@gmail.com>
wrote:

>
>
> On Fri, Jan 6, 2023 at 10:53 AM Mike Perkins <mikep@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@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@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@trieli:~$ sudo chown -R mythtv:mythtv /home/daryl/.mythtv
> [sudo] password for daryl:
> daryl@trieli:~$ sudo chmod -R ugo+rwx /home/daryl/.mythtv
> daryl@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
>>
>> Okay, I see it now, but this didn't work either:
daryl@trieli:~$ sudo su mythtv
$ tv_grab_zz_sdjson_sqlite --configure --config-file
$HOME/.mythtv/antenna.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]
antenna
Unable to create parent directory for antenna: mkdir .: Permission denied
at /usr/local/bin/tv_grab_zz_sdjson_sqlite line 4397.
$ tv_grag_zz_sdjson_sqlite --configure --config-file
$HOME/.mythtv/intenna.xmlyv
sh: 2: tv_grag_zz_sdjson_sqlite: not found
$ 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.

_______________________________________________
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On Fri, Jan 6, 2023 at 11:30 AM Daryl McDonald <darylangela@gmail.com>
wrote:

>
>
> On Fri, Jan 6, 2023 at 11:08 AM Daryl McDonald <darylangela@gmail.com>
> wrote:
>
>>
>>
>> On Fri, Jan 6, 2023 at 10:53 AM Mike Perkins <
>> mikep@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@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@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@trieli:~$ sudo chown -R mythtv:mythtv /home/daryl/.mythtv
>> [sudo] password for daryl:
>> daryl@trieli:~$ sudo chmod -R ugo+rwx /home/daryl/.mythtv
>> daryl@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
>>>
>>> Okay, I see it now, but this didn't work either:
> daryl@trieli:~$ sudo su mythtv
> $ tv_grab_zz_sdjson_sqlite --configure --config-file
> $HOME/.mythtv/antenna.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] antenna
> Unable to create parent directory for antenna: mkdir .: Permission denied
> at /usr/local/bin/tv_grab_zz_sdjson_sqlite line 4397.
> $ tv_grag_zz_sdjson_sqlite --configure --config-file
> $HOME/.mythtv/intenna.xmlyv
> sh: 2: tv_grag_zz_sdjson_sqlite: not found
> $ 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.
>

Here is a better look at permissions:
daryl@trieli:~$ ls -al ~mythtv/.mythtv
total 40
drwxr-xr-x 8 mythtv mythtv 4096 Jan 6 08:48 .
drwxr-x--- 5 mythtv mythtv 4096 Jan 6 08:22 ..
drwxr-xr-x 2 mythtv mythtv 4096 Jan 5 15:34 3rdParty
-rw-rw-r-- 1 mythtv mythtv 17 Jan 6 11:41 antenna.xmltv.TMP
drwxr-xr-x 4 mythtv mythtv 4096 Jan 5 21:03 cache
drwxr-xr-x 2 mythtv mythtv 4096 Jan 5 15:34 channels
lrwxrwxrwx 1 root root 22 Dec 23 09:54 config.xml ->
/etc/mythtv/config.xml
drwx------ 2 mythtv mythtv 4096 Jan 5 15:37 HardwareProfile
-rw-rw-r-- 1 mythtv mythtv 17 Jan 6 11:26 intenna.xmltv.TMP
drwxr-xr-x 2 mythtv mythtv 4096 Jan 5 15:34 themes
drwxr-xr-x 4 mythtv mythtv 4096 Jan 5 15:37 tmp
daryl@trieli:~$
should the temp file be drwxrwxr-x?

> _______________________________________________
>
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On 1/6/23 10:52, Daryl McDonald wrote:
> drwxr-xr-x 4 mythtv mythtv 4096 Jan  5 15:37 tmp
> daryl@trieli:~$
> should the temp file be drwxrwxr-x?

No, you were (correctly) running as user mythtv and it
has r/w permission.

When you did this:

daryl@trieli:~$ sudo chown -R mythtv:mythtv /home/daryl/.mythtv

You made the owner:group of *ALL* user daryl's directories/files
mythtv:mythtv. You didn't want to do that (Mike's warning was
spot on, as you were running as user mythtv.)

Hang on for a sec before making any more changes.

--
Bill

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On Fri, 6 Jan 2023 at 16:54, Daryl McDonald <darylangela@gmail.com> wrote:

> Here is a better look at permissions:
> daryl@trieli:~$ ls -al ~mythtv/.mythtv
>

What is the full path of ~mythtv/.mythtv above?

If you: sudo -u mythtv bash

Can you access the directory above and create files there, e.g.: touch a &&
rm a

I suspect the files are under your own user home directory and the
permissions on that are likely 0700 or 0770.

Cheers, Ian
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On Fri, Jan 6, 2023 at 12:06 PM Ian Cameron <mkbloke@gmail.com> wrote:

> On Fri, 6 Jan 2023 at 16:54, Daryl McDonald <darylangela@gmail.com> wrote:
>
>> Here is a better look at permissions:
>> daryl@trieli:~$ ls -al ~mythtv/.mythtv
>>
>
> What is the full path of ~mythtv/.mythtv above?
>
> If you: sudo -u mythtv bash
>
> Can you access the directory above and create files there, e.g.: touch a
> && rm a
>
> I suspect the files are under your own user home directory and the
> permissions on that are likely 0700 or 0770.
>
> Cheers, Ian
>

here are the permissions from the 20.04 system:

daryl@trieli:/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv$
ls -al .mythtv
total 52
drwxr-xr-x 8 gdm lxd 4096 Oct 5 15:37 .
drwxr-xr-x 5 gdm lxd 4096 Apr 9 2022 ..
drwxr-xr-x 2 gdm lxd 4096 Nov 7 2020 3rdParty
-rw-rw-r-- 1 gdm lxd 143 Apr 9 2022 antenna.xmltv
drwxr-xr-x 6 gdm lxd 4096 Mar 1 2021 cache
drwxr-xr-x 2 gdm lxd 12288 Oct 15 17:42 channels
lrwxrwxrwx 1 root root 22 Nov 7 2020 config.xml ->
/etc/mythtv/config.xml
drwx------ 2 gdm lxd 4096 Nov 7 2020 HardwareProfile
-rw-rw-r-- 1 gdm lxd 143 Oct 5 15:37 intenna.xmltv
-rw-rw-r-- 1 gdm lxd 143 Apr 9 2022 SD.xmltv
drwxr-xr-x 2 gdm lxd 4096 Nov 7 2020 themes
drwxr-xr-x 4 gdm lxd 4096 Nov 7 2020 tmp
daryl@trieli:/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv$
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On 1/6/23 11:20, Daryl McDonald wrote:
>
> here are the permissions from the 20.04 system:
>
> daryl@trieli:/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv$ ls -al .mythtv
> total 52
> drwxr-xr-x 8 gdm  lxd   4096 Oct  5 15:37 .
> drwxr-xr-x 5 gdm  lxd   4096 Apr  9  2022 ..
> drwxr-xr-x 2 gdm  lxd   4096 Nov  7  2020 3rdParty
> -rw-rw-r-- 1 gdm  lxd    143 Apr  9  2022 antenna.xmltv
> drwxr-xr-x 6 gdm  lxd   4096 Mar  1  2021 cache
> drwxr-xr-x 2 gdm  lxd  12288 Oct 15 17:42 channels
> lrwxrwxrwx 1 root root    22 Nov  7  2020 config.xml -> /etc/mythtv/config.xml
> drwx------ 2 gdm  lxd   4096 Nov  7  2020 HardwareProfile
> -rw-rw-r-- 1 gdm  lxd    143 Oct  5 15:37 intenna.xmltv
> -rw-rw-r-- 1 gdm  lxd    143 Apr  9  2022 SD.xmltv
> drwxr-xr-x 2 gdm  lxd   4096 Nov  7  2020 themes
> drwxr-xr-x 4 gdm  lxd   4096 Nov  7  2020 tmp
> daryl@trieli:/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv$
>
>

That looks like the 20.04 system was mounted while on the 22.04 system and
the user names and group names are from your 22.04 /etc/{password,group}
files.

Did you use: chown -R mythtv:mythtv ~mythtv on your 22.04 system?

--
Bill

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On Fri, Jan 6, 2023 at 12:20 PM Daryl McDonald <darylangela@gmail.com>
wrote:

>
>
> On Fri, Jan 6, 2023 at 12:06 PM Ian Cameron <mkbloke@gmail.com> wrote:
>
>> On Fri, 6 Jan 2023 at 16:54, Daryl McDonald <darylangela@gmail.com>
>> wrote:
>>
>>> Here is a better look at permissions:
>>> daryl@trieli:~$ ls -al ~mythtv/.mythtv
>>>
>>
>> What is the full path of ~mythtv/.mythtv above?
>>
>> If you: sudo -u mythtv bash
>>
>> Can you access the directory above and create files there, e.g.: touch a
>> && rm a
>>
>> I suspect the files are under your own user home directory and the
>> permissions on that are likely 0700 or 0770.
>>
>> Cheers, Ian
>>
>
> here are the permissions from the 20.04 system:
>
> daryl@trieli:/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv$
> ls -al .mythtv
> total 52
> drwxr-xr-x 8 gdm lxd 4096 Oct 5 15:37 .
> drwxr-xr-x 5 gdm lxd 4096 Apr 9 2022 ..
> drwxr-xr-x 2 gdm lxd 4096 Nov 7 2020 3rdParty
> -rw-rw-r-- 1 gdm lxd 143 Apr 9 2022 antenna.xmltv
> drwxr-xr-x 6 gdm lxd 4096 Mar 1 2021 cache
> drwxr-xr-x 2 gdm lxd 12288 Oct 15 17:42 channels
> lrwxrwxrwx 1 root root 22 Nov 7 2020 config.xml ->
> /etc/mythtv/config.xml
> drwx------ 2 gdm lxd 4096 Nov 7 2020 HardwareProfile
> -rw-rw-r-- 1 gdm lxd 143 Oct 5 15:37 intenna.xmltv
> -rw-rw-r-- 1 gdm lxd 143 Apr 9 2022 SD.xmltv
> drwxr-xr-x 2 gdm lxd 4096 Nov 7 2020 themes
> drwxr-xr-x 4 gdm lxd 4096 Nov 7 2020 tmp
> daryl@trieli
> :/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv$
>

This is 20.04:
daryl@trieli:/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv$
ls -al .xmltv
total 56352
drwxrwxr-x 2 gdm lxd 4096 Jan 5 15:09 .
drwxr-xr-x 5 gdm lxd 4096 Apr 9 2022 ..
-rw-r--r-- 1 gdm lxd 57688064 Jan 2 15:02 SchedulesDirect.DB
-rw-rw-r-- 1 gdm lxd 143 Apr 9 2022 tv_grab_zz_sdjson_sqlite.conf
daryl@trieli:/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv

and this is 22.04:

daryl@trieli:~$ ls -al /home/mythtv/.xmltv
total 104
drwxrwxr-x 2 mythtv mythtv 4096 Jan 6 11:39 .
drwxr-x--- 5 mythtv mythtv 4096 Jan 6 08:22 ..
-rw-r--r-- 1 mythtv mythtv 98304 Jan 6 11:39 SchedulesDirect.DB
daryl@trieli:~$

>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users@mythtv.org
>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>> http://wiki.mythtv.org/Mailing_List_etiquette
>> MythTV Forums: https://forum.mythtv.org
>>
>
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On Fri, Jan 6, 2023 at 12:30 PM Bill Meek <keemllib@gmail.com> wrote:

> On 1/6/23 11:20, Daryl McDonald wrote:
> >
> > here are the permissions from the 20.04 system:
> >
> > daryl@trieli:/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv$
> ls -al .mythtv
> > total 52
> > drwxr-xr-x 8 gdm lxd 4096 Oct 5 15:37 .
> > drwxr-xr-x 5 gdm lxd 4096 Apr 9 2022 ..
> > drwxr-xr-x 2 gdm lxd 4096 Nov 7 2020 3rdParty
> > -rw-rw-r-- 1 gdm lxd 143 Apr 9 2022 antenna.xmltv
> > drwxr-xr-x 6 gdm lxd 4096 Mar 1 2021 cache
> > drwxr-xr-x 2 gdm lxd 12288 Oct 15 17:42 channels
> > lrwxrwxrwx 1 root root 22 Nov 7 2020 config.xml ->
> /etc/mythtv/config.xml
> > drwx------ 2 gdm lxd 4096 Nov 7 2020 HardwareProfile
> > -rw-rw-r-- 1 gdm lxd 143 Oct 5 15:37 intenna.xmltv
> > -rw-rw-r-- 1 gdm lxd 143 Apr 9 2022 SD.xmltv
> > drwxr-xr-x 2 gdm lxd 4096 Nov 7 2020 themes
> > drwxr-xr-x 4 gdm lxd 4096 Nov 7 2020 tmp
> > daryl@trieli
> :/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv$
> >
> >
>
> That looks like the 20.04 system was mounted while on the 22.04 system and
> the user names and group names are from your 22.04 /etc/{password,group}
> files.
>
> Did you use: chown -R mythtv:mythtv ~mythtv on your 22.04 system?
>
> --
> Bill
>

I think so:
daryl@trieli:~$ ls -al ~mythtv
total 28
drwxr-x--- 5 mythtv mythtv 4096 Jan 6 08:22 .
drwxr-xr-x 4 root root 4096 Dec 23 09:54 ..
-rw------- 1 mythtv mythtv 20 Jan 6 08:17 .lesshst
drwxr-xr-x 8 mythtv mythtv 4096 Jan 6 08:48 .mythtv
-rw-rw-r-- 1 mythtv mythtv 48 Jan 6 08:23 .mythtv.xmltv.TMP
drwx------ 2 mythtv mythtv 4096 Jan 6 09:47 .smolt
drwxrwxr-x 2 mythtv mythtv 4096 Jan 6 11:39 .xmltv
daryl@trieli:~$
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On 1/6/23 11:34, Daryl McDonald wrote:
>
>
> On Fri, Jan 6, 2023 at 12:30 PM Bill Meek <keemllib@gmail.com <mailto:keemllib@gmail.com>> wrote:
>
> On 1/6/23 11:20, Daryl McDonald wrote:
> >
> > here are the permissions from the 20.04 system:
> >
> > daryl@trieli:/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv$ ls -al .mythtv
> > total 52
> > drwxr-xr-x 8 gdm  lxd   4096 Oct  5 15:37 .
> > drwxr-xr-x 5 gdm  lxd   4096 Apr  9  2022 ..
> > drwxr-xr-x 2 gdm  lxd   4096 Nov  7  2020 3rdParty
> > -rw-rw-r-- 1 gdm  lxd    143 Apr  9  2022 antenna.xmltv
> > drwxr-xr-x 6 gdm  lxd   4096 Mar  1  2021 cache
> > drwxr-xr-x 2 gdm  lxd  12288 Oct 15 17:42 channels
> > lrwxrwxrwx 1 root root    22 Nov  7  2020 config.xml -> /etc/mythtv/config.xml
> > drwx------ 2 gdm  lxd   4096 Nov  7  2020 HardwareProfile
> > -rw-rw-r-- 1 gdm  lxd    143 Oct  5 15:37 intenna.xmltv
> > -rw-rw-r-- 1 gdm  lxd    143 Apr  9  2022 SD.xmltv
> > drwxr-xr-x 2 gdm  lxd   4096 Nov  7  2020 themes
> > drwxr-xr-x 4 gdm  lxd   4096 Nov  7  2020 tmp
> > daryl@trieli:/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv$
> >
> >
>
> That looks like the 20.04 system was mounted while on the 22.04 system and
> the user names and group names are from your 22.04 /etc/{password,group}
> files.
>
> Did you use: chown -R mythtv:mythtv ~mythtv on your 22.04 system?
>
> --
> Bill
>
>
> I think so:
>  daryl@trieli:~$ ls -al ~mythtv
> total 28
> drwxr-x--- 5 mythtv mythtv 4096 Jan  6 08:22 .
> drwxr-xr-x 4 root   root   4096 Dec 23 09:54 ..
> -rw------- 1 mythtv mythtv   20 Jan  6 08:17 .lesshst
> drwxr-xr-x 8 mythtv mythtv 4096 Jan  6 08:48 .mythtv
> -rw-rw-r-- 1 mythtv mythtv   48 Jan  6 08:23 .mythtv.xmltv.TMP
> drwx------ 2 mythtv mythtv 4096 Jan  6 09:47 .smolt
> drwxrwxr-x 2 mythtv mythtv 4096 Jan  6 11:39 .xmltv
> daryl@trieli:~$

OK, then that makes Hika's original response to this thread correct.

The files above were likely had owner:group gdm:lxd . That means
everything that was owned by mythtv on the 20.04 system is now
wrong. That includes recordings/banners/fanart/very long list.

What do these return:

sudo find / -user lxd -ls 2>/dev/null | wc
sudo find / -user lxd -ls 2>/dev/null

The output from the 1st command and just a few lines from
the 2nd are all that are needed.

Based on that, some suggestions can be made.

--
Bill

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On Fri, Jan 6, 2023 at 12:45 PM Bill Meek <keemllib@gmail.com> wrote:

> On 1/6/23 11:34, Daryl McDonald wrote:
> >
> >
> > On Fri, Jan 6, 2023 at 12:30 PM Bill Meek <keemllib@gmail.com <mailto:
> keemllib@gmail.com>> wrote:
> >
> > On 1/6/23 11:20, Daryl McDonald wrote:
> > >
> > > here are the permissions from the 20.04 system:
> > >
> > > daryl@trieli:/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv$
> ls -al .mythtv
> > > total 52
> > > drwxr-xr-x 8 gdm lxd 4096 Oct 5 15:37 .
> > > drwxr-xr-x 5 gdm lxd 4096 Apr 9 2022 ..
> > > drwxr-xr-x 2 gdm lxd 4096 Nov 7 2020 3rdParty
> > > -rw-rw-r-- 1 gdm lxd 143 Apr 9 2022 antenna.xmltv
> > > drwxr-xr-x 6 gdm lxd 4096 Mar 1 2021 cache
> > > drwxr-xr-x 2 gdm lxd 12288 Oct 15 17:42 channels
> > > lrwxrwxrwx 1 root root 22 Nov 7 2020 config.xml ->
> /etc/mythtv/config.xml
> > > drwx------ 2 gdm lxd 4096 Nov 7 2020 HardwareProfile
> > > -rw-rw-r-- 1 gdm lxd 143 Oct 5 15:37 intenna.xmltv
> > > -rw-rw-r-- 1 gdm lxd 143 Apr 9 2022 SD.xmltv
> > > drwxr-xr-x 2 gdm lxd 4096 Nov 7 2020 themes
> > > drwxr-xr-x 4 gdm lxd 4096 Nov 7 2020 tmp
> > > daryl@trieli
> :/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv$
> > >
> > >
> >
> > That looks like the 20.04 system was mounted while on the 22.04
> system and
> > the user names and group names are from your 22.04
> /etc/{password,group}
> > files.
> >
> > Did you use: chown -R mythtv:mythtv ~mythtv on your 22.04 system?
> >
> > --
> > Bill
> >
> >
> > I think so:
> > daryl@trieli:~$ ls -al ~mythtv
> > total 28
> > drwxr-x--- 5 mythtv mythtv 4096 Jan 6 08:22 .
> > drwxr-xr-x 4 root root 4096 Dec 23 09:54 ..
> > -rw------- 1 mythtv mythtv 20 Jan 6 08:17 .lesshst
> > drwxr-xr-x 8 mythtv mythtv 4096 Jan 6 08:48 .mythtv
> > -rw-rw-r-- 1 mythtv mythtv 48 Jan 6 08:23 .mythtv.xmltv.TMP
> > drwx------ 2 mythtv mythtv 4096 Jan 6 09:47 .smolt
> > drwxrwxr-x 2 mythtv mythtv 4096 Jan 6 11:39 .xmltv
> > daryl@trieli:~$
>
> OK, then that makes Hika's original response to this thread correct.
>
> The files above were likely had owner:group gdm:lxd . That means
> everything that was owned by mythtv on the 20.04 system is now
> wrong. That includes recordings/banners/fanart/very long list.
>
> What do these return:
>
> sudo find / -user lxd -ls 2>/dev/null | wc
> sudo find / -user lxd -ls 2>/dev/null
>
> The output from the 1st command and just a few lines from
> the 2nd are all that are needed.
>
> Based on that, some suggestions can be made.
>
> --
> Bill
>

daryl@trieli:~$ sudo find / -user lxd 2>/dev/nul | wc
bash: /dev/nul: Permission denied
0 0 0
daryl@trieli:~$ sudo find / -user lxd -ls 2>/dev/n
bash: /dev/n: Permission denied
daryl@trieli:~$
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On 1/6/23 12:53, Daryl McDonald wrote:
>

> daryl@trieli:~$ sudo find / -user lxd 2>/dev/nul | wc
> bash: /dev/nul: Permission denied
>       0       0       0
> daryl@trieli:~$ sudo find / -user lxd -ls 2>/dev/n
> bash: /dev/n: Permission denied

/dev/null, sorry.

--
Bill

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On 1/6/23 11:20, Daryl McDonald wrote:
>> daryl@trieli:~$ sudo su mythtv
>> $ tv_grab_zz_sdjson_sqlite --configure --config-file
>> $HOME/.mythtv/antenna.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] antenna
>> Unable to create parent directory for antenna: mkdir .: Permission denied
>> at /usr/local/bin/tv_grab_zz_sdjson_sqlite line 4397.
>> $ tv_grag_zz_sdjson_sqlite --configure --config-file
>> $HOME/.mythtv/intenna.xmlyv
>> sh: 2: tv_grag_zz_sdjson_sqlite: not found
>> $ 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.
>>
> Here is a better look at permissions:
> daryl@trieli:~$ ls -al ~mythtv/.mythtv
I'm not familiar with tv_grab_zz_sdjson_sqlite, but can offer comments that may help.

First, the path shown is /home/mythtv/.xmltv, while your ls output is for /home/mythtv/.mythtv.  So, we can't see the permissions on .xmltv or even if it exists.  Check that /home/mythtv/.xmltv exists and is, at least, permission 0750 (rwxr-x---).

Second, the specific error looks odd:

Unable to create parent directory for intenna: mkdir .: Permission denied

Reading this literally, it is trying to make the current directory, which will almost certainly fail. Look at the indicated script line (4397) and see where the argument to mkdir originates. This may provide some insight into the failure.

Keith



_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On Fri, Jan 6, 2023 at 1:56 PM Bill Meek <keemllib@gmail.com> wrote:

> On 1/6/23 12:53, Daryl McDonald wrote:
> >
>
> > daryl@trieli:~$ sudo find / -user lxd 2>/dev/nul | wc
> > bash: /dev/nul: Permission denied
> > 0 0 0
> > daryl@trieli:~$ sudo find / -user lxd -ls 2>/dev/n
> > bash: /dev/n: Permission denied
>
> /dev/null, sorry.
>
> --
> Bill
>
daryl@trieli:~$ sudo find / -user lxd -ls 2>/dev/null
daryl@trieli:~$

> no prob
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
It exists:
aryl@trieli:~$ ls -al /home/mythtv/.xmltv
total 104
drwxrwxr-x 2 mythtv mythtv 4096 Jan 6 11:39 .
drwxr-x--- 5 mythtv mythtv 4096 Jan 6 08:22 ..
-rw-r--r-- 1 mythtv mythtv 98304 Jan 6 11:39 SchedulesDirect.DB
daryl@trieli:~

but unlike the 20.04 system it does not have the json line:
aryl@trieli:/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home$ ls -al
mythtv/.xmltv
total 56352
drwxrwxr-x 2 gdm lxd 4096 Jan 5 15:09 .
drwxr-xr-x 5 gdm lxd 4096 Apr 9 2022 ..
-rw-r--r-- 1 gdm lxd 57688064 Jan 2 15:02 SchedulesDirect.DB
-rw-rw-r-- 1 gdm lxd 143 Apr 9 2022 tv_grab_zz_sdjson_sqlite.conf
daryl@trieli:/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home$


On Fri, Jan 6, 2023 at 2:20 PM Keith Pyle <kpyle@austin.rr.com> wrote:

> On 1/6/23 11:20, Daryl McDonald wrote:
> >> daryl@trieli:~$ sudo su mythtv
> >> $ tv_grab_zz_sdjson_sqlite --configure --config-file
> >> $HOME/.mythtv/antenna.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] antenna
> >> Unable to create parent directory for antenna: mkdir .: Permission
> denied
> >> at /usr/local/bin/tv_grab_zz_sdjson_sqlite line 4397.
> >> $ tv_grag_zz_sdjson_sqlite --configure --config-file
> >> $HOME/.mythtv/intenna.xmlyv
> >> sh: 2: tv_grag_zz_sdjson_sqlite: not found
> >> $ 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.
> >>
> > Here is a better look at permissions:
> > daryl@trieli:~$ ls -al ~mythtv/.mythtv
> I'm not familiar with tv_grab_zz_sdjson_sqlite, but can offer comments
> that may help.
>
> First, the path shown is /home/mythtv/.xmltv, while your ls output is for
> /home/mythtv/.mythtv. So, we can't see the permissions on .xmltv or even
> if it exists. Check that /home/mythtv/.xmltv exists and is, at least,
> permission 0750 (rwxr-x---).
>
> Second, the specific error looks odd:
>
> Unable to create parent directory for intenna: mkdir .: Permission denied
>
> Reading this literally, it is trying to make the current directory, which
> will almost certainly fail. Look at the indicated script line (4397) and
> see where the argument to mkdir originates. This may provide some insight
> into the failure.
>
> Keith
>
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On 1/6/23 13:57, Daryl McDonald wrote:
>
>
> On Fri, Jan 6, 2023 at 1:56 PM Bill Meek <keemllib@gmail.com <mailto:keemllib@gmail.com>> wrote:
>
> On 1/6/23 12:53, Daryl McDonald wrote:
> >
>
> > daryl@trieli:~$ sudo find / -user lxd 2>/dev/nul | wc
> > bash: /dev/nul: Permission denied
> >        0       0       0
> > daryl@trieli:~$ sudo find / -user lxd -ls 2>/dev/n
> > bash: /dev/n: Permission denied
>
> /dev/null, sorry.
>
> --
> Bill
>
>  daryl@trieli:~$ sudo find / -user lxd -ls 2>/dev/null
> daryl@trieli:~$
>
> no prob

I'll try again, with the right user name gdm not lxd and add a check
for group lxd:

sudo find / -user gdm 2>/dev/null | wc
sudo find / -user gdm 2>/dev/null | tail -5
sudo find / -group lxd 2>/dev/null | wc
sudo find / -group lxd 2>/dev/null | tail -t
egrep "^gdm|^lxd" /etc/{passwd,group}

The goal here is to see if gdm:lxd have any files/directories/etc. in use.
Then move them to new userid:groupid and convert mythtv to the old ids
which would leave everything that MythTV created as it was on the 20.04
system.

--
Bill

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On Fri, Jan 6, 2023 at 3:18 PM Bill Meek <keemllib@gmail.com> wrote:

> On 1/6/23 13:57, Daryl McDonald wrote:
> >
> >
> > On Fri, Jan 6, 2023 at 1:56 PM Bill Meek <keemllib@gmail.com <mailto:
> keemllib@gmail.com>> wrote:
> >
> > On 1/6/23 12:53, Daryl McDonald wrote:
> > >
> >
> > > daryl@trieli:~$ sudo find / -user lxd 2>/dev/nul | wc
> > > bash: /dev/nul: Permission denied
> > > 0 0 0
> > > daryl@trieli:~$ sudo find / -user lxd -ls 2>/dev/n
> > > bash: /dev/n: Permission denied
> >
> > /dev/null, sorry.
> >
> > --
> > Bill
> >
> > daryl@trieli:~$ sudo find / -user lxd -ls 2>/dev/null
> > daryl@trieli:~$
> >
> > no prob
>
> I'll try again, with the right user name gdm not lxd and add a check
> for group lxd:
>
> sudo find / -user gdm 2>/dev/null | wc
> sudo find / -user gdm 2>/dev/null | tail -5
> sudo find / -group lxd 2>/dev/null | wc
> sudo find / -group lxd 2>/dev/null | tail -t
> egrep "^gdm|^lxd" /etc/{passwd,group}
>
> The goal here is to see if gdm:lxd have any files/directories/etc. in use.
> Then move them to new userid:groupid and convert mythtv to the old ids
> which would leave everything that MythTV created as it was on the 20.04
> system.
>
> --
> Bill
>

daryl@trieli:~$ sudo find / -user gdm 2>/dev/null | wc
[sudo] password for daryl:
1489 1503 123922
daryl@trieli:~$ sudo find / -user gdm 2>/dev/null | tail -5
/var/lib/gdm3/.cache/tracker3/files/no-need-mtime-check.txt
/var/lib/gdm3/.cache/tracker3/files/locale-for-miner-apps.txt
/var/lib/gdm3/.cache/tracker3/files/first-index.txt
/var/lib/gdm3/.cache/tracker3/files/http%3A%2F%2Ftracker.api.gnome.org
%2Fontology%2Fv3%2Ftracker%23Pictures.db
/var/lib/gdm3/.cache/tracker3/files/http%3A%2F%2Ftracker.api.gnome.org
%2Fontology%2Fv3%2Ftracker%23Audio.db
daryl@trieli:~$ sudo find / -group lxd 2>/dev/null | wc
1209 1223 107305
daryl@trieli:~$ sudo find / -group lxd 2>/dev/null | tail -t
tail: invalid option -- 't'
Try 'tail --help' for more information.
daryl@trieli:~$ egrep "^gdm|^lxd" /etc/{passwd,group}
/etc/passwd:gdm:x:127:133:Gnome Display Manager:/var/lib/gdm3:/bin/false
/etc/group:gdm:x:133:
/etc/group:lxd:x:134:daryl
daryl@trieli:~$

>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
Hoi Daryl,

There is one thing you always have to remember when you move data like
this between old and new systems or even more important, share them
between two installation on one physical system.

usernames and groupnames are meaningless to the computer. The computer
uses the numerical u(ser)id and g(roup)id. For our benefit as stupid
mortals it translates it to a name.

However the translation between the numerical id's and the names is
unique to every installation, with the only exception of root. Root
always has a uid of 0 and a gid of 0. Some of the groups have
generally by agreement the same gid, but they could be another.

So if you create a new installation and want to copy or share data
with an old installation you have to ensure the involved users and
groups have the same uid and gid on both installations. You can set
the uid on user creation (if not already taken by another user).

This is why I use ldap for network wide user and group management. The
user hika and mythtv have the same uid on all computers and most
groups likewise.

Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On Fri, Jan 6, 2023 at 4:01 PM Hika van den Hoven <hikavdh@gmail.com> wrote:

> Hoi Daryl,
>
> There is one thing you always have to remember when you move data like
> this between old and new systems or even more important, share them
> between two installation on one physical system.
>
> usernames and groupnames are meaningless to the computer. The computer
> uses the numerical u(ser)id and g(roup)id. For our benefit as stupid
> mortals it translates it to a name.
>
> However the translation between the numerical id's and the names is
> unique to every installation, with the only exception of root. Root
> always has a uid of 0 and a gid of 0. Some of the groups have
> generally by agreement the same gid, but they could be another.
>
> So if you create a new installation and want to copy or share data
> with an old installation you have to ensure the involved users and
> groups have the same uid and gid on both installations. You can set
> the uid on user creation (if not already taken by another user).
>
> This is why I use ldap for network wide user and group management. The
> user hika and mythtv have the same uid on all computers and most
> groups likewise.
>
> Tot mails,
> Hika mailto:hikavdh@gmail.com
>
> "Zonder hoop kun je niet leven
> Zonder leven is er geen hoop
> Het eeuwige dilemma
> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>
> De lerende Mens
>

daryl@trieli:~$ sudo find / -group lxd 2>/dev/null | tail -5
/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv/.xmltv/SchedulesDirect.DB
/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv/.xmltv/tv_grab_zz_sdjson_sqlite.conf
/media/daryl/b48b3666-5550-4407-859d-74f11d287875/home/mythtv/antenna.xmltv
/media/daryl/b48b3666-5550-4407-859d-74f11d287875/tmp/hdhr_discovery.log
/media/daryl/b48b3666-5550-4407-859d-74f11d287875/etc/mythtv/config.xml
daryl@trieli:~
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On 06/01/2023 17:00, Bill Meek wrote:
> On 1/6/23 10:52, Daryl McDonald wrote:
>> drwxr-xr-x 4 mythtv mythtv 4096 Jan  5 15:37 tmp
>> daryl@trieli:~$
>> should the temp file be drwxrwxr-x?
>
> No, you were (correctly) running as user mythtv and it
> has r/w permission.
>
> When you did this:
>
>  daryl@trieli:~$ sudo chown -R mythtv:mythtv /home/daryl/.mythtv
>
> You made the owner:group of *ALL* user daryl's directories/files
> mythtv:mythtv. You didn't want to do that (Mike's warning was
> spot on, as you were running as user mythtv.)
>
> Hang on for a sec before making any more changes.
>
My apologies to all. I "assumed" that $HOME would be pointing to the mythtv user's home directory.

--

Mike Perkins


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mythfilldatabase failing after OS upgrade [ In reply to ]
On 06/01/2023 21:01, Hika van den Hoven wrote:
> Hoi Daryl,
>
> There is one thing you always have to remember when you move data like
> this between old and new systems or even more important, share them
> between two installation on one physical system.
>
> usernames and groupnames are meaningless to the computer. The computer
> uses the numerical u(ser)id and g(roup)id. For our benefit as stupid
> mortals it translates it to a name.
>
> However the translation between the numerical id's and the names is
> unique to every installation, with the only exception of root. Root
> always has a uid of 0 and a gid of 0. Some of the groups have
> generally by agreement the same gid, but they could be another.
>
> So if you create a new installation and want to copy or share data
> with an old installation you have to ensure the involved users and
> groups have the same uid and gid on both installations. You can set
> the uid on user creation (if not already taken by another user).
>
> This is why I use ldap for network wide user and group management. The
> user hika and mythtv have the same uid on all computers and most
> groups likewise.
>
I would add another complication, which I discovered copying a disk from an old backend to a new one
(duff motherboard). Many of the users and groups generated by a fresh install are "system" users;
that means they are usually used only by OS subsystems. These are less than 1000 and typically
assigned the next available numbers. As the order of installation is indeterminate during an OS
install, these are essentially random and won't match the UIDs and GIDs on any other host.

Mythtv as installed from repos is often treated as a "system" install, meaning that the UID and GID
the user "mythtv" is assigned can often collide with UIDs from other subsystems like, for example,
gdm and lxd.

For this reason I now *always* create a mythtv user with a known UID and GID in the normal user
range (> 1000) before installing any software. That ensures (i) there are no collisions, (ii) any
existing video files still have the right UID and GID, (iii) the user is created under /home rather
than under /var, and (iv) if I access those directories from elsewhere I get sensible answers from NFS.

--

Mike Perkins


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org

1 2  View All