<div dir="ltr">Hi folks,<div><br></div><div>We're currently trying to turn up a new member whose IRR record is with LACNIC.</div><div><br></div><div>LACNIC's IRR, unlike most others, is not mirrored into RADB.  (It is also at <a href="http://irr.lacnic.net">irr.lacnic.net</a> rather than <a href="http://whois.lacnic.net">whois.lacnic.net</a>.)</div><div><br></div><div>I have an IRRDB Source called "LACNIC" configured and pointing to <a href="http://irr.lacnic.net">irr.lacnic.net</a>.  The member's IRRDB is set to "LACNIC" and the AS-SET is set to "AS52376:AS-RCN".</div><div><br></div><div>Attempting "Update Prefixes" yields this error:</div><div>500 | Server Error :: Error executing BGPQ3 with: /usr/bin/bgpq3 -S 'LACNIC' -l pl -j -m 24 'AS52376:AS-RCN'<br></div><div><br></div><div>Running this from the command line confirms that bgpq3 is generating the error:rwoolley@ixpm:/srv/ixpmanager/app/Utils$ /usr/bin/bgpq3 -S 'LACNIC' -l pl -j -m 24 'AS52376:AS-RCN'<br>ERROR:Invalid source(s) 'LACNIC': F source(s) unavailable<br></div><div><br></div><div>After digging into the documentation, it appears that BGPQ3 uses RADB unless another host is specified with -h, and -S just causes the query to RADB to be limited to records imported from LACNIC (of which there are none).</div><div><br></div><div>Usage: bgpq3 [-h host] [-S sources] [-P|E|G <num>|f <num>] [-2346AbDJjXd] [-R len] <OBJECTS>...<br></div><div> [...]<br> -h host   : host running IRRD software (<a href="http://whois.radb.net">whois.radb.net</a> by default)<br> [...]<br> -S sources: use only specified sources (default: RADB,RIPE,APNIC)<br></div><div><br></div><div></div><div>In looking at the code at app/Utils/Bgpq3.php, it appears that a variable called $whois is used to set an alternate host for bgpq3:<br></div><div>        if( $this->whois )<br>            $cmd = '-h ' . escapeshellarg( $this->whois ) . ' ' . $cmd;<br></div><div><br></div><div>I am not familiar enough with the code to follow this back to the source, but I would expect that $whois would be set from the hostname configured under IRRDB Sources, thus causing the command line to include -h <a href="http://irr.lacnic.net">irr.lacnic.net</a>.  Unfortunately, that is not happening.</div><div><br></div><div>Is there another place that this needs to be set?</div><div><br></div><div>For now, I've worked around this by adding to Bgpq3.php:</div><div>        if ($sources = "LACNIC") {<br>                $this->whois = "<a href="http://irr.lacnic.net">irr.lacnic.net</a>";<br>        }<br><br></div><div>And that causes the import to work as expected.</div><div><br></div><div>This is v5.7.0 running on Ubuntu 20.04.1 LTS.</div><div><br></div><div>Thanks,</div><div>Ryan Woolley</div><div>Community IX (FL-IX and CIX-ATL)</div><div><br></div></div>