[SOLVED] OTA TV changed freqency, rescanned, now mythfill.. fails

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
User avatar
keepitsimpleengineer
Junior
Posts: 46
Joined: Fri Oct 03, 2014 9:53 pm
Location: Central California, U.S.A.
United States of America

[SOLVED] OTA TV changed freqency, rescanned, now mythfill.. fails

Post by keepitsimpleengineer »

Local OTA stations only, got it setup with .xmltv, the SD database and Channel editor, now not all channels but one show up in Schedule.
All channels work work on Live TV

But mythfilldatabase returns FAILED: XMLTV grabber returned error code 1

Output show wrong name

Code: Select all

XMLTV config file is: /home/ljohnson/.mythtv/SD.xmltv.xmltv
which should be 'SD.xmltv'

No such incorrect name in 'mythtv-setup'

Oddly, the only station with data is the station whose frequency changed. :o

Code: Select all

$ mythfilldatabase
2021-06-18 17:48:55.933209 C  mythfilldatabase version: makepkg [v31.0-146-gc02c6fc0b3-dirty] www.mythtv.org
2021-06-18 17:48:55.933245 C  Qt version: compile: 5.15.2, runtime: 5.15.2
2021-06-18 17:48:55.933284 I  Manjaro Linux (x86_64)
2021-06-18 17:48:55.933287 N  Enabled verbose msgs:  general
2021-06-18 17:48:55.933306 N  Setting Log Level to LOG_INFO
2021-06-18 17:48:55.944048 I  Added logging to the console
2021-06-18 17:48:55.944409 I  Setup Interrupt handler
2021-06-18 17:48:55.944435 I  Setup Terminated handler
2021-06-18 17:48:55.944444 I  Setup Segmentation fault handler
2021-06-18 17:48:55.944455 I  Setup Aborted handler
2021-06-18 17:48:55.944462 I  Setup Bus error handler
2021-06-18 17:48:55.944473 I  Setup Floating point exception handler
2021-06-18 17:48:55.944480 I  Setup Illegal instruction handler
2021-06-18 17:48:55.944502 I  Setup Real-time signal 0 handler
2021-06-18 17:48:55.944513 I  Setup Hangup handler
2021-06-18 17:48:55.944682 N  Using runtime prefix = /usr
2021-06-18 17:48:55.944686 N  Using configuration directory = /home/ljohnson/.mythtv
2021-06-18 17:48:55.944747 I  Assumed character encoding: en_US.utf8
2021-06-18 17:48:55.944756 W  This application expects to be running a locale that specifies a UTF-8 codeset, and many features may behave improperly with your current language settings. Please set the LC_ALL or LC_CTYPE, and LANG variable(s) in the environment in which this program is executed to include a UTF-8 codeset (such as 'en_US.UTF-8').
2021-06-18 17:48:55.945130 I  Empty LocalHostName. This is typical.
2021-06-18 17:48:55.945140 I  Using a profile name of: 'KISE-055' (Usually the same as this host's name.)
2021-06-18 17:48:55.945230 I  Start up testing connections. DB KISE-055, BE , attempt 0, status start, Delay: 2000
2021-06-18 17:48:57.483033 N  Setting QT default locale to en_US
2021-06-18 17:48:57.483057 I  Current locale en_US
2021-06-18 17:48:57.483144 N  Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
2021-06-18 17:48:57.585572 I  Power: On AC power
2021-06-18 17:48:57.585620 I  Power: Supported actions: Suspend,Hibernate,Restart,Shutdown,HybridSleep
2021-06-18 17:48:57.587497 I  Loading en_us translation for module mythfrontend
2021-06-18 17:48:57.593192 I  Current MythTV Schema Version (DBSchemaVer): 1361
2021-06-18 17:48:57.602159 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.0.55:6543 (try 1 of 1)
2021-06-18 17:48:57.603650 I  MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
2021-06-18 17:48:57.604295 I  Opening blocking connection to master backend
2021-06-18 17:48:57.610696 I  Updating source #1 (SD.xmltv) with grabber tv_grab_zz_sdjson_sqlite
2021-06-18 17:48:57.611684 I  Found 3 channels for source 1 which use grabber
2021-06-18 17:48:57.612008 I  Starting process manager
2021-06-18 17:48:57.612089 I  Starting IO manager (read)
2021-06-18 17:48:57.612109 I  Starting IO manager (write)
2021-06-18 17:48:57.613704 I  Starting process signal handler
2021-06-18 17:48:58.466146 I  Grabber has capabilities: baseline manualconfig preferredmethod lineups apiconfig 
2021-06-18 17:48:59.318066 I  Grabber prefers method: allatonce
2021-06-18 17:48:59.319865 I  XMLTV config file is: /home/ljohnson/.mythtv/SD.xmltv.xmltv
2021-06-18 17:49:00.224354 E  XMLTV grabber returned error code 1
2021-06-18 17:49:00.822169 E  Malformed XML file, missing </tv> element, at line 1, Premature end of document.
2021-06-18 17:49:00.843041 E  Failed to fetch some program info
2021-06-18 17:49:00.843082 I  Adjusting program database end times.
2021-06-18 17:49:00.844084 I      0 replacements made
2021-06-18 17:49:00.844096 I  Marking generic episodes.
2021-06-18 17:49:00.936922 I      Found 0
2021-06-18 17:49:00.936934 I  Extending non-unique programids with multiple parts.
2021-06-18 17:49:00.947233 I      Found 0
2021-06-18 17:49:00.947240 I  Fixing missing original airdates.
2021-06-18 17:49:01.001253 I      Found 0 with programids
2021-06-18 17:49:01.003042 I      Found 0 without programids
2021-06-18 17:49:01.003050 I  Marking repeats.
2021-06-18 17:49:01.014920 I      Found 0
2021-06-18 17:49:01.014930 I  Unmarking new episode rebroadcast repeats.
2021-06-18 17:49:01.041585 I      Found 0
2021-06-18 17:49:01.147573 I  Marking episode first showings.
2021-06-18 17:49:01.203837 I      Found 906
2021-06-18 17:49:01.203847 I  Marking episode last showings.
2021-06-18 17:49:01.258633 I      Found 905
2021-06-18 17:49:01.263695 I  
===============================================================
| Attempting to contact the master backend for rescheduling.  |
| If the master is not running, rescheduling will happen when |
| the master backend is restarted.                            |
===============================================================
2021-06-18 17:49:01.265081 N  mythfilldatabase run complete.
2021-06-18 17:49:01.265282 I  PowerDBus: Closing interfaces
2021-06-18 17:49:01.266711 I  Waiting for threads to exit.
2021-06-18 17:49:01.268262 I  Exiting
Last edited by keepitsimpleengineer on Sat Jun 19, 2021 7:02 pm, edited 2 times in total.
User avatar
keepitsimpleengineer
Junior
Posts: 46
Joined: Fri Oct 03, 2014 9:53 pm
Location: Central California, U.S.A.
United States of America

Re: OTA TV changed freqency, rescanned, now mythfill.. fails

Post by keepitsimpleengineer »

Tried changing SD.xmltv to SDantenna.xmltv - produced SDantenna.xmltv.xmltv and no love.... ... .. .
:cry:
User avatar
keepitsimpleengineer
Junior
Posts: 46
Joined: Fri Oct 03, 2014 9:53 pm
Location: Central California, U.S.A.
United States of America

Re: OTA TV changed freqency, rescanned, now mythfill.. fails

Post by keepitsimpleengineer »

On the wobbly theory of 'If proper doesn't work, try improper'
I copied the proper name to an improper name

Code: Select all

$ cp SDantenna.xmltv SDantenna.xmltv.xmltv
and ran mythfilldatabase and it filled in the program information properly :shock:
Now we get:

Code: Select all

XMLTV config file is: /home/ljohnson/.mythtv/SDantenna.xmltv.xmltv
~or~

Code: Select all

$ mythfilldatabase
2021-06-19 07:28:15.986603 C  mythfilldatabase version: makepkg [v31.0-146-gc02c6fc0b3-dirty] www.mythtv.org
2021-06-19 07:28:15.986636 C  Qt version: compile: 5.15.2, runtime: 5.15.2
2021-06-19 07:28:15.986673 I  Manjaro Linux (x86_64)
2021-06-19 07:28:15.986675 N  Enabled verbose msgs:  general
2021-06-19 07:28:15.986691 N  Setting Log Level to LOG_INFO
2021-06-19 07:28:15.997188 I  Added logging to the console
2021-06-19 07:28:15.997696 I  Setup Interrupt handler
2021-06-19 07:28:15.997720 I  Setup Terminated handler
2021-06-19 07:28:15.997726 I  Setup Segmentation fault handler
2021-06-19 07:28:15.997733 I  Setup Aborted handler
2021-06-19 07:28:15.997738 I  Setup Bus error handler
2021-06-19 07:28:15.997745 I  Setup Floating point exception handler
2021-06-19 07:28:15.997749 I  Setup Illegal instruction handler
2021-06-19 07:28:15.997759 I  Setup Real-time signal 0 handler
2021-06-19 07:28:15.997767 I  Setup Hangup handler
2021-06-19 07:28:15.997895 N  Using runtime prefix = /usr
2021-06-19 07:28:15.997899 N  Using configuration directory = /home/ljohnson/.mythtv
2021-06-19 07:28:15.997949 I  Assumed character encoding: en_US.utf8
2021-06-19 07:28:15.997955 W  This application expects to be running a locale that specifies a UTF-8 codeset, and many features may behave improperly with your current language settings. Please set the LC_ALL or LC_CTYPE, and LANG variable(s) in the environment in which this program is executed to include a UTF-8 codeset (such as 'en_US.UTF-8').
2021-06-19 07:28:15.998280 I  Empty LocalHostName. This is typical.
2021-06-19 07:28:15.998288 I  Using a profile name of: 'KISE-055' (Usually the same as this host's name.)
2021-06-19 07:28:15.998357 I  Start up testing connections. DB KISE-055, BE , attempt 0, status start, Delay: 2000
2021-06-19 07:28:17.531308 N  Setting QT default locale to en_US
2021-06-19 07:28:17.531351 I  Current locale en_US
2021-06-19 07:28:17.531510 N  Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
2021-06-19 07:28:17.638925 I  Power: On AC power
2021-06-19 07:28:17.638961 I  Power: Supported actions: Suspend,Hibernate,Restart,Shutdown,HybridSleep
2021-06-19 07:28:17.640316 I  Loading en_us translation for module mythfrontend
2021-06-19 07:28:17.645832 I  Current MythTV Schema Version (DBSchemaVer): 1361
2021-06-19 07:28:17.654509 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.0.55:6543 (try 1 of 1)
2021-06-19 07:28:17.657106 I  MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
2021-06-19 07:28:17.657784 I  Opening blocking connection to master backend
2021-06-19 07:28:17.664561 I  Updating source #1 (SDantenna.xmltv) with grabber tv_grab_zz_sdjson_sqlite
2021-06-19 07:28:17.665483 I  Found 3 channels for source 1 which use grabber
2021-06-19 07:28:17.665829 I  Starting process signal handler
2021-06-19 07:28:17.665888 I  Starting IO manager (write)
2021-06-19 07:28:17.667523 I  Starting process manager
2021-06-19 07:28:17.667714 I  Starting IO manager (read)
2021-06-19 07:28:18.517903 I  Grabber has capabilities: baseline manualconfig preferredmethod lineups apiconfig 
2021-06-19 07:28:19.419698 I  Grabber prefers method: allatonce
2021-06-19 07:28:19.421646 I  XMLTV config file is: /home/ljohnson/.mythtv/SDantenna.xmltv.xmltv
2021-06-19 07:30:13.127656 I  Updated programs: 3769 Unchanged programs: 573
2021-06-19 07:30:13.186654 N  Data fetching complete.
2021-06-19 07:30:13.186676 I  Adjusting program database end times.
2021-06-19 07:30:13.187256 I      0 replacements made
2021-06-19 07:30:13.187264 I  Marking generic episodes.
2021-06-19 07:30:13.259419 I      Found 1074
2021-06-19 07:30:13.259438 I  Extending non-unique programids with multiple parts.
2021-06-19 07:30:13.273876 I      Found 0
2021-06-19 07:30:13.273893 I  Fixing missing original airdates.
2021-06-19 07:30:13.361667 I      Found 187 with programids
2021-06-19 07:30:13.363657 I      Found 0 without programids
2021-06-19 07:30:13.363675 I  Marking repeats.
2021-06-19 07:30:13.401982 I      Found 92
2021-06-19 07:30:13.402001 I  Unmarking new episode rebroadcast repeats.
2021-06-19 07:30:13.441241 I      Found 123
2021-06-19 07:30:13.572907 I  Marking episode first showings.
2021-06-19 07:30:13.721327 I      Found 6059
2021-06-19 07:30:13.721349 I  Marking episode last showings.
2021-06-19 07:30:13.870606 I      Found 5894
2021-06-19 07:30:13.875655 I  XMLTV config file is: /home/ljohnson/.mythtv/SDantenna.xmltv.xmltv
===============================================================
| Attempting to contact the master backend for rescheduling.  |
| If the master is not running, rescheduling will happen when |
| the master backend is restarted.                            |
===============================================================
2021-06-19 07:30:13.877746 N  mythfilldatabase run complete.
2021-06-19 07:30:13.878155 I  PowerDBus: Closing interfaces
2021-06-19 07:30:13.887051 I  Waiting for threads to exit.
2021-06-19 07:30:13.890054 I  Exiting
I'll leave it to others to work out the actual problem. :|
User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: [workaround] OTA TV changed freqency, rescanned, now mythfill.. fails

Post by bill6502 »

Check out the lines containing:

Code: Select all

  ... Updating source #1 (SD.xmltv) with grabber tv_grab_zz_sdjson_sqlite
The source name has .xmltv appended. That's OK, but the logic appends
that automatically when developing the name of the file. That's why the
name change above works.
User avatar
keepitsimpleengineer
Junior
Posts: 46
Joined: Fri Oct 03, 2014 9:53 pm
Location: Central California, U.S.A.
United States of America

Re: [workaround] OTA TV changed freqency, rescanned, now mythfill.. fails

Post by keepitsimpleengineer »

Thanks to a personal hero bill6502 I discovered the 'mythtv-setup'; '4. Video Source' should contain the name of the Source which will be/was the file name without the appended '.xmltv'.... ... .. .

Made the change, test, and fixed.... ... .. . :D
Post Reply