blazegraph / database

Blazegraph High Performance Graph Database
GNU General Public License v2.0
873 stars 170 forks source link

serviceURL in log does not match actual URL #134

Open knarrff opened 4 years ago

knarrff commented 4 years ago

I configured blazegraph to only listen to the localhost interface. This itself works, but in the logging output I still see:

buildVersion=2.1.1 gitCommit=90d9e8232969a8afdc830e856643e5416bb50d0a ... serviceURL: http://172.17.44.1:9999

... with 172.17.44.1 being my "public" IP I did not want to blazegraph to listen to and which it also is not listening to (but only 127.0.0.1). Since nothing is actually listening to http://172.17.44.1:9999, this output is misleading (in my case misleading me to believe that my efforts of telling blazegraph to only listen on local interfaces would have not been successful yet).

beebs-systap commented 4 years ago

@knarrff Did you configure the localhost listener with a custom Jetty configuration or another method?

knarrff commented 4 years ago

I define JETTY_HOST=localhost in blazegraph/etc/blazegraph/blazegraph .

I also set

<Set name="host"><SystemProperty name="jetty.host" default="127.0.0.1" /></Set>

in blazegraph/etc/blazegraph/jetty.xml .

I do point blazegraph to it within blazegraph/etc/blazegraph/blazegraph:

BLZG_PROJ=${HOME}/projects/blazegraph/
BLZG_CONF=${BLZG_PROJ}/etc/blazegraph
JETTY_XML="${BLZG_CONF}"/jetty.xml

I am not sure which does the trick in the end, though. I do start blazegraph using "blazegraph/usr/bin/blazegraph start"