<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi all,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">The previous problem was resolved by a bad template file (which got corrupted on the FS by a person editing it and changing the permissions)...</p>
<p style="margin-top:0;margin-bottom:0">IXP manager works fine now for a week...</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">The only last and not so clear thing is that which is the best way to run the mrtg config script - which cron entry as root maybe ?</p>
<p style="margin-top:0;margin-bottom:0">And any experience if after you regenerate the mrtg.cfg - do we need a mrtg restart since the script from the IXP manager runs MRTG as daemon ??</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">for example our cron file looks like this:</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>/etc/cron.d/ixpmanager</div>
<div>0 2   * * *   www-data        /srv/ixpmanager/artisan grapher:upload-stats-to-<span style="font-size: 12pt;">db</span></div>
<div>*/15  * * * * /srv/ixpmanager/gen-mrtg-conf</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks...</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>-- </div>
<div>V.B</div>
<div>FCC</div>
<div><br>
</div>
<div><br>
</div>
<br>
<p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> ixpmanager <ixpmanager-bounces@inex.ie> on behalf of Vladislav Bidikov <vladislav.bidikov@finki.ukim.mk><br>
<b>Sent:</b> Monday, August 6, 2018 6:02:46 PM<br>
<b>To:</b> INEX IXP Manager Users Mailing List<br>
<b>Subject:</b> Re: [ixpmanager] New install step by step</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0; margin-bottom:0">Hi,</p>
<p style="margin-top:0; margin-bottom:0">Just to further update on the matter - on ~ 20.07 the API configuration was working perfectly fine...</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">The result was a good Bird config file... nothing was done in the period between then and today (vacation time)</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">Here is the config of RS1:</p>
<p style="margin-top:0; margin-bottom:0"><a href="http://prntscr.com/kfddq8" class="x_OWAAutoLink">http://prntscr.com/kfddq8</a><br>
</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">The Laravel error says something about api missing in the router and creates this:</p>
<p style="margin-top:0; margin-bottom:0"></p>
<div>HTTP_USER_AGENT: curl/7.38.0</div>
<div>REMOTE_PORT: 40402</div>
<div>REQUEST_METHOD: GET</div>
<div>REQUEST_URI: /api/v4/router/gen-config/rs1-v4-ixpmk</div>
<div><br>
</div>
<div><br>
</div>
<div>2018-08-06T15:40:48+00:00 DEBUG (7) [194.149.136.160]: Logger instantiated</div>
<div>2018-08-06T15:40:48+00:00 DEBUG (7) [194.149.136.160]:</div>
<div><br>
</div>
<div>2018-08-06T15:40:48+00:00 DEBUG (7) [194.149.136.160]: ErrorController::errorAction()</div>
<div>2018-08-06T15:40:48+00:00 DEBUG (7) [194.149.136.160]:</div>
<div><br>
</div>
<div>************************************************************************</div>
<div>****************************** EXCEPTIONS *******************************</div>
<div>************************************************************************</div>
<div><br>
</div>
<div>--------------------------- EXCEPTION --------------------------</div>
<div><br>
</div>
<div>Message: Invalid controller specified (api)</div>
<div>Line: 248</div>
<div>File: /srv/ixpmanager/vendor/zendframework/zendframework1/library/Zend/Controller/Dispatcher/Standard.php</div>
<div><br>
</div>
<div>Trace:</div>
<div><br>
</div>
<div>#0 /srv/ixpmanager/vendor/zendframework/zendframework1/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))</div>
<div>#1 /srv/ixpmanager/vendor/zendframework/zendframework1/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()</div>
<div>#2 /srv/ixpmanager/vendor/zendframework/zendframework1/library/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()</div>
<div>#3 /srv/ixpmanager/app/Exceptions/Handler.php(62): Zend_Application->run()</div>
<div>#4 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(83): IXP\Exceptions\Handler->render(Object(Illuminate\Http\Request), Object(Symfony\Component\HttpKernel\Exception\NotFoundHttpException))</div>
<div>#5 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): Illuminate\Routing\Pipeline->handleException(Object(Illuminate\Http\Request), Object(Symfony\Component\HttpKernel\Exception\NotFoundHttpException))</div>
<div>#6 /srv/ixpmanager/vendor/fideloper/proxy/src/TrustProxies.php(56): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))</div>
<div>#7 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Fideloper\Proxy\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))</div>
<div>#8 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))</div>
<div>#9 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))</div>
<div>#10 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))</div>
<div>#11 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))</div>
<div>#12 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))</div>
<div>#13 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))</div>
<div>#14 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))</div>
<div>#15 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))</div>
<div>#16 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))</div>
<div>#17 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))</div>
<div>#18 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))</div>
<div>#19 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))</div>
<div>#20 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))</div>
<div>#21 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))</div>
<div>#22 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))</div>
<div>#23 /srv/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))</div>
<div>#24 /srv/ixpmanager/public/index.php(85): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))</div>
<div>#25 {main}</div>
<div><br>
</div>
<br>
<p></p>
<p style="margin-top:0; margin-bottom:0">If needed i can provide more detailed logs - but i'm still completely clueless...</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">Please advice....</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">Best regards,</p>
<p style="margin-top:0; margin-bottom:0">-- </p>
<p style="margin-top:0; margin-bottom:0">V.B</p>
<p style="margin-top:0; margin-bottom:0">FCC</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> ixpmanager <ixpmanager-bounces@inex.ie> on behalf of Vladislav Bidikov <vladislav.bidikov@finki.ukim.mk><br>
<b>Sent:</b> Monday, August 6, 2018 3:05:39 PM<br>
<b>To:</b> Barry O'Donovan<br>
<b>Cc:</b> INEX IXP Manager Users Mailing List<br>
<b>Subject:</b> Re: [ixpmanager] New install step by step</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0; margin-bottom:0">Hi team,</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">Today we where going to connect the first "customer" and something strange is happening with the automatic script for generation of the config:</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">In the script we have the url:</p>
<p style="margin-top:0; margin-bottom:0"><span>URL="http://194.149.136.158/api/v4/router/gen-config"</span><br>
</p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span>And today we see a 404 error...</span></p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0">Runing:</p>
<p style="margin-top:0; margin-bottom:0"><span>URL="http://194.149.136.158/api/v4/test"</span><br>
</p>
<p style="margin-top:0; margin-bottom:0"><span>Says we are ok (API test fine, authenticated OK)</span></p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span>We did not any change on the IXP manager instance... any idea where to look into this ?</span></p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span>Best regards,</span></p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span>-- </span></p>
<p style="margin-top:0; margin-bottom:0"><span>V.B</span></p>
<p style="margin-top:0; margin-bottom:0"><span>FCC</span></p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Barry O'Donovan <barry.odonovan@inex.ie><br>
<b>Sent:</b> Friday, July 27, 2018 10:44:30 AM<br>
<b>To:</b> Vladislav Bidikov<br>
<b>Cc:</b> INEX IXP Manager Users Mailing List<br>
<b>Subject:</b> Re: [ixpmanager] New install step by step</font>
<div> </div>
</div>
<div class="x_x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_x_PlainText"><br>
<br>
Vladislav Bidikov wrote on 25/07/2018 21:38:<br>
> Sorry - i mixed 2 different slide decks (someone needs to grab a coffee <br>
> ) - and this old one (which is not the one i thought on the IXP manager <br>
> site) is definitely one that can help<br>
<br>
Cool.<br>
<br>
> That slide deck - solved the Cisco people...<br>
> <br>
> I have solved the Mikrotik ones... and i have a BIRD to try for the bird <br>
> one ðŸ˜Š<br>
<br>
Bird have some examples here:<br>
<br>
<a href="https://gitlab.labs.nic.cz/labs/bird/wikis/Examples">https://gitlab.labs.nic.cz/labs/bird/wikis/Examples</a><br>
<br>
While the slide deck I provided has Cisco examples, a network engineer <br>
familiar with Juniper should be able to use the examples to program a <br>
JunOS BGP config / any other device.<br>
<br>
> At the end of the day - what is the worse that could happen if we <br>
> miss-configure a router - we will not brake the internet just the ISP we <br>
> experiment with .... :)<br>
<br>
Any possibly any bilateral peers and possibly their upstreams. Big <br>
internet outages are usually caused by human's fat-fingering a BGP <br>
configuration.<br>
<br>
If you're using the IXP Manager generated route server configuration, <br>
then that'll ensure nothing bad happens with those sessions.<br>
<br>
  - Barry<br>
<br>
<br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>