<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 4:24 PM Bill Meek <<a href="mailto:keemllib@gmail.com">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/21/22 14:53, Kevin Johnson wrote:<br>
> <br>
> <br>
> On Thu, Jul 21, 2022 at 1:09 PM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a> <mailto:<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>>> wrote:<br>
> <br>
>     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> <mailto:<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>
> mysql> INSERT INTO housekeeping (tag,lastrun,lastsuccess) VALUES('MythFillDB',TIMESTAMP('2022-07-21 03:01:01'),TIMESTAMP('2022-07-21 03:01:01')) <br>
> LIMIT 1;<br>
> <br>
> 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 <br>
> use near 'LIMIT 1' at line 1<br>
> <br>
> This is sql version.<br>
> Ver 8.0.29-0ubuntu0.20.04.3 for Linux on x86_64 ((Ubuntu))<br>
<br>
<br>
Sorry, I tested it using MariaDB. The LIMIT keyword isn't valid in MySQL v8 (maybe even earlier).<br>
<br>
This works on my MySQL v8:<br>
<br>
INSERT INTO housekeeping (tag,lastrun,lastsuccess) VALUES('MythFillDB',TIMESTAMP('2022-07-21 03:01:01'),TIMESTAMP('2022-07-21 03:01:01'));<br>
<br>
<br>
I'm probably going to ask you for full logs if this doesn't help<br>
as there's more going on in the housekeeper code.<br><br></blockquote><div>Don't apologize.  What you and everyone else on this mailing list do for us is awesome. </div><div><br></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'));<br>Query OK, 1 row affected (0.03 sec)<br><br>mysql> SELECT * FROM housekeeping WHERE tag='MythFillDB';<br>+------------+----------+---------------------+---------------------+<br>| tag        | hostname | lastrun             | lastsuccess         |<br>+------------+----------+---------------------+---------------------+<br>| MythFillDB | NULL     | 2022-07-21 03:01:01 | 2022-07-21 03:01:01 |<br>+------------+----------+---------------------+---------------------+<br>1 row in set (0.00 sec)<br><br></div><div>This is where it's at now.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div>