<div dir="ltr">As noted in the other thread you are responding to I am starting over.  This time I am going to use the sqllite version of xmltv since you selected that and seem to know what you're doing, plus there is a way to make the channel selections via a file rather than through the command line interface.  Two questions.  <div><br></div><div>(1) in the above you have separate OTA and CABLE configurations.  Am I correct to assume you do this by running the config twice with a different DB name?  And should I run the config scripts as user mythtv?</div><div><br></div><div>(2) The wiki says:  "<span style="color:rgb(37,37,37);font-family:sans-serif;font-size:17.5px">Run MythTV Setup and select </span><i style="color:rgb(37,37,37);font-family:sans-serif;font-size:17.5px">Multinational (Schedules Direct JSON web services with SQLite DB)</i><span style="color:rgb(37,37,37);font-family:sans-serif;font-size:17.5px"> for your listings source." So I run mythtv-setup first, select the suggested option for each source while not selecting any channels, then exit setup, and then run the config scripts?  This is a little confusing.</span></div><div><span style="color:rgb(37,37,37);font-family:sans-serif;font-size:17.5px"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 25, 2020 at 5:30 PM Bill Meek <<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 7/25/20 7:09 PM, DryHeat122 wrote:<br>
> <br>
> <br>
> On Sat, Jul 25, 2020 at 1:21 PM Bill Meek <<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a> <mailto:<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>>> wrote:<br>
> <br>
>     On 7/25/20 2:18 PM, DryHeat122 wrote:<br>
>      > Trying to get XMLTV set up on a new install of Myth 31.  I have xmltv compiled and installed, now trying to get it linked to the input<br>
>     sources.<br>
>      > The wiki <<a href="https://www.mythtv.org/wiki/XMLTV" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/XMLTV</a>> is pretty insistent that that I run mythtv-setup as user mythtv for this step, but when I sudo<br>
>      > --login --user=mythtv and enter mythtv-setup it exits without running setup or giving any error messages.  I have already run it as<br>
>     myself, if<br>
>      > that makes a difference.  The wiki is a little confusing because it says "If you do not want to logon to that id or you cannot, you can<br>
>     run the<br>
>      > mythtv-setup from another id on the same backend."  But above that it admonishes "Warning: It seems users are missing the step that says<br>
>     run the<br>
>      > setup as the user that will run mythfilldatabase (which is frequently user mythtv.)"  How can I get setup to run under user mythtv?  If I<br>
>     can't,<br>
>      > will moving/linking the .xmltv contents to /home/mythtv do the trick (as suggested in the wiki)?<br>
> <br>
>     Actually, the instruction says:<br>
> <br>
>     If user mythtv is allowed to login and start the window manager, XMLTV can be configured through the Video Sources Setup page in mythtv-setup.<br>
>     Otherwise, follow the steps below and do the configuration from the command line.<br>
> <br>
>     I know that because I just changed the Wiki. Thanks for pointing this out.<br>
> <br>
>     -- <br>
>     Bill<br>
> <br>
> My pleasure.  Unfortunately I'm having a nightmare getting xmltv configured.  I still can't get mythtv-setup to run from user mythtv.  It just <br>
> exits, doing nothing.  So I went through the procedure of running the command line configuration  for tv_grab_zz_sdjson and selecting all the <br>
> channels (not a fun job, terrible interface). It produced a config file in /home/mythtv/.mythtv but mythfilldatabase was looking for it in <br>
> /home/steve/.mythtv So I created a symlink for it there. Now when I run mythfilldatabase I get the output below. It says unexpected end of file. <br>
> I looked at the file. It has info in it like username and pw for schedules direct, and a bunch of channel items. Not sure what it was looking <br>
> for that it didn't get.<br>
> <br>
> 2020-07-25 16:08:01.887565 N  Using configuration directory = /home/steve/.mythtv<br>
> 2020-07-25 16:08:01.887593 I  Assumed character encoding: en_US.UTF-8<br>
> 2020-07-25 16:08:01.887818 I  Empty LocalHostName. This is typical.<br>
> 2020-07-25 16:08:01.887825 I  Using a profile name of: 'steve-EP45-UD3P' (Usually the same as this host's name.)<br>
> 2020-07-25 16:08:01.887874 I  Start up testing connections. DB localhost, BE , attempt 0, status dbAwake, Delay: 2000<br>
> 2020-07-25 16:08:02.901952 N  Setting QT default locale to en_US<br>
> 2020-07-25 16:08:02.901966 I  Current locale en_US<br>
> 2020-07-25 16:08:02.902017 N  Reading locale defaults from /usr/share/mythtv//locales/en_us.xml<br>
> 2020-07-25 16:08:02.920887 I  PowerDBus: Added UPower.Device '/org/freedesktop/UPower/devices/mouse_hidpp_battery_0'<br>
> 2020-07-25 16:08:02.921152 I  Power: On AC power<br>
> 2020-07-25 16:08:02.950791 I  Power: Supported actions: Suspend,Restart,Shutdown<br>
> 2020-07-25 16:08:02.951693 I  Loading en_us translation for module mythfrontend<br>
> 2020-07-25 16:08:02.953200 I  Current MythTV Schema Version (DBSchemaVer): 1361<br>
> 2020-07-25 16:08:02.955403 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: <a href="http://192.168.1.200:6543" rel="noreferrer" target="_blank">192.168.1.200:6543</a> <br>
> <<a href="http://192.168.1.200:6543" rel="noreferrer" target="_blank">http://192.168.1.200:6543</a>> (try 1 of 1)<br>
> 2020-07-25 16:08:02.956691 I  MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff<br>
> 2020-07-25 16:08:02.956948 I  Opening blocking connection to master backend<br>
> 2020-07-25 16:08:02.957546 I  Updating source #1 (sdjson) with grabber tv_grab_zz_sdjson<br>
> 2020-07-25 16:08:02.959422 I  Found 302 channels for source 1 which use grabber<br>
> 2020-07-25 16:08:02.959572 I  Starting process manager<br>
> 2020-07-25 16:08:02.959642 I  Starting IO manager (read)<br>
> 2020-07-25 16:08:02.961686 I  Starting IO manager (write)<br>
> 2020-07-25 16:08:02.961712 I  Starting process signal handler<br>
> 2020-07-25 16:08:03.813955 I  Grabber has capabilities: baseline manualconfig preferredmethod<br>
> 2020-07-25 16:08:04.464771 I  Grabber prefers method: allatonce<br>
> 2020-07-25 16:08:04.465395 I  XMLTV config file is: /home/steve/.mythtv/sdjson.xmltv<br>
> ^C2020-07-25 16:09:34.229722 E  Error in 577881:15: unexpected end of file<br>
> 2020-07-25 16:09:35.033778 I  No programs found in data.<br>
> 2020-07-25 16:09:35.038900 E  Failed to fetch some program info<br>
<br>
The intent of doing the setup as user mythtv is to end up with a single set of files<br>
in ~mythtv/.mythtv/*.xmltv and ~mythtv/.xmltv/* where the latter depends on the grabber<br>
selected.<br>
<br>
Doing links (hard or symbolic) defeats that and makes a difficult process even harder<br>
to setup and maintain.<br>
<br>
Here's the way to run mythfilldatabase from the command line:<br>
<br>
   sudo --login --user=mythtv mythfilldatabase<br>
<br>
When the backend runs it, it will just work because the files are in it's .mythtv<br>
and .xmltv directories.<br>
<br>
Run the above with the -v system command and you'll see the tv_grab_zz_sdjson command<br>
line that mythfilldatabase is executing. Run that from the command line to see if<br>
there are more clues to the problem. The file (--output /tmp/blah) won't be removed<br>
so you can look at it too. You can even add --debug to the tv_grab_zz_sdjson command<br>
but don't do that 1st as it's pretty verbose.<br>
<br>
I use tv_grab_zz_sdjson_sqlite so won't be of much more help.<br>
<br>
Here's a picture of the desired files. Again for the *SQLite version*:<br>
<br>
Example for distributions that store MythTV data relative to ~mythtv/.mythtv,<br>
<br>
/<br>
└── home<br>
     └── mythtv<br>
         ├── .mythtv<br>
         │   ├── OTA.xmltv # Which contains:<br>
         │   │       database=/home/mythtv/.xmltv/SchedulesDirect.DB<br>
         │   │       lineup=USA-OTA-90210<br>
         │   │       mythtv-categories=enabled<br>
         │   │<br>
         │   └── CABLE.xmltv # Which contains:<br>
         │           database=/home/mythtv/.xmltv/SchedulesDirect.DB<br>
         │           lineup=USA-IL90210-X<br>
         │           mythtv-categories=enabled<br>
         │<br>
         └── .xmltv<br>
             └── SchedulesDirect.DB<br>
<br>
Note that nothing is stored under the login user's .mythtv or .xmltv<br>
<br>
-- <br>
Bill<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div>