cancel
Showing results for 
Search instead for 
Did you mean: 

SOLR index corruption

arak
Confirmed Champ
Confirmed Champ
Hi,

I experiment problems with SOLR: many times I have my Alfresco Test server Up for a time period, but, in any time, the index of SOLR is corrupted:

… org.alfresco.error.AlfrescoRuntimeException: "GetModelsDiff return status is 401" …

and then I test reset the index (Reference: <url>http://deepak-keswani.blogspot.cl/2012/07/how-to-rebuild-solr-indexes-in-alfresco.html</url>) but is not working… and the last alternative is reinstall all, but with this I lose all index and content :/… in production that would be fatal…

Any recommendation for this?

Greetings,
Pablo A. Vásquez.
4 REPLIES 4

sujaypillai
Confirmed Champ
Confirmed Champ
Hello Pablo,

I think you missed this step - Deleting the Alfresco model for each core

Delete all the files under these directories -
alf_data\solr\workspace-SpacesStore\alfrescoModels
alf_data\solr\archive-SpacesStore\alfrescoModels

If you are on 4.x version refer this - http://docs.alfresco.com/4.1/tasks/solr-reindex.html
For 5.0 the solr version got updated and there is some change in foldername and path so refer this - http://docs.alfresco.com/4.1/tasks/solr-reindex.html

arak
Confirmed Champ
Confirmed Champ
Hi Sujay,

Thanks for your answer, but also I tried remove the "alfrescoModel" folders, and not work.

I asked this same question in the chat, and they said:

"The 401 error indicates that the communication between Solr and the Alfresco repository doesn't work. Solr couldn't connect to Alfresco, which probably means you have some mismatch in your config. If you don't use SSL make sure it's configured properly."

I don't know what configuration can create this problem, Any idea?

Greetings,
Pablo.

darkredd
Star Contributor
Star Contributor
Hi Pablo,

Look at both your config files in the alf_data folder that it match what you have in the alfresco-global.properties file.
1. alf_data\solr\workspace-SpacesStore\conf\solrcore.properties
2. alf_data\solr\archivespace-SpacesStore\conf\solrcore.properties

arak
Confirmed Champ
Confirmed Champ
Thanks for the responses.

Is a communication error between SOLR and Alfresco.

I had problems with the CORS configuration and for this is which produce the error (I forget put de JAR of CORS in the "lib" folder Smiley Tongue).

Greetings,
Pablo.