<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 20, 2022 at 9:46 PM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</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 Sun, 20 Feb 2022 12:17:42 -0500, you wrote:<br>
<br>
>Hello,<br>
>I'm having what seems to be a pretty common problem - I can run my xmltv<br>
>grabber from the command line as user mythtv, but it won't run<br>
>automatically.<br>
><br>
>I tried the idea suggested in the wiki, i.e., copying the .xmltv files as<br>
>configured into /home/mythtv/.mythtv and making sure the permissions are<br>
>read and writable by user mythtv. That seems to enable "su mythtv -c<br>
>mythfilldatabase" to work just fine, so I'm not sure why the backend can't<br>
>also work.<br>
><br>
>I ran "mythbackend --setverbose system" to enhance the logging, then<br>
>changed the mythfilldatabase run time so that it would (i hoped) show me<br>
>something, but the logs don't mention anything (neither the<br>
>mythfilldatabase nor the mythbackend logs).<br>
><br>
>What else should I try? Also, is there any way to direct the backend to try<br>
>more than once every 24 hours, so I can get better feedback for any<br>
>troubleshooting?<br>
>Thanks.<br>
<br>
There are settings for mythfilldatabase:<br>
<br>
MariaDB [mythconverg]> select * from settings where value like<br>
'%mythfill%';<br>
+---------------------------------+----------------------+----------+<br>
| value                           | data                 | hostname |<br>
+---------------------------------+----------------------+----------+<br>
| mythfilldatabaseLastRunStart    | 2022-02-21T02:11:31Z | NULL     |<br>
| MythFillSuggestedRunTime        | 2022-02-22T02:11:31Z | NULL     |<br>
| MythFillGrabberSuggestsTime     | 1                    | NULL     |<br>
| MythFillEnabled                 | 0                    | NULL     |<br>
| MythFillDatabasePath            | mythfilldatabase     | NULL     |<br>
| MythFillDatabaseArgs            | --only-update-guide  | NULL     |<br>
| MythFillDatabaseLog             | /var/log/mythtv      | NULL     |<br>
| MythFillPeriod                  | 1                    | NULL     |<br>
| MythFillMinHour                 |                      | NULL     |<br>
| MythFillMaxHour                 | 23                   | NULL     |<br>
| MythFillFixProgramIDsHasRunOnce | 1                    | mypvr    |<br>
| mythfilldatabaseLastRunEnd      | 2022-02-21T02:11:33Z | NULL     |<br>
| mythfilldatabaseLastRunStatus   | Successful.          | NULL     |<br>
+---------------------------------+----------------------+----------+<br>
13 rows in set (0.002 sec)<br>
<br>
I have MythFillEnabled set to 0 to disable it as I run<br>
mythfilldatabase externally from a script.  You can find the settings<br>
at:<br>
<br>
mythtv-setup > 1. General > Programme Schedule Downloading Options<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></blockquote><div><br></div><div><br></div><div>Hi all,</div><div><br></div><div>Not a linux expert here, by any means, but the 'su mythtv' and the command works, may not be an adequate test.</div><div><br></div><div>Try using 'su -l mythtv' and then your mythfilldatabase command.   The -l makes the rest of the command take on the same environment as the target user, not the environment you currently have the command working for....   Sometimes testing it with the -l can reveal the same problem mythtv is having when trying to run it.</div><div><br></div><div>good luck,.</div><div><br></div><div><br></div><div> </div></div></div>