Salta al contenuto

Alfresco 3.4 ricostruzioni indici

30 settembre 2011

Se anche a voi è capitato di non riuscire a far ripartire un server Alfresco che è andato in crash dopo un arresto improvviso di sistema, forse avete bisogno di ricreare gli indici di Lucene, quindi ecco qui quattro comandi, ma soprattutto la posizione della stringa index.recovery.mode da attivare.

You will be able to start Tomcat, but the Alfresco application will not be available. If this is the case, look inside the log file and you should find a few lines like this:
Caused by: org.alfresco.repo.search.SearcherException: More than one root node i
n index: 2
This fix for that, which is available here is:
# cd /opt/alfresco
# ./alfresco stop
# rm -rf alf_data/lucene_indexes
# cd tomcat/webapps/alfresco/WEB-INF/classes/alfresco
# vim repository.properties
Make the following changes to the file:
# The index recovery mode (NONE, VALIDATE, AUTO, FULL)
#index.recovery.mode=VALIDATE
index.recovery.mode=FULL

# Change the failure behaviour of the configuration checker
#system.bootstrap.config_check.strict=true
system.bootstrap.config_check.strict=false
Now you can start Alfresco again. Hopefully it will work. If it doesn’t, stop Alfresco again, drop the database and re-create it, remove the /opt/alfresco/alf_data/lucene-indexes directory again and start. Then it *should* work.
Once you have been able to start Alfresco successfully and gone to http://localhost:8080/alfresco to confirm that it is indeed working, you can revert the changes that you made in /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/respository.properties. If you don’t, Alfresco will attempt a full index recovery every time you start Alfresco.

Ancora nessun commento

Lascia un Commento

Fill in your details below or click an icon to log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Log Out / Modifica )

Foto Twitter

You are commenting using your Twitter account. Log Out / Modifica )

Foto di Facebook

You are commenting using your Facebook account. Log Out / Modifica )

Connecting to %s

Follow

Get every new post delivered to your Inbox.