cancel
Showing results for 
Search instead for 
Did you mean: 

Rebuild Index solr => error on tomcat log [ SOLVED ]

gregd
Champ on-the-rise
Champ on-the-rise
Hi,

I have installed Alfresco 4.0d on a CentOs 5.8 x86_64. I have configured LDAP-AD and gMail.

I tried to rebuild SOLR index because in the "/tomcat/logs/catalina.out", i had a message (sorry, I havn't save this log).

Since the rebuild, my first message log was disappeared, but i have a new message all the time in "/tomcat/logs/catalina.out" :

4 juin 2012 13:53:45 org.alfresco.solr.tracker.CoreTracker trackRepository
GRAVE: First transaction was not found with the correct timestamp.
4 juin 2012 13:53:45 org.alfresco.solr.tracker.CoreTracker trackRepository
GRAVE: SOLR has successfully connected to your repository  however the SOLR indexes and repository database do not match.
4 juin 2012 13:53:45 org.alfresco.solr.tracker.CoreTracker trackRepository
GRAVE: If this is a new or rebuilt database you SOLR indexes also need to be re-built to match the database.
4 juin 2012 13:53:45 org.alfresco.solr.tracker.CoreTracker trackRepository
GRAVE: You can also check your SOLR connection details in solrcore.properties.
4 juin 2012 13:53:45 org.alfresco.solr.tracker.CoreTracker trackRepository
GRAVE: Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 05040077 Initial transaction not found with correct timestamp
        at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1243)
        at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:491)
        at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)

In the alfresco.log, they have no message.
My solrcore.properties is the default file :
data.dir.root=/data/alfresco-4.0.d/alf_data/solr
data.dir.store=workspace/SpacesStore
enable.alfresco.tracking=true
cache.alfresco.size=100
max.field.length=2147483647


#
# Properties loaded during alfresco tracking
#

alfresco.host=localhost
alfresco.port=8080
alfresco.port.ssl=8443
alfresco.cron=0/15 * * * * ? *
alfresco.stores=workspace://SpacesStore
alfresco.lag=1000
alfresco.hole.retention=3600000
alfresco.batch.count=1000

# encryption

# none, https
alfresco.secureComms=https

# ssl
alfresco.encryption.ssl.keystore.type=JCEKS
alfresco.encryption.ssl.keystore.provider=
alfresco.encryption.ssl.keystore.location=ssl.repo.client.keystore
alfresco.encryption.ssl.keystore.passwordFileLocation=ssl-keystore-passwords.properties
alfresco.encryption.ssl.truststore.type=JCEKS
alfresco.encryption.ssl.truststore.provider=
alfresco.encryption.ssl.truststore.location=ssl.repo.client.truststore
alfresco.encryption.ssl.truststore.passwordFileLocation=ssl-truststore-passwords.properties


Some documents are indexed, but not all. Havre you some idea ? 

Thanks

Greg
6 REPLIES 6

sglover
Champ in-the-making
Champ in-the-making
The message in the log indicates that your Solr index and database do not match. The Alfresco Solr FAQ here http://wiki.alfresco.com/wiki/Alfresco_And_SOLR#FAQ entry "How would I rebuild the index from scratch?" explains how to fix this.

gregd
Champ on-the-rise
Champ on-the-rise
Hi,

Thanks, for your response. I had already try this solution without sucess.

I have just try to create a new server with alfresco. It has no problem now.

This subject can be closed.

acarpine
Champ in-the-making
Champ in-the-making
Hi Greg,
I had the same problem and I would to know how to solve it.

Could you explain what do you mean by "create a new server with alfresco."?
Did you delete the database?

Thanks,
Andrea

gregd
Champ on-the-rise
Champ on-the-rise
Hi acarpine,

I had created a new Virtual Server from scratch.

I haven't find solution for this problem. Sorry.

Good Luck.

meeyome
Champ in-the-making
Champ in-the-making
Me too i'm dealing with this kind of problem..  maybe i would start to scratch again.. this problem is unexplainable and no one could solved this problem but to rebuild a new server.. Smiley Sad

rjohnson
Star Contributor
Star Contributor
When rebuilding SOLR it is often wise (sometimes necessary) to get rid of the cached copies of the data models as well as the indexes. Did you do this?