i'm re-installing an instance of solr 8.10.1 on a dedicated box
it's launched,
ps ax | grep solr
85664 ? Sl 1:26 /usr/lib/jvm/java-18-openjdk/bin/java
-server -Xms512m -Xmx512m -XX:+UseG1GC -XX:+PerfDisableSharedMem
-XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=250 -XX:+AlwaysPreTouch
-XX:+ExplicitGCInvokesConcurrent
-Xlog:gc*:file=/var/log/solr/solr_gc.log:time,uptime:filecount=9,filesize=20M
-Dsolr.jetty.inetaccess.includes=10.1.1.50, 127.0.0.1,
-Dsolr.jetty.inetaccess.excludes= -Dsolr.log.level=DEBUG
-Dsolr.log.dir=/var/log/solr -Djetty.port=8984 -DSTOP.PORT=7984
-DSTOP.KEY=solrrocks -Dhost=solr.example.com -Duser.timezone=America/New_York
-XX:-OmitStackTraceInFastThrow -XX:OnOutOfMemoryError=/srv/solr/bin/oom_solr.sh
8984 /var/log/solr -Djetty.home=/srv/solr/server
-Dsolr.solr.home=/data/solr/data -Dsolr.data.home=
-Dsolr.install.dir=/srv/solr/solr
-Dsolr.default.confdir=/srv/solr/server/solr/configsets/_default/conf
-Dlog4j.configurationFile=/data/solr/log4j2.xml -Djetty.host=solr.example.com
-Xss256k -Dsolr.jetty.keystore=/srv/ssl/solr/solr.example.com.server.EC.pfx
-Dsolr.jetty.keystore.type=PKCS12
-Dsolr.jetty.truststore=/srv/ssl/solr/solr.example.com.server.EC.pfx
-Dsolr.jetty.truststore.type=PKCS12 -Dsolr.jetty.ssl.needClientAuth=false
-Dsolr.jetty.ssl.wantClientAuth=false
-Djavax.net.ssl.keyStore=/srv/ssl/solr/solr.example.com.server.EC.pfx
-Djavax.net.ssl.keyStoreType=PKCS12 -Dsolr.ssl.checkPeerName=false
-Djavax.net.ssl.trustStore=/srv/ssl/solr/solr.example.com.server.EC.pfx
-Djavax.net.ssl.trustStoreType=PKCS12 -Dsolr.jetty.https.port=8984
-Dsolr.httpclient.builder.factory=org.apache.solr.client.solrj.impl.PreemptiveBasicAuthClientBuilderFactory
-Dbasicauth=solradm:solrRocks -Dsolr.log.muteconsole -jar start.jar
--module=https --lib=/srv/solr/server/solr-webapp/webapp/WEB-INF/lib/*
--module=gzip
and responds, as usual/expected, in browser @
https://solr.example.com:8984/solr
where
host solr.example.com
solr.example.com has address 10.1.1.50
as well as at shell
sudo -u solr /srv/solr/bin/solr version
8.10.1
but, checking status, FAILs,
sudo -u solr /srv/solr/bin/solr status
Found 1 Solr nodes:
Solr process 85664 running on port 8984
ERROR: Failed to get system information from http://localhost:8984/solr due to:
java.lang.NullPointerException: Cannot invoke "String.contains(java.lang.CharSequence)"
because the return value of "org.apache.http.client.ClientProtocolException.getMessage()"
is null
it's looking for
http://localhost:8984/solr
which, @ browser, is non responsive, as in
cat /etc/default/solr.in.sh
...
SOLR_HOST="solr.example.com"
SOLR_OPTS="$SOLR_OPTS -Djetty.host=solr.example.com"
...
and checking @
https://solr.example.com:8984/solr/#/
...
-Dhost=solr.example.com
...
-Djetty.host=solr.example.com
-Djetty.port=8984
...
also, and more problematic, creating a new core fails
sudo -u solr /srv/solr/bin/solr create \
-c test \
-p 8984
WARNING: Using _default configset with data driven schema
functionality. NOT RECOMMENDED for production use.
To turn off: bin/solr config -c dovecot -p 8984
-action set-user-property -property update.autoCreateFields -value false
ERROR: Cannot invoke "String.contains(java.lang.CharSequence)" because
the return value of "org.apache.http.client.ClientProtocolException.getMessage()" is null
java.lang.NullPointerException: Cannot invoke
"String.contains(java.lang.CharSequence)" because the return value of
"org.apache.http.client.ClientProtocolException.getMessage()" is null
at
org.apache.solr.util.SolrCLI.getJson(SolrCLI.java:761)
at
org.apache.solr.util.SolrCLI.getJson(SolrCLI.java:673)
at
org.apache.solr.util.SolrCLI$CreateTool.runImpl(SolrCLI.java:2170)
at
org.apache.solr.util.SolrCLI$ToolBase.runTool(SolrCLI.java:196)
at org.apache.solr.util.SolrCLI.main(SolrCLI.java:304)
i suspect i need to tell the instance config to "get system information" NOT
from
http://localhost:8984/solr
but instead
https://solr.example.com:8984/solr
where's that set/configured ?
or is there a different cause at work here?