cancel
Showing results for 
Search instead for 
Did you mean: 

solr admin page connection refused after upgrading to 9.5.0 and sap cx to 2211.27

superpalmi
Explorer
1,351

Hi,

I recently upgraded my Local Sap Commerce Cloud version from 2211.21 to 2211.27 and consequently had to upgrade my local solr configuration to 9.5.0 following this kba https://me.sap.com/notes/0003424311 and upgraded the configurations in this page and this page.  Now indexes and facets seems work correctly but i still cannot access to https://localhost:8983/solr/#/login anymore, as Chrome returns me ERR_CONNECTION_CLOSED error (I also tried with other browsers) without opening the page. It seems like my local instance is not running but when I try to curl my login form  curl http://localhost:8983/solr/ I get an html page stating this:

SolrCore Initialization Failures
  • core: error
Please check your logs for more information
Permission failure
Your user does not have the necessary role(s) to perform this action.
This is my output for
ps aux | grep solr
user 3063323 4.1 8.7 5496772 703256 pts/6 Sl 16:01 0:35 /home/user/.sdkman/candidates/java/current/bin/java -server -Xms512m -Xmx512m -XX:+UseG1GC -XX:+PerfDisableSharedMem -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=250 -XX:+AlwaysPreTouch -Xlog:gc*:file=/home/user/project-sap-commerce/core-customize/hybris/log/solr/instances/default/solr_gc.log:time,uptime:filecount=9,filesize=20M -Dsolr.jetty.inetaccess.includes= -Dsolr.jetty.inetaccess.excludes= -Dsolr.log.dir=/home/user/project-sap-commerce/core-customize/hybris/log/solr/instances/default -Djetty.port=8983 -DSTOP.PORT=7983 -DSTOP.KEY=solrrocks -Dhost=localhost -Duser.timezone=UTC -XX:-OmitStackTraceInFastThrow -XX:+CrashOnOutOfMemoryError -XX:ErrorFile=/home/user/project-sap-commerce/core-customize/hybris/log/solr/instances/default/jvm_crash_%p.log -Djetty.home=/home/user/project-sap-commerce/core-customize/hybris/bin/modules/search-and-navigation/solrserver/resources/solr/9.5/server/server -Dsolr.solr.home=/home/user/project-sap-commerce/core-customize/hybris/config/solr/instances/default -Dsolr.install.dir=/home/user/project-sap-commerce/core-customize/hybris/bin/modules/search-and-navigation/solrserver/resources/solr/9.5/server -Dsolr.install.symDir=/home/user/project-sap-commerce/core-customize/hybris/bin/modules/search-and-navigation/solrserver/resources/solr/9.5/server -Dsolr.default.confdir=/home/user/project-sap-commerce/core-customize/hybris/bin/modules/search-and-navigation/solrserver/resources/solr/9.5/server/server/solr/configsets/_default/conf -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager -Dlog4j.configurationFile=/home/user/project-sap-commerce/core-customize/hybris/config/solr/instances/default/log4j2.xml -Xss256k -Dsolr.data.home=/home/user/project-sap-commerce/core-customize/hybris/data/solr/instances/default -Dsolr.httpclient.builder.factory=org.apache.solr.client.solrj.impl.PreemptiveBasicAuthClientBuilderFactory -Dbasicauth=solradmin:admin123 -XX:CompileCommand=exclude,com.github.benmanes.caffeine.cache.BoundedLocalCache::put -DdisableAdminUI=false -DzkACLProvider=org.apache.solr.common.cloud.DefaultZkACLProvider -DzkCredentialsProvider=org.apache.solr.common.cloud.DefaultZkCredentialsProvider -DzkCredentialsInjector=org.apache.solr.common.cloud.DefaultZkCredentialsInjector -Dsolr.log.muteconsole -jar start.jar --module=http --module=gzip
user 3081580 0.0 0.0 4028 2124 pts/6 S+ 16:15 0:00 grep --color=auto solr
 
Maybe i mismatched the exact installation directory or something about security.json? Do you know what is the problem? Please note that I'm using windows 11 with WSL.
Thank you for your time.
 
View Entire Topic
adiputera
Active Participant

This happens because solr only allows access from 127.0.0.1 (its own machine), where your case, you installed it on WSL and tried to access it from Windows, so it counts as remote access.

to resolve this, I usually just edit the bin/solr file (for Linux), and add these lines on top:

SOLR_HOST=0.0.0.0
SOLR_JETTY_HOST=0.0.0.0

 After that, you just need to restart the solr and it will be able to be accessed from Windows.

ChrisAr
Explorer

Thank you. That worked for me.

In my case, I had to edit the file under the following path:

sap-commerce\core-customize\hybris\bin\modules\search-and-navigation\solrserver\resources\solr\9.5\server\bin\solr.in.sh
superpalmi
Explorer
0 Kudos
this worked for me too, thank you!
shrikant_nikam
Participant
0 Kudos
We also faced this issue exclusively with windows machine.
shrikant_nikam
Participant
0 Kudos
We also faced this issue exclusively with windows machine. We were accessing the ubuntu remote dev box from windows which was blocking the solr service. Got Fixed by above changes.