[Solved] MythFillDatabase fails with EoF Myth fixes/31 Ubuntu 20.04

For discussion of topics specific to MythTV on linux
Post Reply
User avatar
anoldguy
Junior
Posts: 17
Joined: Sat Jul 11, 2020 8:07 pm
United States of America

[Solved] MythFillDatabase fails with EoF Myth fixes/31 Ubuntu 20.04

Post by anoldguy » Sat Jul 11, 2020 8:38 pm

MythFillDatabase fails with EoF Myth fixes/31 Ubuntu 20.04

Clean install of Ubuntu 20.04

Command line install of MythTV fixes/31

Restored database from my old MythTV 27 Ubuntu 14.04

Installed XMLTV:


banana@computer:~$ sudo apt install git make xmltv perl-doc
Reading package lists... Done

banana@computer:~$
banana@computer:~$ mkdir -p build
banana@computer:~$
banana@computer:~$ cd build
banana@computer:~/build$
banana@computer:~/build$ git clone HHHH githubXcom/XMLTV/xmltv.git
Cloning into 'xmltv'...
remote: Enumerating objects: 196, done.
remote: Counting objects: 100% (196/196), done.
remote: Compressing objects: 100% (53/53), done.
remote: Total 30231 (delta 145), reused 187 (delta 143), pack-reused 30035
Receiving objects: 100% (30231/30231), 7.65 MiB | 12.78 MiB/s, done.
Resolving deltas: 100% (21290/21290), done.

banana@computer:~/build$ cd xmltv
banana@computer:~/build/xmltv$
banana@computer:~/build/xmltv$ perl Makefile.PL


banana@computer:~$ sudo su - mythtv
$ ls
$
$ mythtv-setup
xterm: Xt error: Can't open display:
xterm: DISPLAY is not set
$
$ pwd
/home/mythtv
$
$ tv_find_grabbers
/usr/local/bin/tv_grab_uk_tvguide|UK - TV Guide (tvguideXcoXuk)
/usr/local/bin/tv_grab_dk_dr|TV Oversigten fra Danmarks Radios (2012)...


banana@computer:~$ sudo su - mythtv
[sudo] password for banana:
$
$ pwd
/home/mythtv
$
$ tv_grab_zz_sdjson --configure
Cache file for lineups, schedules and programs.
Cache file: [/home/mythtv/.xmltv/tv_grab_zz_sdjson.cache]
If you are migrating from a different grabber selecting an alternate channel ID format can make the migration easier.
Select channel ID format:
0: Default Format (eg: I12345.json.schedulesdirectXorg)
1: tv_grab_na_dd Format (eg: I12345.labs.zap2itXcom)
2: MythTV Internal DD Grabber Format (eg: 12345)
Select one: [0,1,2 (default=0)]
As the JSON data only includes the previously shown date normally the XML output should only have the date. However some programs such as older versions of MythTV also need a time.
Select previously shown format:
0: Date Only
1: Date And Time
Select one: [0,1 (default=0)]
Schedules Direct username.
Username: banana
Schedules Direct password.
Password:
** POST https://json.schedulesdirectXorg/20141201/token ==> 200 OK (1s)
** GET https://json.schedulesdirectXorg/20141201/status ==> 200 OK
** GET https://json.schedulesdirectXorg/20141201/lineups ==> 200 OK
This step configures the lineups enabled for your Schedules Direct account. It impacts all other configurations and programs using the JSON API with your account. A maximum of 4 lineups can by added to your account. In a later step you will choose which lineups or channels to actually use for this configuration.
Current lineups enabled for your Schedules Direct account:
#. Lineup ID | Name | Location | Transport
1. USA-MI21567-X | Comcast - Digital | Chesterfield | Cable
2. USA-OTA-48060 | Local Over the Air Broadcast | 48060 | Antenna
Edit account lineups: [continue,add,delete (default=continue)]
Choose whether you want to include complete lineups or individual channels for this configuration.
Select mode: [lineups,channels (default=lineups)]
** GET https://json.schedulesdirectXorg/20141201/lineups ==> 200 OK
Choose lineups to use for this configuration.
USA-MI21567-X [yes,no,all,none (default=no)] yes
USA-OTA-48060 [yes,no,all,none (default=no)] yes
$

$ tv_find_grabbers | grep Schedules
/usr/local/bin/tv_grab_zz_sdjson_sqlite|Multinational (Schedules Direct JSON web services with SQLite DB)
/usr/local/bin/tv_grab_zz_sdjson|Schedules Direct JSON API
/usr/bin/tv_grab_zz_sdjson_sqlite|Multinational (Schedules Direct JSON web services with SQLite DB)
/usr/bin/tv_grab_zz_sdjson|Schedules Direct JSON API
/bin/tv_grab_zz_sdjson_sqlite|Multinational (Schedules Direct JSON web services with SQLite DB)
/bin/tv_grab_zz_sdjson|Schedules Direct JSON API
$

tv_grab_zz_sdjson --configure --config-file ~/.mythtv/source_name.xmltv

$ tv_grab_zz_sdjson --info
$

$ tv_grab_zz_sdjson --configure --config-file ~/.mythtv/source_name.xmltv
Cache file for lineups, schedules and programs.
Cache file: [/home/mythtv/.xmltv/tv_grab_zz_sdjson.cache]
If you are migrating from a different grabber selecting an alternate channel ID format can make the migration easier.
Select channel ID format:
0: Default Format (eg: I12345.json.schedulesdirectXorg)
1: tv_grab_na_dd Format (eg: I12345.labs.zap2itXcom)
2: MythTV Internal DD Grabber Format (eg: 12345)
Select one: [0,1,2 (default=0)]
As the JSON data only includes the previously shown date normally the XML output should only have the date. However some programs such as older versions of MythTV also need a time.
Select previously shown format:
0: Date Only
1: Date And Time
Select one: [0,1 (default=0)]
Schedules Direct username.
Username: banana
Schedules Direct password.
Password:
** POST https://json.schedulesdirectXorg/20141201/token ==> 200 OK (1s)
** GET https://json.schedulesdirectXorg/20141201/status ==> 200 OK
** GET https://json.schedulesdirectXorg/20141201/lineups ==> 200 OK
This step configures the lineups enabled for your Schedules Direct account. It impacts all other configurations and programs using the JSON API with your account. A maximum of 4 lineups can by added to your account. In a later step you will choose which lineups or channels to actually use for this configuration.
Current lineups enabled for your Schedules Direct account:
#. Lineup ID | Name | Location | Transport
1. USA-MI21567-X | Comcast - Digital | Chesterfield | Cable
2. USA-OTA-48060 | Local Over the Air Broadcast | 48060 | Antenna
Edit account lineups: [continue,add,delete (default=continue)]
Choose whether you want to include complete lineups or individual channels for this configuration.
Select mode: [lineups,channels (default=lineups)]
** GET https://json.schedulesdirectXorg/20141201/lineups ==> 200 OK
Choose lineups to use for this configuration.
USA-MI21567-X [yes,no,all,none (default=no)] yes
USA-OTA-48060 [yes,no,all,none (default=no)] yes
$

$ mythconverg_backup.pl
-sh: 40: mythconverg_backup.pl: not found
$
$ pwd
/home/mythtv
$
$ /usr/share/mythtv/mythconverg_backup.pl
$


banana@computer:~$ sudo su - mythtv
[sudo] password for banana:
$
$ /usr/bin/mythfilldatabase --verbose
2020-07-11 10:16:09.501428 C mythfilldatabase version: fixes/31 [v31.0-v31.0] www.mythtvXorg
2020-07-11 10:16:09.501442 C Qt version: compile: 5.12.5, runtime: 5.12.8
2020-07-11 10:16:09.501462 I Ubuntu 20.04 LTS (x86_64)
2020-07-11 10:16:09.501464 N Enabled verbose msgs: general
2020-07-11 10:16:09.501474 N Setting Log Level to LOG_INFO
2020-07-11 10:16:09.511800 I Added logging to the console
2020-07-11 10:16:09.512081 I Setup Interrupt handler
2020-07-11 10:16:09.512089 I Setup Terminated handler
2020-07-11 10:16:09.512094 I Setup Segmentation fault handler
2020-07-11 10:16:09.512102 I Setup Aborted handler
2020-07-11 10:16:09.512108 I Setup Bus error handler
2020-07-11 10:16:09.512113 I Setup Floating point exception handler
2020-07-11 10:16:09.512120 I Setup Illegal instruction handler
2020-07-11 10:16:09.512126 I Setup Real-time signal 0 handler
2020-07-11 10:16:09.512134 I Setup Hangup handler
2020-07-11 10:16:09.512221 N Using runtime prefix = /usr
2020-07-11 10:16:09.512228 N Using configuration directory = /home/mythtv/.mythtv
2020-07-11 10:16:09.512254 I Assumed character encoding: en_US.UTF-8
2020-07-11 10:16:09.512451 I Empty LocalHostName. This is typical.
2020-07-11 10:16:09.512459 I Using a profile name of: 'computer' (Usually the same as this host's name.)
2020-07-11 10:16:09.512578 I Start up testing connections. DB localhost, BE , attempt 0, status dbAwake, Delay: 2000
2020-07-11 10:16:10.528480 N Setting QT default locale to EN_US
2020-07-11 10:16:10.528488 I Current locale EN_US
2020-07-11 10:16:10.528517 N Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
2020-07-11 10:16:10.583441 I Power: On AC power
2020-07-11 10:16:10.583458 I Power: Supported actions: Suspend,Restart,Shutdown
2020-07-11 10:16:10.584249 I Loading en_us translation for module mythfrontend
2020-07-11 10:16:10.586340 I Current MythTV Schema Version (DBSchemaVer): 1361
2020-07-11 10:16:10.589690 I MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.0.102:6543 (try 1 of 1)
2020-07-11 10:16:10.592749 I MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
2020-07-11 10:16:10.593128 I Opening blocking connection to master backend
2020-07-11 10:16:10.603749 I Updating source #1 (antenna) with grabber tv_grab_zz_sdjson
2020-07-11 10:16:10.604117 I Found 3 channels for source 1 which use grabber
2020-07-11 10:16:10.604402 I Starting process manager
2020-07-11 10:16:10.604505 I Starting IO manager (read)
2020-07-11 10:16:10.605681 I Starting IO manager (write)
2020-07-11 10:16:10.605772 I Starting process signal handler
2020-07-11 10:16:11.056548 I Grabber has capabilities: baseline manualconfig preferredmethod
2020-07-11 10:16:11.507204 I Grabber prefers method: allatonce
2020-07-11 10:16:11.508093 I XMLTV config file is: /home/mythtv/.mythtv/antenna.xmltv
2020-07-11 10:16:11.959305 E FillData: XMLTV grabber returned error code 1
2020-07-11 10:16:12.258697 E Error in 1:1: unexpected end of file
2020-07-11 10:16:12.270360 I No programs found in data.
2020-07-11 10:16:12.531723 I Updating source #3 (Comcast) with grabber tv_grab_zz_sdjson
2020-07-11 10:16:12.532555 I Found 142 channels for source 3 which use grabber
2020-07-11 10:16:12.959439 I Grabber has capabilities: baseline manualconfig preferredmethod
2020-07-11 10:16:13.410178 I Grabber prefers method: allatonce
2020-07-11 10:16:13.411129 I XMLTV config file is: /home/mythtv/.mythtv/Comcast.xmltv
2020-07-11 10:16:13.862600 E FillData: XMLTV grabber returned error code 1
2020-07-11 10:16:14.161689 E Error in 1:1: unexpected end of file
2020-07-11 10:16:14.192624 I Cardutil: HDHomeRun Cablecard Present.
2020-07-11 10:16:14.211974 I Cardutil: HDHomeRun Cablecard Present.
2020-07-11 10:16:14.231297 I Cardutil: HDHomeRun Cablecard Present.
2020-07-11 10:16:14.232679 I No programs found in data.
2020-07-11 10:16:14.511664 E Failed to fetch some program info
2020-07-11 10:16:14.511696 I Adjusting program database end times.
2020-07-11 10:16:14.512029 I 0 replacements made
2020-07-11 10:16:14.512039 I Marking generic episodes.
2020-07-11 10:16:14.844665 I Found 0
2020-07-11 10:16:14.844673 I Extending non-unique programids with multiple parts.
2020-07-11 10:16:15.087061 I Found 0
2020-07-11 10:16:15.087070 I Fixing missing original airdates.
2020-07-11 10:16:15.763465 I Found 0 with programids
2020-07-11 10:16:15.764020 I Found 0 without programids
2020-07-11 10:16:15.764024 I Marking repeats.
2020-07-11 10:16:15.837192 I Found 0
2020-07-11 10:16:15.837199 I Unmarking new episode rebroadcast repeats.
2020-07-11 10:16:16.102180 I Found 0
2020-07-11 10:16:16.971341 I Marking episode first showings.
2020-07-11 10:16:18.351033 I Found 54792
2020-07-11 10:16:18.351041 I Marking episode last showings.
2020-07-11 10:16:19.746070 I Found 54892
2020-07-11 10:16:19.754997 I
===============================================================
| Attempting to contact the master backend for rescheduling. |
| If the master is not running, rescheduling will happen when |
| the master backend is restarted. |
===============================================================
2020-07-11 10:16:19.755677 N mythfilldatabase run complete.
2020-07-11 10:16:19.755738 I PowerDBus: Closing interfaces
2020-07-11 10:16:19.756161 I Waiting for threads to exit.
2020-07-11 10:16:19.756441 I Exiting
$

FAILED: XMLTV grabber returned error code 1

I can’t find a file on the system named antenna.xmltv or Comcast.xmltv, just /home/mythtv/.mythtv/source_name.xmltv

NOTE: I have both a HVR2250 and a HDHomeRun, so I configured XMLTV for two Schedules Direct line-ups, Comcast and antenna. Is this correct?

I have been searching and trying for days on this XMLTV problem and have run out of ideas.


OTHER SYMPTOMS: [pertinent?]

I can’t seem to run MythFillDataBase and mythconverg_backup.pl from a terminal window [sudo su - mythtv] without fully-qualifying them.

When I start the MythTV BackEnd, it can’t delete the LiveTV recordings I have made [not found, but .ts files exist in /var/lib/mythtv/livetv/.

I had to put in a delay for the BackEnd to start up, to allow the HVR2250s to download firmware.

I can’t watch TV recordings with a Time Stretch > 1.25, it now has audio dropouts. The same hardware ran 27 fine at 2.0 times. Also sometimes lip-synch delays on recordings.

I can’t seem to seem a shared folder on this server on another desktop with Ubuntu 18.04, though it used to before the 20.04 install.

HARDWARE:

Ubuntu 20.04 (x86_64)
Qt 5.12.8
MythTV fixes/31 (v31.0-v31.0)
Intel Core i7-2600K CPU @ 3.40GHz × 8
Intel HD Graphics 3000 (SNB GT2)
Gnome 3.36.3
7.7 GB RAM
Last edited by anoldguy on Mon Jul 13, 2020 2:10 am, edited 1 time in total.

User avatar
bill6502
Developer
Posts: 1730
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: MythFillDatabase fails with EoF Myth fixes/31 Ubuntu 20.04

Post by bill6502 » Sun Jul 12, 2020 4:09 am

It appears that after the perl Makefile.PL, you didn't do the make, make test and sudo make install.

Take a look at this: viewtopic.php?f=36&t=3908&p=19010#p19010
for how your mythtv directories/files should look. You may choose different database names
for each source, or you can use one (which is what the example does.)

Run mythfilldatabase -v system and you'll see the grabber command. You can run that from
the command line to get a handle on the issue if necessary.

User avatar
anoldguy
Junior
Posts: 17
Joined: Sat Jul 11, 2020 8:07 pm
United States of America

Re: MythFillDatabase fails with EoF Myth fixes/31 Ubuntu 20.04

Post by anoldguy » Mon Jul 13, 2020 2:07 am

Thank you for the response Bill.

I did do the make test and sudo make install .

The solution was to output the tv_grab_zz_sdjson files of antenna.xmltv and Comcast.xmltv to the folder /home/mythtv/.mythtv

Thank you again Bill, it is so nice to have schedules again!

Post Reply