cancel
Showing results for 
Search instead for 
Did you mean: 

SOLR Error - Failed to Initialize keystore Caused by Can't find resource 'ssl.repo.client.keystore'

maqsood
Confirmed Champ
Confirmed Champ

Hi Community,

I've issues with my search/solr6 in ACS7.1 Enterprise & ASS 2.0 setup. I am unable to search in Alfresco Share, though my ASS is running fine, below error I got in solr.log & no indexes has been generated. I've not yet tried if its working from APIs.

I have followed this post to generate keystore using ssl-tool/run.sh and placed the files at location mentioned in the error, still having the same error. Have also tried full re-index option but no success.

What is missing here? Pls can someone help me here. I am stuck with this issue from last 2 days.

Error:

2021-11-26 22:22:52.259 ERROR (searcherExecutor-8-thread-1-processing-x:alfresco) [ x:alfresco] o.a.s.c.SolrCore nullSmiley Surprisedrg.alfresco.error.AlfrescoRuntimeException: 10260003 Failed to initialize keystore:
Location: ssl.repo.client.keystore
Provider:
Type: JCEKS
at org.alfresco.encryption.AlfrescoKeyStoreImpl.loadKeyStore(AlfrescoKeyStoreImpl.java:579)
at org.alfresco.encryption.AlfrescoKeyStoreImpl.safeInit(AlfrescoKeyStoreImpl.java:546)
at org.alfresco.encryption.AlfrescoKeyStoreImpl.<init>(AlfrescoKeyStoreImpl.java:110)
at org.alfresco.httpclient.HttpClientFactory.init(HttpClientFactory.java:171)
at org.alfresco.httpclient.HttpClientFactory.<init>(HttpClientFactory.java:151)
at org.alfresco.httpclient.HttpClientFactory.<init>(HttpClientFactory.java:163)
at org.alfresco.solr.client.SOLRAPIClientFactory.getRepoClient(SOLRAPIClientFactory.java:205)
at org.alfresco.solr.client.SOLRAPIClientFactory.getSOLRAPIClient(SOLRAPIClientFactory.java:185)
at org.alfresco.solr.lifecycle.SolrCoreLoadListener.newSearcher(SolrCoreLoadListener.java:125)
at org.apache.solr.core.SolrCore.lambda$getSearcher$15(SolrCore.java:2249)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 10260000 Unable to load key store: ssl.repo.client.keystore
at org.alfresco.encryption.AlfrescoKeyStoreImpl.loadKeyStore(AlfrescoKeyStoreImpl.java:522)
at org.alfresco.encryption.AlfrescoKeyStoreImpl.loadKeyStore(AlfrescoKeyStoreImpl.java:570)
... 14 more
Caused by: java.io.FileNotFoundException: Caused by Can't find resource 'ssl.repo.client.keystore' in classpath or '/usr/local/alfresco-search-services/solrhome/alfresco'
at org.alfresco.solr.SolrKeyResourceLoader.getKeyStore(SolrKeyResourceLoader.java:63)
at org.alfresco.encryption.AlfrescoKeyStoreImpl.getKeyStoreStream(AlfrescoKeyStoreImpl.java:386)
at org.alfresco.encryption.AlfrescoKeyStoreImpl.loadKeyStore(AlfrescoKeyStoreImpl.java:498)
... 15 more

Regards,

Maqsood

1 ACCEPTED ANSWER

You need to apply configuration to SOLR and to Alfresco Repository.

It looks like your Alfresco Repository configuration is not the right one.

You have a number of resources that may help you to understand required steps:

Hyland Developer Evangelist

View answer in original post

6 REPLIES 6

You need to apply configuration to SOLR and to Alfresco Repository.

It looks like your Alfresco Repository configuration is not the right one.

You have a number of resources that may help you to understand required steps:

Hyland Developer Evangelist

Thanks for sharing the links.

I followed the first guide for configuring certificates for Alfresco & SOLR. when started the SOLR application, I could able to access SOLR pages through browser and see the below errors logged in solr.log file.

Basically, it is unable to create cores for alfresco & archive for data migrated from old instance. I could able to login in Alfresco Share & could see the content & metadata but couldn't able to search on it.

I tried full reindex  by emptying directories alfresco/index & archive/index & alfrescoModels folders.

Any sugesstion or pointer would be a great help!

Error trace from solr.log:

2021-12-07 08:58:14.542 INFO (main) [ ] o.e.j.s.Server jetty-9.3.29.v20201019, build timestamp: 2020-10-19T18:29:13Z, git hash: dc45408dd3f9543c51643ececa5dca76ca08d219
2021-12-07 08:58:15.335 INFO (main) [ ] o.a.s.s.SolrDispatchFilter ___ _ Welcome to Apache Solrâ„¢ version 6.6.5-patched.6 b7de23b72dd7fa3aceb22202f4b27683546a7139 - aborroy - 2021-06-17 16:20:23
2021-12-07 08:58:15.336 INFO (main) [ ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _ Starting in standalone mode on port 8983
2021-12-07 08:58:15.336 INFO (main) [ ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_| Install dir: /usr/local/alfresco-search-services/solr
2021-12-07 08:58:15.347 INFO (main) [ ] o.a.s.s.SolrDispatchFilter |___/\___/_|_| Start time: 2021-12-07T08:58:15.337983Z
2021-12-07 08:58:16.537 WARN (coreLoadExecutor-6-thread-2) [ x:archive] o.a.s.c.Config XML parse warning in "solrres:/solrconfig.xml", line 1959, column 88: Include operation failed, reverting to fallback. Resource error reading file as XML (href='solrconfig_insight.xml'). Reason: Can't find resource 'solrconfig_insight.xml' in classpath or '/usr/local/alfresco-search-services/solrhome/archive'
2021-12-07 08:58:16.578 INFO (main) [ ] o.e.j.s.Server Started @2931ms
2021-12-07 08:58:16.601 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.c.Config XML parse warning in "solrres:/solrconfig.xml", line 1959, column 88: Include operation failed, reverting to fallback. Resource error reading file as XML (href='solrconfig_insight.xml'). Reason: Can't find resource 'solrconfig_insight.xml' in classpath or '/usr/local/alfresco-search-services/solrhome/alfresco'
2021-12-07 08:58:16.746 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.c.Config You should not use LATEST as luceneMatchVersion property: if you use this setting, and then Solr upgrades to a newer release of Lucene, sizable changes may happen. If precise back compatibility is important then you should instead explicitly specify an actual Lucene version.
2021-12-07 08:58:16.821 WARN (coreLoadExecutor-6-thread-2) [ x:archive] o.a.s.c.Config Beginning with Solr 5.5, <mergePolicy> is deprecated, use <mergePolicyFactory> instead.
2021-12-07 08:58:16.839 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.c.Config Beginning with Solr 5.5, <mergePolicy> is deprecated, use <mergePolicyFactory> instead.
2021-12-07 08:58:17.970 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.c.SolrResourceLoader Solr loaded a deprecated plugin/analysis class [org.apache.solr.analysis.WordDelimiterFilterFactory]. Please consult documentation how to replace it accordingly.
2021-12-07 08:58:17.991 WARN (coreLoadExecutor-6-thread-2) [ x:archive] o.a.s.c.SolrResourceLoader Solr loaded a deprecated plugin/analysis class [solr.SynonymFilterFactory]. Please consult documentation how to replace it accordingly.
2021-12-07 08:58:18.520 WARN (coreLoadExecutor-6-thread-2) [ x:archive] o.a.s.s.IndexSchema Field content@s____@* is not multivalued and destination for multiple copyFields (8)
2021-12-07 08:58:18.520 WARN (coreLoadExecutor-6-thread-2) [ x:archive] o.a.s.s.IndexSchema Field content@s__lt@* is not multivalued and destination for multiple copyFields (8)
2021-12-07 08:58:18.521 WARN (coreLoadExecutor-6-thread-2) [ x:archive] o.a.s.s.IndexSchema Field text@s__sort@* is not multivalued and destination for multiple copyFields (8)
2021-12-07 08:58:18.521 WARN (coreLoadExecutor-6-thread-2) [ x:archive] o.a.s.s.IndexSchema Field text@s____@* is not multivalued and destination for multiple copyFields (16)
2021-12-07 08:58:18.521 WARN (coreLoadExecutor-6-thread-2) [ x:archive] o.a.s.s.IndexSchema Field content@s__l_@* is not multivalued and destination for multiple copyFields (8)
2021-12-07 08:58:18.521 WARN (coreLoadExecutor-6-thread-2) [ x:archive] o.a.s.s.IndexSchema Field text@s__l_@* is not multivalued and destination for multiple copyFields (16)
2021-12-07 08:58:18.521 WARN (coreLoadExecutor-6-thread-2) [ x:archive] o.a.s.s.IndexSchema Field text@s__lt@* is not multivalued and destination for multiple copyFields (16)
2021-12-07 08:58:18.521 WARN (coreLoadExecutor-6-thread-2) [ x:archive] o.a.s.s.IndexSchema Field text@s___t@* is not multivalued and destination for multiple copyFields (8)
2021-12-07 08:58:18.521 WARN (coreLoadExecutor-6-thread-2) [ x:archive] o.a.s.s.IndexSchema Field content@s___t@* is not multivalued and destination for multiple copyFields (4)
2021-12-07 08:58:18.536 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.s.IndexSchema Field content@s____@* is not multivalued and destination for multiple copyFields (8)
2021-12-07 08:58:18.538 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.s.IndexSchema Field content@s__lt@* is not multivalued and destination for multiple copyFields (8)
2021-12-07 08:58:18.538 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.s.IndexSchema Field text@s__sort@* is not multivalued and destination for multiple copyFields (8)
2021-12-07 08:58:18.538 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.s.IndexSchema Field text@s____@* is not multivalued and destination for multiple copyFields (16)
2021-12-07 08:58:18.538 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.s.IndexSchema Field content@s__l_@* is not multivalued and destination for multiple copyFields (8)
2021-12-07 08:58:18.538 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.s.IndexSchema Field text@s__l_@* is not multivalued and destination for multiple copyFields (16)
2021-12-07 08:58:18.538 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.s.IndexSchema Field text@s__lt@* is not multivalued and destination for multiple copyFields (16)
2021-12-07 08:58:18.538 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.s.IndexSchema Field text@s___t@* is not multivalued and destination for multiple copyFields (8)
2021-12-07 08:58:18.538 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.s.IndexSchema Field content@s___t@* is not multivalued and destination for multiple copyFields (4)

2021-12-07 08:58:19.640 ERROR (coreContainerWorkExecutor-2-thread-1) [ ] o.a.s.c.CoreContainer Error waiting for SolrCore to be created
java.util.concurrent.ExecutionException: org.apache.solr.common.SolrException: Unable to create core [alfresco]
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.apache.solr.core.CoreContainer.lambda$load$6(CoreContainer.java:594)
at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.apache.solr.common.SolrException: Unable to create core [alfresco]
at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:966)
at org.apache.solr.core.CoreContainer.lambda$load$5(CoreContainer.java:565)
at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:197)
... 5 more
Caused by: org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:977)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:830)
at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:950)
... 7 more
Caused by: org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2069)
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:2189)
at org.apache.solr.core.SolrCore.initSearcher(SolrCore.java:1071)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:949)
... 9 more
Caused by: org.apache.lucene.index.IndexNotFoundException: no segments* file found in LockValidatingDirectoryWrapper(NRTCachingDirectory(MMapDirectory@/usr/local/alfresco-search-services/solrhome/alfresco/index lockFactory=org.apache.lucene.store.NativeFSLockFactory@379b58ae; maxCacheMB=48.0 maxMergeSizeMB=4.0)): files: [write.lock]
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:925)
at org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:118)
at org.apache.solr.update.SolrIndexWriter.create(SolrIndexWriter.java:93)
at org.apache.solr.update.DefaultSolrCoreState.createMainIndexWriter(DefaultSolrCoreState.java:257)
at org.apache.solr.update.DefaultSolrCoreState.getIndexWriter(DefaultSolrCoreState.java:131)
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2030)
... 12 more
2021-12-07 08:58:19.643 ERROR (coreContainerWorkExecutor-2-thread-1) [ ] o.a.s.c.CoreContainer Error waiting for SolrCore to be created
java.util.concurrent.ExecutionException: org.apache.solr.common.SolrException: Unable to create core [archive]
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.apache.solr.core.CoreContainer.lambda$load$6(CoreContainer.java:594)
at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.apache.solr.common.SolrException: Unable to create core [archive]
at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:966)
at org.apache.solr.core.CoreContainer.lambda$load$5(CoreContainer.java:565)
at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:197)
... 5 more
Caused by: org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:977)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:830)
at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:950)
... 7 more
Caused by: org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2069)
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:2189)
at org.apache.solr.core.SolrCore.initSearcher(SolrCore.java:1071)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:949)
... 9 more

Regards,

Maqsood