long time user requests help installing v. 34

For discussion related to MythTV which doesn't belong in another forum.

Moderator: Forum Moderators

Post Reply
toolman
Newcomer
Posts: 4
Joined: Sun Feb 08, 2015 11:26 pm
United States of America

long time user requests help installing v. 34

Post by toolman »

I’m a long time success story. Mythtv has been running flawlessly since I set up version 16. I use the two drives configuration and the large, spinning disk drive is beginning to pack out. At 77, if past is prologue, one more iteration should last until I push up daises. So after boning up a bit to become current I figured either 32 or 34 would do. I began by attempting to install v. 32 using the marvelous UTube 'MythTV v32 Example Backend Setup on Ubuntu 22.04 with Schedules Direct and HDHomeRun Prime' video as a model. I gave up when I ran into the roadblock of mythfilldatabase downloading the entire Comcast list of channels v. Schedules Direct. I spent days futzing around with that strategy until I moved on to v. 34. The Mythtv Setup General is a great resource. The main issue I experienced was with font size. I nearly went blind switching back and forth between two screens, reading instructions on a laptop screen and making entries on a desktop. Wonky vision, semi-corrected with trifocals doesn't help and may improve when owing to cataracts I get new lenses in May. After probably ten attempts it dawned upon me to print the instructions and highlight entries. One focal plane, highlighted visual cues for entries, and minimal neck toing and froing. I'm using Ubuntu 24 as the OS and synaptic for the Mythtv apps. Things work swimmingly - the schedules direct lineup v. entire comcast lineup imports – until it comes time for mythfilldatabase.

I would be grateful if someone could point me in the right direction before the old drive completely packs out. This is the message mythfilldatabase returns.

david@david34:~$ mythfilldatabase
2025-02-01 08:42:24.018265 C mythfilldatabase version: fixes/34 [v34.0+fixes.202501162320.f4cbdd37a5~ubuntu24.10.1] xxxxx
2025-02-01 08:42:24.018272 C Qt version: compile: 5.15.15, runtime: 5.15.15
2025-02-01 08:42:24.018293 I Ubuntu 24.10 (x86_64)
2025-02-01 08:42:24.018295 N Enabled verbose msgs: general
2025-02-01 08:42:24.018300 N Setting Log Level to LOG_INFO
2025-02-01 08:42:24.028589 I Added logging to the console
2025-02-01 08:42:24.028823 I Setup Interrupt handler
2025-02-01 08:42:24.028826 I Setup Terminated handler
2025-02-01 08:42:24.028830 I Setup Segmentation fault handler
2025-02-01 08:42:24.028832 I Setup Aborted handler
2025-02-01 08:42:24.028838 I Setup Floating point exception handler
2025-02-01 08:42:24.028840 I Setup Illegal instruction handler
2025-02-01 08:42:24.028842 I Setup Bus error handler
2025-02-01 08:42:24.028847 I Setup Real-time signal 0 handler
2025-02-01 08:42:24.028849 I Setup Hangup handler
2025-02-01 08:42:24.028985 N Using runtime prefix = /usr
2025-02-01 08:42:24.028987 N Using configuration directory = /home/david/.mythtv
2025-02-01 08:42:24.029088 I Assumed character encoding: en_US.UTF-8
2025-02-01 08:42:24.029463 I Empty LocalHostName. This is typical.
2025-02-01 08:42:24.029479 I Using a profile name of: 'david34' (Usually the same as this host's name.)
2025-02-01 08:42:24.029606 I Start up testing connections. DB localhost, BE , attempt 0, status dbAwake, Delay: 2000
2025-02-01 08:42:25.044329 N Setting QT default locale to en_US
2025-02-01 08:42:25.044340 I Current locale en_US
2025-02-01 08:42:25.044398 N Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
2025-02-01 08:42:25.101233 I Power: On AC power
2025-02-01 08:42:25.101252 I Power: Supported actions: Suspend,Restart,Shutdown
2025-02-01 08:42:25.101970 I Loading en_us translation for module mythfrontend
2025-02-01 08:42:25.103103 I Current MythTV Schema Version (DBSchemaVer): 1379
2025-02-01 08:42:25.105322 I MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 127.0.0.1:6543 (try 1 of 1)
2025-02-01 08:42:25.106407 I MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
2025-02-01 08:42:25.106636 I Opening blocking connection to master backend
2025-02-01 08:42:25.107482 I Updating source #1 (comcast) with grabber tv_grab_zz_sdjson
2025-02-01 08:42:25.107938 I No channels are configured to use grabber (none have XMLTVIDs).
2025-02-01 08:42:25.108192 I Starting process manager
2025-02-01 08:42:25.108313 I Starting process signal handler
2025-02-01 08:42:25.108329 I Starting IO manager (read)
2025-02-01 08:42:25.110920 I Starting IO manager (write)
2025-02-01 08:42:25.458861 I Grabber has capabilities: baseline manualconfig preferredmethod
2025-02-01 08:42:25.859374 I Grabber prefers method: allatonce
2025-02-01 08:42:25.860213 I XMLTV config file is: /home/david/.mythtv/comcast.xmltv
2025-02-01 08:42:26.210854 E XMLTV grabber returned error code 1
2025-02-01 08:42:27.012333 E Malformed XML file, missing </tv> element, at line 1, Premature end of document.
2025-02-01 08:42:27.013244 E Failed to fetch some program info
2025-02-01 08:42:27.013264 I Adjusting program database end times.
2025-02-01 08:42:27.013501 I 0 replacements made
2025-02-01 08:42:27.013503 I Marking generic episodes.
2025-02-01 08:42:27.013845 I Found 0
2025-02-01 08:42:27.013847 I Extending non-unique programids with multiple parts.
2025-02-01 08:42:27.014275 I Found 0
2025-02-01 08:42:27.014276 I Fixing missing original airdates.
2025-02-01 08:42:27.014898 I Found 0 with programids
2025-02-01 08:42:27.015430 I Found 0 without programids
2025-02-01 08:42:27.015431 I Marking repeats.
2025-02-01 08:42:27.016533 I Found 0
2025-02-01 08:42:27.016535 I Unmarking new episode rebroadcast repeats.
2025-02-01 08:42:27.016839 I Found 0
2025-02-01 08:42:27.017047 I Marking episode first showings.
2025-02-01 08:42:27.018081 I Found 0
2025-02-01 08:42:27.018083 I Marking episode last showings.
2025-02-01 08:42:27.019010 I Found 0
2025-02-01 08:42:27.019991 I
===============================================================
| Attempting to contact the master backend for rescheduling. |
| If the master is not running, rescheduling will happen when |
| the master backend is restarted. |
===============================================================
2025-02-01 08:42:27.020774 N mythfilldatabase run complete.
2025-02-01 08:42:27.020844 I PowerDBus: Closing interfaces
2025-02-01 08:42:27.021714 I Waiting for threads to exit.
2025-02-01 08:42:27.022226 I Exiting
david@david34:~$

Dave
white_haired_uncle
Senior
Posts: 494
Joined: Thu Feb 23, 2023 8:55 pm
Location: Safe outside my gilded cage
United States of America

Re: long time user requests help installing v. 34

Post by white_haired_uncle »

toolman wrote:
Sat Feb 01, 2025 3:22 pm
The main issue I experienced was with font size.
This comment makes me think you're using mythtv-setup, which still works at the moment. You probably should, ahem, focus on the new webapp

http://mythbackend:6544

or probably david34:6544 in your case.
toolman wrote:
Sat Feb 01, 2025 3:22 pm
2025-02-01 08:42:25.860213 I XMLTV config file is: /home/david/.mythtv/comcast.xmltv
2025-02-01 08:42:26.210854 E XMLTV grabber returned error code 1
2025-02-01 08:42:27.012333 E Malformed XML file, missing </tv> element, at line 1, Premature end of document.
I'm not sure what you're up to at this point, whether this is a new install or an update from an older version. Schedules Direct has changed the way they provide guide data, so it's probably different that what you're used to. You'll want to follow the instructions at

https://www.mythtv.org/wiki/XMLTV

[Note: In the Installation section it talks about manually updating outdated xmltv packages. IMO, it's probably this comment that's outdated. Also the comment about /usr/local trumping /usr is just silly and should be removed]

One thing I see is that you're running mythfilldatabase as david and not mythtv. You can do that if you really want to, probably running it manually instead of having mythtv do it for you, but I would recommend you do everything as mythtv until you get it working first.
toolman
Newcomer
Posts: 4
Joined: Sun Feb 08, 2015 11:26 pm
United States of America

Re: long time user requests help installing v. 34

Post by toolman »

Thank you for this.
toolman
Newcomer
Posts: 4
Joined: Sun Feb 08, 2015 11:26 pm
United States of America

Re: long time user requests help installing v. 34

Post by toolman »

This time I used mythbuntu-control-panel for the initial setup then I used the web interface. It looks to me like the backend isn't connecting with Schedules Direct and I can't figure out why. While completing video sources I was careful when it switched to command line to load from mythtv. cd /home/mythtv/ This is what returns when I run mythtfilldatabase from mythtv. I've learned a great deal about this amazing tool and I feel like I'm oh-so-close.

Thanks,

Dave

david@david:~$ mythfilldatabase
2025-02-12 10:49:36.929042 C mythfilldatabase version: fixes/34 [v34.0+fixes.202502020433.f4cbdd37a5~ubuntu24.10.1] www.mythtv.org
2025-02-12 10:49:36.929050 C Qt version: compile: 5.15.15, runtime: 5.15.15
2025-02-12 10:49:36.929071 I Ubuntu 24.10 (x86_64)
2025-02-12 10:49:36.929073 N Enabled verbose msgs: general
2025-02-12 10:49:36.929078 N Setting Log Level to LOG_INFO
2025-02-12 10:49:36.939406 I Added logging to the console
2025-02-12 10:49:36.939661 I Setup Interrupt handler
2025-02-12 10:49:36.939666 I Setup Terminated handler
2025-02-12 10:49:36.939669 I Setup Segmentation fault handler
2025-02-12 10:49:36.939673 I Setup Aborted handler
2025-02-12 10:49:36.939679 I Setup Floating point exception handler
2025-02-12 10:49:36.939682 I Setup Illegal instruction handler
2025-02-12 10:49:36.939685 I Setup Bus error handler
2025-02-12 10:49:36.939690 I Setup Real-time signal 0 handler
2025-02-12 10:49:36.939693 I Setup Hangup handler
2025-02-12 10:49:36.939807 N Using runtime prefix = /usr
2025-02-12 10:49:36.939808 N Using configuration directory = /home/david/.mythtv
2025-02-12 10:49:36.939927 I Assumed character encoding: en_US.UTF-8
2025-02-12 10:49:36.940151 I Empty LocalHostName. This is typical.
2025-02-12 10:49:36.940161 I Using a profile name of: 'david' (Usually the same as this host's name.)
2025-02-12 10:49:36.940262 I Start up testing connections. DB localhost, BE , attempt 0, status dbAwake, Delay: 2000
2025-02-12 10:49:37.951300 N Setting QT default locale to en_US
2025-02-12 10:49:37.951310 I Current locale en_US
2025-02-12 10:49:37.951359 N Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
2025-02-12 10:49:38.005520 I Power: On AC power
2025-02-12 10:49:38.005543 I Power: Supported actions: Suspend,Restart,Shutdown
2025-02-12 10:49:38.006673 I Loading en_us translation for module mythfrontend
2025-02-12 10:49:38.008435 I Current MythTV Schema Version (DBSchemaVer): 1379
2025-02-12 10:49:38.011461 I MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 127.0.0.1:6543 (try 1 of 1)
2025-02-12 10:49:38.012768 I MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
2025-02-12 10:49:38.013065 I Opening blocking connection to master backend
2025-02-12 10:49:38.014527 I Updating source #1 (comcast) with grabber tv_grab_zz_sdjson
2025-02-12 10:49:38.014984 I No channels are configured to use grabber (none have XMLTVIDs).
2025-02-12 10:49:38.015202 I Starting process signal handler
2025-02-12 10:49:38.015214 I Starting process manager
2025-02-12 10:49:38.016386 I Starting IO manager (read)
2025-02-12 10:49:38.016488 I Starting IO manager (write)
2025-02-12 10:49:38.465821 I Grabber has capabilities: baseline manualconfig preferredmethod
2025-02-12 10:49:38.916352 I Grabber prefers method: allatonce
2025-02-12 10:49:38.916987 I XMLTV config file is: /home/david/.mythtv/comcast.xmltv
2025-02-12 10:49:39.317686 E XMLTV grabber returned error code 1
2025-02-12 10:49:40.169212 E Malformed XML file, missing </tv> element, at line 1, Premature end of document.
2025-02-12 10:49:40.169731 E Failed to fetch some program info
2025-02-12 10:49:40.169750 I Adjusting program database end times.
2025-02-12 10:49:40.169937 I 0 replacements made
2025-02-12 10:49:40.169939 I Marking generic episodes.
2025-02-12 10:49:40.170264 I Found 0
2025-02-12 10:49:40.170266 I Extending non-unique programids with multiple parts.
2025-02-12 10:49:40.170713 I Found 0
2025-02-12 10:49:40.170715 I Fixing missing original airdates.
2025-02-12 10:49:40.171389 I Found 0 with programids
2025-02-12 10:49:40.171893 I Found 0 without programids
2025-02-12 10:49:40.171896 I Marking repeats.
2025-02-12 10:49:40.172987 I Found 0
2025-02-12 10:49:40.172990 I Unmarking new episode rebroadcast repeats.
2025-02-12 10:49:40.173299 I Found 0
2025-02-12 10:49:40.173509 I Marking episode first showings.
2025-02-12 10:49:40.174523 I Found 0
2025-02-12 10:49:40.174526 I Marking episode last showings.
2025-02-12 10:49:40.175466 I Found 0
2025-02-12 10:49:40.176427 I
===============================================================
| Attempting to contact the master backend for rescheduling. |
| If the master is not running, rescheduling will happen when |
| the master backend is restarted. |
===============================================================
2025-02-12 10:49:40.177267 N mythfilldatabase run complete.
2025-02-12 10:49:40.177396 I PowerDBus: Closing interfaces
2025-02-12 10:49:40.179431 I Waiting for threads to exit.
2025-02-12 10:49:40.179454 I Exiting
david@david:~$ cd /home/mythtv
david@david:/home/mythtv$ mythfilldatabase
2025-02-12 10:50:10.225104 C mythfilldatabase version: fixes/34 [v34.0+fixes.202502020433.f4cbdd37a5~ubuntu24.10.1] www.mythtv.org
2025-02-12 10:50:10.225111 C Qt version: compile: 5.15.15, runtime: 5.15.15
2025-02-12 10:50:10.225133 I Ubuntu 24.10 (x86_64)
2025-02-12 10:50:10.225134 N Enabled verbose msgs: general
2025-02-12 10:50:10.225139 N Setting Log Level to LOG_INFO
2025-02-12 10:50:10.235397 I Added logging to the console
2025-02-12 10:50:10.235678 I Setup Interrupt handler
2025-02-12 10:50:10.235682 I Setup Terminated handler
2025-02-12 10:50:10.235686 I Setup Segmentation fault handler
2025-02-12 10:50:10.235689 I Setup Aborted handler
2025-02-12 10:50:10.235695 I Setup Floating point exception handler
2025-02-12 10:50:10.235698 I Setup Illegal instruction handler
2025-02-12 10:50:10.235700 I Setup Bus error handler
2025-02-12 10:50:10.235705 I Setup Real-time signal 0 handler
2025-02-12 10:50:10.235708 I Setup Hangup handler
2025-02-12 10:50:10.235784 N Using runtime prefix = /usr
2025-02-12 10:50:10.235785 N Using configuration directory = /home/david/.mythtv
2025-02-12 10:50:10.235885 I Assumed character encoding: en_US.UTF-8
2025-02-12 10:50:10.236099 I Empty LocalHostName. This is typical.
2025-02-12 10:50:10.236107 I Using a profile name of: 'david' (Usually the same as this host's name.)
2025-02-12 10:50:10.236205 I Start up testing connections. DB localhost, BE , attempt 0, status dbAwake, Delay: 2000
2025-02-12 10:50:11.249481 N Setting QT default locale to en_US
2025-02-12 10:50:11.249490 I Current locale en_US
2025-02-12 10:50:11.249540 N Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
2025-02-12 10:50:11.297659 I Power: On AC power
2025-02-12 10:50:11.297673 I Power: Supported actions: Suspend,Restart,Shutdown
2025-02-12 10:50:11.298282 I Loading en_us translation for module mythfrontend
2025-02-12 10:50:11.299017 I Current MythTV Schema Version (DBSchemaVer): 1379
2025-02-12 10:50:11.300493 I MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 127.0.0.1:6543 (try 1 of 1)
2025-02-12 10:50:11.301522 I MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
2025-02-12 10:50:11.301651 I Opening blocking connection to master backend
2025-02-12 10:50:11.302836 I Updating source #1 (comcast) with grabber tv_grab_zz_sdjson
2025-02-12 10:50:11.303267 I No channels are configured to use grabber (none have XMLTVIDs).
2025-02-12 10:50:11.303396 I Starting process manager
2025-02-12 10:50:11.303432 I Starting IO manager (read)
2025-02-12 10:50:11.303448 I Starting process signal handler
2025-02-12 10:50:11.304835 I Starting IO manager (write)
2025-02-12 10:50:11.653940 I Grabber has capabilities: baseline manualconfig preferredmethod
2025-02-12 10:50:12.054453 I Grabber prefers method: allatonce
2025-02-12 10:50:12.055026 I XMLTV config file is: /home/david/.mythtv/comcast.xmltv
2025-02-12 10:50:12.455695 E XMLTV grabber returned error code 1
2025-02-12 10:50:13.106838 E Malformed XML file, missing </tv> element, at line 1, Premature end of document.
2025-02-12 10:50:13.107573 E Failed to fetch some program info
2025-02-12 10:50:13.107591 I Adjusting program database end times.
2025-02-12 10:50:13.107796 I 0 replacements made
2025-02-12 10:50:13.107797 I Marking generic episodes.
2025-02-12 10:50:13.108105 I Found 0
2025-02-12 10:50:13.108107 I Extending non-unique programids with multiple parts.
2025-02-12 10:50:13.108481 I Found 0
2025-02-12 10:50:13.108482 I Fixing missing original airdates.
2025-02-12 10:50:13.109190 I Found 0 with programids
2025-02-12 10:50:13.109685 I Found 0 without programids
2025-02-12 10:50:13.109686 I Marking repeats.
2025-02-12 10:50:13.110641 I Found 0
2025-02-12 10:50:13.110643 I Unmarking new episode rebroadcast repeats.
2025-02-12 10:50:13.110922 I Found 0
2025-02-12 10:50:13.111106 I Marking episode first showings.
2025-02-12 10:50:13.112056 I Found 0
2025-02-12 10:50:13.112058 I Marking episode last showings.
2025-02-12 10:50:13.112920 I Found 0
2025-02-12 10:50:13.113779 I
===============================================================
| Attempting to contact the master backend for rescheduling. |
| If the master is not running, rescheduling will happen when |
| the master backend is restarted. |
===============================================================
2025-02-12 10:50:13.114446 N mythfilldatabase run complete.
2025-02-12 10:50:13.114506 I PowerDBus: Closing interfaces
2025-02-12 10:50:13.114875 I Waiting for threads to exit.
2025-02-12 10:50:13.115359 I Exiting
david@david:/home/mythtv$
white_haired_uncle
Senior
Posts: 494
Joined: Thu Feb 23, 2023 8:55 pm
Location: Safe outside my gilded cage
United States of America

Re: long time user requests help installing v. 34

Post by white_haired_uncle »

toolman wrote:
Wed Feb 12, 2025 5:13 pm
While completing video sources I was careful when it switched to command line to load from mythtv. cd /home/mythtv/ This is what returns when I run mythtfilldatabase from mythtv.
You don't need to run it FROM ~mythtv, you need to run it AS mythtv.

See that part that says:

Code: Select all

XMLTV config file is: /home/david/.mythtv/comcast.xmltv
If you followed the directions, you ran the config as mythtv. It would have looked very close, but perhaps not exactly like this:

Code: Select all

sudo -u mythtv tv_grab_zz_sdjson_sqlite --configure --config-file "/home/mythtv/.mythtv/comcast.xmltv"
which means "Run tv_grab_zz_sdjson_sqlite... as the user mythtv".

So there's probably a valid config file at /home/mythtv/.mythtv/comcast.xmltv. But you're running mythfilldatabase as the user david, so it's looking at /home/david/.mythtv/comcast.xmltv which probably doesn't exist.

If, for some reason you need to run mythfilldatabase as david, you should be able to copy ~mythtv/.mythtv/comcast.xmltv to /home/david/.mythtv/ (which likely doesn't exist yet), or better yet make a link. But probably you don't, you can just let mythtv run mythfilldatabase automatically. For now, if you need to run it manually, I'd try

Code: Select all

sudo -u mythtv mythfilldatabase
and get that working first.
User avatar
bill6502
Developer
Posts: 2433
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: long time user requests help installing v. 34

Post by bill6502 »

@toolman, also the log line: 2025-02-12 10:49:38.014527 I Updating source #1 (comcast) with grabber tv_grab_zz_sdjson says you selected that grabber, not the tv_grab_zz_sdjson_sqlite above. Both are known to work.

Putting this in your .bashrc file makes life simpler if you run mythfilldatabase frequently (and eventually, the backend's daily run should be enough.)

Code: Select all

alias mfdbrun='sudo -u mythtv mythfilldatabase -v xmltv'
Type: . ~/.bashrc to make it available now. Anytime after that, just type mfdbrun.
Post Reply