cancel
Showing results for 
Search instead for 
Did you mean: 

Why delete Lucene Index directory to re-run Alfresco?

rodri_ogri
Champ in-the-making
Champ in-the-making
Hi all,

I had the problem when starting Tomcat server and It said:
The store 'avm://sitestore' has a duplicate root node entry.

I followed the Jared Ottley's solution found here:
http://forums.alfresco.com/en/viewtopic.php?f=3&t=13892#p46054
And it worked just fine.

It says that you have to point the dir.root for alf_data to a phisical directory and then change the index.recovery.mode to AUTO. Finally it says that you have to delete the Lucene-Indexes folder (on alf_data) and restart.

My question is, why did I have to delete this folder in order to make alfresco work again?

best regards
4 REPLIES 4

derek
Star Contributor
Star Contributor
Hi,
There are at least two possible reasons.  The first is that it might have been a bug (if you had AUTO on before) and the second is that you may have used the same alf_data location with different Alfresco databases.  This process would not normally be needed, particularly if you set dir.root to a determinate location.
Regards

rodri_ogri
Champ in-the-making
Champ in-the-making
Hi Derek,

I forgot to say that I deleted my database accidentally and i had to restore it with the db_setup.sql script. But another solution would be to delete the alf_data and reinstall the DB?

regards

derek
Star Contributor
Star Contributor
Hi,
Yes, that would have done it.  The contentstore is not so important, but you must revert your Lucene indexes when you revert your DB as well.  This logic applies to backups as well.
Regards

rodri_ogri
Champ in-the-making
Champ in-the-making
Ok, I was thinking when I will restore the DB, I will have these problems too right?. So the way to revert the indexes is deleting the lucene folder or is there any other way?

By the way, is there any document or strategy to perform a full deploy of a Alfresco Share site?