[Solved] Re-scan with clean setup under .30 -> "NO DATA" in guide

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

Moderator: Forum Moderators

Post Reply
jweida
Newcomer
Posts: 2
Joined: Sat Sep 07, 2019 9:24 pm
United States of America

[Solved] Re-scan with clean setup under .30 -> "NO DATA" in guide

Post by jweida » Sat Sep 07, 2019 9:58 pm

I’ve been using MythTV for 11 years and it’s been great. Thanks to all who have contributed to this truly amazing project. Through MythTV I have learned a lot about linux, networking, OTA broadcasting, database and system migration, virtual machines, headless servers…. It’s been a great hobby with practical results. This one has me stumped today.

Summary: I deleted and re-configured capture cards, now I have no guide data or scheduled recording capability.

Detail: There is an OTA channel lineup update yesterday in my market (Atlanta), so I was trying to re-scan to ensure any channel changes were captured. At least one channel has changed frequencies (WSB 39->32), I think there are others as well. I also recently upgraded from .27 to .30 a week ago, which went fine and the system has been fine in the interim.
First thing I tried was to enter mythtv-setup->5. Input Connections-><input connection>-> Scan. This didn’t appear to work, and my first round of googling led me to believe the best course of action was to start from scratch, given my recent update and all. So, in mythtv-setup, I did the following:
  • 2. Capture Cards > “(Delete all capture cards)”
  • 4. Video Sources > “(Delete all video sources)”
  • 5. Input connections > verified it was empty
I figure here I am at a clean point to re-run the setup now. So I did this:
  • 2. Capture Cards > “(New capture card)”>”HDHomeRun networked tuner”>tick the box next to “Use HDHomeRun nnnnnnnn (hdhomerun_atsc xxx.yyy.1.60”)>untick the box under Recording options for active EIT scan.
    Repeated the step above for the second tuner in the HDHR, so now I have two identical entries under 2. Capture Cards. (NOTE: This is a change from how it worked in .27 where each tuner gets an index after the serial number of the HDHR, but this appears to be design intent now).
  • 3. Recording Profiles>verified the HDHomeRun shows up as a recorder, did not change any settings.
  • 4. Video Sources > “(New video source)” > set up the new source for Schedules Direct, named it “SchedDirect”
  • 5. Input Connections > Select first entry
    Input Name: Press ENTER and select the only choice: “MPEG2TS”
    Display name (optional): empty
    Video Source: Press ENTER and select the only choice: “SchedDirect”
    Scan for channels > Scan … wait for scan to complete, found expected channels (including the updated one)
    Fetch channels from listings source: Press ENTER but there is no user visible response
    Starting channel is auto populated to 2_1
    Interactions between inputs > set Max recordings to 2 (so this tuner can record on the same transport)
    Back out to 5. Input Connections > repeat above for the second entry
  • 6. Channel Editor > verified all my expected channels appear with “SchedDirect” as the video source.
    Exit mythtv-setup, say yes to the prompt “would you like to run mythfilldatabase?”
    At this point, it seems like everything went well. But after mythfilldatabase completes, I navigate to mythweb and I get no guide data under listings. I’ve repeated the process 3 times, with a variance or two here and there, rebooted the server, but each time, I get the same result. Anyone have any pointers as to where to begin diagnosing this one?

Code: Select all

jweida@mythbackend:~$ mythutil --version
Please attach all output as a file in bug reports.
MythTV Version : v30.0
MythTV Branch :
Network Protocol : 91
Library API : 30.20181231-1
QT Version : 5.9.5
Options compiled in:
 linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_crystalhd using_dvb using_firewire using_frontend using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu using_libcec using_libcrypto using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl using_opengl_video using_opengl_themepainter using_qtwebkit using_qtscript using_qtdbus using_taglib using_v4l2 using_x11 using_xnvctrl using_xnvctrl_external using_libbluray_external using_xrandr using_xv using_profiletype using_systemd_notify using_systemd_journal using_bindings_perl using_bindings_python using_bindings_php using_freetype2 using_mythtranscode using_opengl using_vaapi using_vaapi2 using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2 using_libmp3lame

Code: Select all

jweida@mythbackend:~$ mythfilldatabase
2019-09-07 17:28:05.645394 C  mythfilldatabase version:  [v30.0] 
2019-09-07 17:28:05.645410 C  Qt version: compile: 5.9.5, runtime: 5.9.5
2019-09-07 17:28:05.645414 N  Enabled verbose msgs:  general
2019-09-07 17:28:05.645423 N  Setting Log Level to LOG_INFO
2019-09-07 17:28:05.656757 I  Setup Interrupt handler
2019-09-07 17:28:05.656766 I  Setup Terminated handler
2019-09-07 17:28:05.656774 I  Setup Segmentation fault handler
2019-09-07 17:28:05.656783 I  Setup Aborted handler
2019-09-07 17:28:05.656787 I  Setup Bus error handler
2019-09-07 17:28:05.656793 I  Setup Floating point exception handler
2019-09-07 17:28:05.656797 I  Setup Illegal instruction handler
2019-09-07 17:28:05.656804 I  Setup Real-time signal 0 handler
2019-09-07 17:28:05.656808 I  Setup Hangup handler
2019-09-07 17:28:05.656894 N  Using runtime prefix = /usr
2019-09-07 17:28:05.656899 N  Using configuration directory = /home/jweida/.mythtv
2019-09-07 17:28:05.656944 I  Assumed character encoding: en_US.UTF-8
2019-09-07 17:28:05.657194 I  Empty LocalHostName. This is typical.
2019-09-07 17:28:05.657198 I  Using a profile name of: 'mythbackend' (Usually the same as this host's name.)
2019-09-07 17:28:05.657254 I  Start up testing connections. DB localhost, BE , attempt 0, status dbAwake, Delay: 2000
2019-09-07 17:28:05.657786 I  Added logging to the console
2019-09-07 17:28:06.677562 N  Setting QT default locale to en_US
2019-09-07 17:28:06.677572 I  Current locale en_US
2019-09-07 17:28:06.677615 N  Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
2019-09-07 17:28:06.685079 I  Loading en_us translation for module mythfrontend
2019-09-07 17:28:06.687066 I  Current MythTV Schema Version (DBSchemaVer): 1350
2019-09-07 17:28:06.689977 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.1.200:6543 (try 1 of 1)
2019-09-07 17:28:06.691483 I  MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
2019-09-07 17:28:06.691939 I  Opening blocking connection to master backend
2019-09-07 17:28:06.693251 I  Updating source #1 (SchedDirect) with grabber schedulesdirect1
2019-09-07 17:28:06.693560 I  No channels are configured to use grabber.
2019-09-07 17:28:06.693628 I
2019-09-07 17:28:06.693633 I  Checking day @ offset 0, date: Sat Sep 7 2019
2019-09-07 17:28:06.694278 I  Data refresh needed because no data exists for day @ offset 0 from 8PM - midnight.
2019-09-07 17:28:06.694282 N  Refreshing data for Sat Sep 7 2019
2019-09-07 17:28:06.695671 I  Retrieving datadirect data.
2019-09-07 17:28:06.695707 I  Grabbing data for Sat Sep 7 2019 offset 0
2019-09-07 17:28:06.695718 I  From 2019-09-07T00:00:00Z to 2019-09-08T00:00:00Z (UTC)
2019-09-07 17:28:06.695737 I  DataDirect: Grabbing listing data
2019-09-07 17:28:06.695855 I  Downloading DataDirect feed
2019-09-07 17:28:10.398446 I  Downloaded 274466 bytes
2019-09-07 17:28:10.398458 I  Uncompressing DataDirect feed
2019-09-07 17:28:10.418157 I  Uncompressed to 2273578 bytes
2019-09-07 17:28:10.418168 I  Writing to temporary file: [/tmp/mythtv_ddp_xP67wt/mythtv_ddp_zOrOgY]
2019-09-07 17:28:10.429373 I  New static DB connectionDataDirectCon
2019-09-07 17:28:10.481664 I  DataDirect: Your subscription expires on Fri Apr 10 2020 3:51 PM
2019-09-07 17:28:10.528981 I  DataDirect: sourceid 1 has lineup type: LocalBroadcast
2019-09-07 17:28:13.993868 I  Grab complete.  Actual data from 2019-09-07T00:00:00Z to 2019-09-08T00:00:00Z (UTC)
2019-09-07 17:28:13.994441 I  Main temp tables populated.
2019-09-07 17:28:13.994443 I  Updating MythTV channels.
2019-09-07 17:28:14.154927 I  Channels updated.
2019-09-07 17:28:14.222940 I  Did not find any new program data.
2019-09-07 17:28:14.222969 I
2019-09-07 17:28:14.222975 I  Checking day @ offset 1, date: Sun Sep 8 2019
2019-09-07 17:28:14.222977 I  Data Refresh always needed for tomorrow
2019-09-07 17:28:14.222979 N  Refreshing data for Sun Sep 8 2019
2019-09-07 17:28:14.223959 I  Retrieving datadirect data.
2019-09-07 17:28:14.223966 I  Grabbing data for Sat Sep 7 2019 offset 1
2019-09-07 17:28:14.223973 I  From 2019-09-08T00:00:00Z to 2019-09-09T00:00:00Z (UTC)
2019-09-07 17:28:14.223981 I  DataDirect: Grabbing listing data
2019-09-07 17:28:14.223997 I  Downloading DataDirect feed
2019-09-07 17:28:16.234359 I  Downloaded 258412 bytes
2019-09-07 17:28:16.234370 I  Uncompressing DataDirect feed
2019-09-07 17:28:16.252151 I  Uncompressed to 2160070 bytes
2019-09-07 17:28:16.252161 I  Writing to temporary file: [/tmp/mythtv_ddp_xP67wt/mythtv_ddp_zOrOgY]
2019-09-07 17:28:16.302580 I  DataDirect: Your subscription expires on Fri Apr 10 2020 3:51 PM
2019-09-07 17:28:19.580894 I  Grab complete.  Actual data from 2019-09-08T00:00:00Z to 2019-09-09T00:00:00Z (UTC)
2019-09-07 17:28:19.581421 I  Main temp tables populated.
2019-09-07 17:28:19.627155 I  Did not find any new program data.
2019-09-07 17:28:19.627176 I
2019-09-07 17:28:19.627181 I  Checking day @ offset 2, date: Mon Sep 9 2019
2019-09-07 17:28:19.627676 I  Data refresh needed because no data exists for day @ offset 2 from 8PM - midnight.
2019-09-07 17:28:19.627680 N  Refreshing data for Mon Sep 9 2019
2019-09-07 17:28:19.628612 I  Retrieving datadirect data.
2019-09-07 17:28:19.628619 I  Grabbing data for Sat Sep 7 2019 offset 2
2019-09-07 17:28:19.628626 I  From 2019-09-09T00:00:00Z to 2019-09-10T00:00:00Z (UTC)
2019-09-07 17:28:19.628659 I  DataDirect: Grabbing listing data
2019-09-07 17:28:19.628677 I  Downloading DataDirect feed
2019-09-07 17:28:22.038193 I  Downloaded 270932 bytes
2019-09-07 17:28:22.038204 I  Uncompressing DataDirect feed
2019-09-07 17:28:22.056268 I  Uncompressed to 2305550 bytes
2019-09-07 17:28:22.056279 I  Writing to temporary file: [/tmp/mythtv_ddp_xP67wt/mythtv_ddp_zOrOgY]
2019-09-07 17:28:22.124896 I  DataDirect: Your subscription expires on Fri Apr 10 2020 3:51 PM
2019-09-07 17:28:25.670598 I  Grab complete.  Actual data from 2019-09-09T00:00:00Z to 2019-09-10T00:00:00Z (UTC)
2019-09-07 17:28:25.671131 I  Main temp tables populated.
2019-09-07 17:28:25.720108 I  Did not find any new program data.
2019-09-07 17:28:25.720135 I
2019-09-07 17:28:25.720140 I  Checking day @ offset 3, date: Tue Sep 10 2019
2019-09-07 17:28:25.720676 I  Data refresh needed because no data exists for day @ offset 3 from 8PM - midnight.
…. Identical repeats here for days 4-12 ….
2019-09-07 17:29:22.744919 I  Checking day @ offset 13, date: Fri Sep 20 2019
2019-09-07 17:29:22.745474 I  Data refresh needed because no data exists for day @ offset 13 from 8PM - midnight.
2019-09-07 17:29:22.745477 N  Refreshing data for Fri Sep 20 2019
2019-09-07 17:29:22.746454 I  Retrieving datadirect data.
2019-09-07 17:29:22.746461 I  Grabbing data for Sat Sep 7 2019 offset 13
2019-09-07 17:29:22.746469 I  From 2019-09-20T00:00:00Z to 2019-09-21T00:00:00Z (UTC)
2019-09-07 17:29:22.746477 I  DataDirect: Grabbing listing data
2019-09-07 17:29:22.746494 I  Downloading DataDirect feed
2019-09-07 17:29:24.351487 I  Downloaded 249267 bytes
2019-09-07 17:29:24.351498 I  Uncompressing DataDirect feed
2019-09-07 17:29:24.367265 I  Uncompressed to 2206598 bytes
2019-09-07 17:29:24.367277 I  Writing to temporary file: [/tmp/mythtv_ddp_xP67wt/mythtv_ddp_zOrOgY]
2019-09-07 17:29:24.425888 I  DataDirect: Your subscription expires on Fri Apr 10 2020 3:51 PM
2019-09-07 17:29:28.024702 I  Grab complete.  Actual data from 2019-09-20T00:00:00Z to 2019-09-21T00:00:00Z (UTC)
2019-09-07 17:29:28.025225 I  Main temp tables populated.
2019-09-07 17:29:28.071162 I  Did not find any new program data.
2019-09-07 17:29:28.071500 E  Failed to fetch some program info
2019-09-07 17:29:28.071510 I  Adjusting program database end times.
2019-09-07 17:29:28.071646 I      0 replacements made
2019-09-07 17:29:28.071649 I  Marking generic episodes.
2019-09-07 17:29:28.071900 I      Found 0
2019-09-07 17:29:28.071903 I  Extending non-unique programids with multiple parts.
2019-09-07 17:29:28.072200 I      Found 0
2019-09-07 17:29:28.072203 I  Fixing missing original airdates.
2019-09-07 17:29:28.072714 I      Found 0 with programids
2019-09-07 17:29:28.073135 I      Found 0 without programids
2019-09-07 17:29:28.073138 I  Marking repeats.
2019-09-07 17:29:28.073856 I      Found 0
2019-09-07 17:29:28.073860 I  Unmarking new episode rebroadcast repeats.
2019-09-07 17:29:28.074077 I      Found 0
2019-09-07 17:29:28.074230 I  Marking episode first showings.
2019-09-07 17:29:28.074863 I      Found 0
2019-09-07 17:29:28.074867 I  Marking episode last showings.
2019-09-07 17:29:28.075538 I      Found 0
2019-09-07 17:29:28.076781 I  DataDirect: Grabbing next suggested grabbing time
2019-09-07 17:29:28.478892 I  Suggested Time data: 613 bytes
2019-09-07 17:29:28.482322 I  DataDirect: BlockedTime is: 2019-09-07T22:29:28Z
2019-09-07 17:29:28.482436 I  DataDirect: nextSuggestedTime is: 2019-09-08T22:46:28Z
2019-09-07 17:29:28.484259 I
===============================================================
| Attempting to contact the master backend for rescheduling.  |
| If the master is not running, rescheduling will happen when |
| the master backend is restarted.                            |
===============================================================
2019-09-07 17:29:28.488423 N  mythfilldatabase run complete.
2019-09-07 17:29:28.488492 I  Waiting for threads to exit.
Ubuntu Server 18.04.3 LTS on VMWare Windows 10 host
2 TB RAID2 Windows share,HD Homerun Dual,Raspberry Pi 4 (mythtv-light)

jweida
Newcomer
Posts: 2
Joined: Sat Sep 07, 2019 9:24 pm
United States of America

Re: Re-scan with clean setup under .30 -> "NO DATA" in guide

Post by jweida » Sun Sep 08, 2019 7:01 pm

OK, after some more searching, it looks like by updating my system to use XMLTV instead of the old Schedules Direct Data Direct method that's built in to mythtv I am now able to get guide data. For others reference, I used this wiki page (wiki/XMLTV#Schedules_Direct_Setup). There's a lot of info there, but after I parsed through it, here's my distilled version of instructions:
  • XMLTV via Schedules Direct is now the preferred way to do things. As of v30.0, it’s not included by default in the mythtv package. Do the following:

    Code: Select all

    apt install xmltv
  • Configure xmltv “Schedules Direct JSON API” via the command line (using instructions on wiki at wiki/XMLTV#Setup_with_tv_grab_zz_sdjson). I picked the JSON API over the Multinational since it appears simpler. I looked at configuring via mythtv-setup, but it was not smooth since you need to interact. Instead, use this command line:

    Code: Select all

    tv_grab_zz_sdjson --configure --config-file $HOME/.mythtv/<name of source>.xmltv
    <name of source> is whatever you selected in mythtv-setup for the video source name.
    Go through the setup prompts. You’ll have to login and add a lineup. Since I'm OTA only, I selected antenna for my region. I added the entire lineup vs. individual channels.
  • Once you're finished configuring the sdjson grabber, run mythtv-setup to link it as your video source:
    "4. Video Sources" > <name of source> > Listings grabber: Schedules Direct JSON API (xmltv)
  • Say yes to run mythfilldatabase when exiting mythtv-setup. It took my system over 5 minutes to complete, it looked like it was hanging on writing data to the <name of source>.xmltv, but it eventually finished. I got loads of errors about “Unknown xmltv channel identifier”. Haven’t yet diagnosed this, but I did end up with a full listings data!
Hopfully this helps save someone some time.
Ubuntu Server 18.04.3 LTS on VMWare Windows 10 host
2 TB RAID2 Windows share,HD Homerun Dual,Raspberry Pi 4 (mythtv-light)

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

Re: Re-scan with clean setup under .30 -> "NO DATA" in guide

Post by bill6502 » Sun Sep 08, 2019 7:23 pm

Thanks for posting your solution.

The key line in the log contained: '... No channels are configured to use grabber.' and happens
when no xmltvid exists in the channel table.

Note that in v31, DataDirect support will be removed. https://www.mythtv.org/wiki/Release_Not ... or_Changes
(and it's already been removed in v31-Pre.)

Post Reply