cancel
Showing results for 
Search instead for 
Did you mean: 

keystore location

mangar
Star Contributor
Star Contributor
I successfully installed alfresco-4.0.e with no problems on a linux instance.

I simply moved the alf_data location to a /mnt directory such that its now located at /mnt/alf_data

I change the alfresco-global.properties to reflect this change.


dir.root=/mnt/alf_data
dir.keystore=/mnt/alf_data/keystore

yet when I start I get this error in the log:
SEVERE: Failed to load keystore type JCEKS with path /opt/alfresco-4.0.e/alf_data/keystore/ssl.keystore due to /opt/alfresco-4.0.e/alf_data/keystore/ssl.keystore (No such file or directory)
java.io.FileNotFoundException: /opt/alfresco-4.0.e/alf_data/keystore/ssl.keystore (No such file or directory)

which is of course correct, as I moved it.  Why wont it pick up the new directory?

I have also tried adding this to the properties file to no avail:


alfresco.encryption.ssl.keystore.location=/mnt/alf_data/keystore/ssl.keystore

any ideas?
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
make sure that alfresco-global.properties file you have removed the extension "sample".
Also make sure those properties are not commented.

Also check if there is any other alfresco-global.property file present at any other location in your installation.

mangar
Star Contributor
Star Contributor
I did a quick find . -name alfresco-global.properties  and did find another file in tomcat/shared/classes.  I changed that as well, still no luck.

So where should the alfresco-global.properties file be?  It does not seem right to me that there should be more than one "global" properties file.

Also I moved just the keystore directory back to /opt/alfresco-4.0.e/alf_data/keystore and the repository in /mnt/alf_data and everything seems to work.  So my problem is solved anyway as the files will be stored on the /mnt directory.

However, it's a hack, and I don't like it. Smiley Happy

Where else can I look?

mangar
Star Contributor
Star Contributor
And the answer is:

there are 2 hidden properties files in :
/alf_data/solr/workspace-SpacesStore/conf/solrcore.properties
/alf_data/solr/archive-SpacesStore/conf/solrcore.properties

you need to change those too.