<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 2023-06-19 05:34, Barry O'Donovan
(INEX) via ixpmanager wrote:<br>
</div>
<blockquote type="cite"
cite="mid:781a1449-8f11-7d2b-720a-abeb7dc63666@inex.ie">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<br>
Just so I'm clear:<br>
<br>
- works when run manually on the command line for all members?<br>
- does not work when executed via artisan scheduler?<br>
<br>
How do you know it's not working? You've said you have no logs,
etc. so just trying to understand what "not working" looks like.<br>
</blockquote>
<p>Sorry, my bad on "not working". I'm normally better than that.<br>
</p>
<p><br>
</p>
<p>Steps to reproduce:</p>
<p>1. Some customer adds a route object. In our case, this was
generally happening because they were missing one, an announcement
was being filtered, and I was sending them an email about it.</p>
<p>2. Wait 6+ hours.<br>
</p>
<p><br>
</p>
<p>Expected results:</p>
<p>The prefix shows up in IXP Manager's IRRDB listing for that
participant.</p>
<p><br>
</p>
<p>Actual result:</p>
<p>Even waiting much longer than 6 hours (some were over a day), it
never shows up.</p>
<p><br>
</p>
<p>However, if I manually click "Update Prefixes", it will show up
(and be noted as a new prefix). Likewise it works when run from
the CLI:<br>
</p>
<p><font face="monospace">cd /srv/ixpmanager<br>
sudo php artisan irrdb:update-prefix-db $ASN<br>
# or<br>
sudo php artisan irrdb:update-prefix-db</font></p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:781a1449-8f11-7d2b-720a-abeb7dc63666@inex.ie">
You can lose the ' >/dev/null 2>&1' from the the artisan
cron and see what messages crop up?<br>
</blockquote>
<p>I didn't know where that was coming from. Having slightly more
time now, I dug into that. It's inside laravel. I found where it
was coming from and how I might change that. It ultimately lead me
to the sendOutputTo() function, which is documented here:</p>
<p><a class="moz-txt-link-freetext" href="https://laravel.com/docs/10.x/scheduling#task-output">https://laravel.com/docs/10.x/scheduling#task-output</a></p>
<p>I put that in place. I removed the /6 and changed the minute so
it would run right away. I got log output, which looked as I would
expect.</p>
<p>So, it's working now, despite multiple failures over many days. I
guess I'll watch the logs.<br>
</p>
<pre class="moz-signature" cols="72">--
Richard</pre>
</body>
</html>