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
480

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.
 
geffchang
Active Contributor
0 Kudos
Have you tried deleting existing indexes from Solr and running a full indexing via Backoffice?
ChrisAr
Discoverer
0 Kudos

This has been a problem for some time. Not just since 2211.27 or solr version 9.5.0.
After much trial and error, my colleagues and I decided to install a browser directly in the WSL in order to access solr directly from there.

ChrisAr
Discoverer
0 Kudos

.

View Entire Topic
Harish_Vatsa
Active Contributor

Dear @superpalmi ,

Can you please check if the appropriate permissions are configured to allow access to Solr. Additionally, please verify that the security.json file in Solr is correctly set up to permit access to the admin page.

Thanks,

superpalmi
Explorer
0 Kudos
Hi, how do I verify the appropriate permissions? My security.json is almost identical to security.json.example inside core-customize\hybris\bin\modules\search-and-navigation\solrserver\resources\solr\9.5\server\server\solr