database icon indicating copy to clipboard operation
database copied to clipboard

serviceURL in log does not match actual URL

Open knarrff opened this issue 4 years ago • 2 comments

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).

knarrff avatar Jul 11 '19 12:07 knarrff

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

beebs-systap avatar Jul 11 '19 15:07 beebs-systap

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"

knarrff avatar Jul 12 '19 07:07 knarrff