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?
Solved! Go to Solution.
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.
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.
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.
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++?
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.