05-09-2024 03:02 PM
None of the standard Solr methods for moving solrhome (the index directory) appear to work. I'm on alfresco-search-services-2.0.8.1.zip (ie. not Docker/etc), and I've tried various things, listed below. For all these, solr.log reports:
o.a.s.c.SolrCore null:org.alfresco.error.AlfrescoRuntimeException: 04090001 Failed to initialize keystore: Location: /opt/alfresco-search-services/solrhome/keystore/ssl-repo-client.keystore
However, this is the default solrhome location, and the keystore is now in the new solrhome, which I've set as follows:
In all these cases Solr ignores the new SOLR_HOME, and creates a new default solrhome directory, and then fails to find the keystore in that new directory.
The next step is to directly modify solr/bin/solr to find out what's going on, but this could take some time - does anyone happen to know what the answer is?
05-10-2024 11:15 AM
I figured this out. If you actually move solrhome, rather than letting Solr create it from scratch, there are 3 solrcore.properties files in it which contain hard-wired solrhome locations. If you manually edit these files and fix the locations, Solr will start normally.
Apart from that, setting SOLR_HOME, SOLR_SSL_KEY_STORE, and SOLR_SSL_TRUST_STORE in solr.in.sh is sufficient to do the move.
05-10-2024 09:16 AM
Take a look at this: https://hub.alfresco.com/t5/news-announcements/tech-talk-live-157-slides-and-recording/ba-p/321141
We're doing regular sessions to clarify Community doubts.
You're modifying Jetty settings, but you need to modify Java settings.
05-10-2024 11:24 AM
Hi Angel - nice presentation, thanks. I particularly like the nmap commands. The mTLS debugging kit looks like it could be really useful, but the whole Maven/Docker thing is just fantastically complicated, and I'm going to have to pass on it. Have you thought about rewriting everything in C++?
05-10-2024 11:15 AM
I figured this out. If you actually move solrhome, rather than letting Solr create it from scratch, there are 3 solrcore.properties files in it which contain hard-wired solrhome locations. If you manually edit these files and fix the locations, Solr will start normally.
Apart from that, setting SOLR_HOME, SOLR_SSL_KEY_STORE, and SOLR_SSL_TRUST_STORE in solr.in.sh is sufficient to do the move.
Explore our Alfresco products with the links below. Use labels to filter content by product module.