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:
- Setting all of SOLR_HOME, SOLR_SSL_KEY_STORE, and SOLR_SSL_TRUST_STORE in solr.in.sh doesn't work; the new SOLR_HOME is ignored, and Solr expects the keystore to be in the default location shown in the error message above, and not in the locations set by the new SOLR_SSL_KEY_STORE and SOLR_SSL_TRUST_STORE
- In the systemd service file which runs Solr I've exported (ie. ENVIRONMENT=) the new SOLR_HOME; this is ignored
- In the service file I've passed 'solr.solr.home' as an additional option to 'solr/bin/solr' (with -a "-Dsolr.solr.home=/new/path/to/solrhome"); this is also ignored
- In the service file I've set the new solr.solr.home with the -s option (ie. 'solr/bin/solr start -s /new/path/to/solrhome ...'); this is also ignored
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?