<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 21, 2022 at 1:09 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 Thu, 21 Jul 2022 09:15:34 -0400, you wrote:<br>
<br>
>On Wed, Jul 20, 2022 at 11:57 PM Bill Meek <<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>> wrote:<br>
><br>
>> On 7/19/22 21:02, Kevin Johnson wrote:<br>
>><br>
>> ...<br>
>><br>
>> > Jul 19 19:16:11 hemlock mythbackend: mythbackend[139181]: I CoreContext<br>
>> housekeeper.cpp:663 (RegisterTask) Registering HouseKeeperTask 'MythFillDB'.<br>
>> ><br>
>> > It is possible that mythfilldatabase does not start after the backend is<br>
>> shutdown then restarted. I know a few days ago I had a power outage.<br>
>> > I think that was July 16. Possibly.<br>
>> ><br>
>> > I could do a reboot and then see if the issue occurs again.<br>
>><br>
>> OK, the problem is the missing entry in housekeeping (I removed mine and<br>
>> caused the failure.)<br>
>><br>
>> In the following, each SQL command is all on one line, in case your email<br>
>> client<br>
>> folds them.<br>
>><br>
>> Do this:<br>
>><br>
>> SELECT * FROM housekeeping WHERE tag='MythFillDB';<br>
>><br>
>> If there are still no matching entries, then do this:<br>
>><br>
>> INSERT INTO housekeeping (tag,lastrun,lastsuccess)<br>
>> VALUES('MythFillDB',TIMESTAMP('2022-07-21 03:01:01'),TIMESTAMP('2022-07-21<br>
>> 03:01:01')) LIMIT 1;<br>
>><br>
>> If (somehow) an entry got added and the timestamps don't make any sends,<br>
>> then do this:<br>
>><br>
>> UPDATE housekeeping SET lastrun=TIMESTAMP('2022-07-21<br>
>> 03:02:01'),lastsuccess=TIMESTAMP('2022-07-21 03:02:01') WHERE<br>
>> tag='MythFillDB' LIMIT 1;<br>
>><br>
>> --<br>
>> Bill<br>
>><br>
>> Without knowing exactly what I am doing so I stopped here.<br>
><br>
>mysql> SELECT * FROM housekeeping WHERE tag='MythFillDB';<br>
>ERROR 1046 (3D000): No database selected<br>
><br>
>Did I miss a step?<br>
<br>
Yes, you need to select the database. On the mysql command line add<br>
the parameter "mythconverg", or at the "mysql>" prompt, run the<br>
command:<br>
<br>
use mythconverg;<br><br></blockquote><div> </div><div>mysql> INSERT INTO housekeeping (tag,lastrun,lastsuccess) VALUES('MythFillDB',TIMESTAMP('2022-07-21 03:01:01'),TIMESTAMP('2022-07-21 03:01:01')) LIMIT 1;</div><div><br></div>ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1</div><div class="gmail_quote"><br></div><div class="gmail_quote">This is sql version.</div><div class="gmail_quote">Ver 8.0.29-0ubuntu0.20.04.3 for Linux on x86_64 ((Ubuntu))<br><br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div></div>