AnsweredAssumed Answered

SOLR Tracking Failed

Question asked by mangar on Jun 26, 2012
Latest reply on Jul 3, 2012 by andy
I have upgraded my Alfresco to 4.0.d comm from 3.3  Everything went fairly well, except for the SOLR stuff.  I had to copy the original /solr directory from my initial install to my backed up alf_data, but that's it.  Everything seems to work fine except for my log files filling up with this:
Jun 26, 2012 11:48:46 AM org.alfresco.solr.tracker.CoreTracker trackRepository
SEVERE: First transaction was not found with the correct timestamp.
Jun 26, 2012 11:48:46 AM org.alfresco.solr.tracker.CoreTracker trackRepository
SEVERE: First transaction was not found with the correct timestamp.
Jun 26, 2012 11:48:46 AM org.alfresco.solr.tracker.CoreTracker trackRepository
SEVERE: SOLR has successfully connected to your repository  however the SOLR indexes and repository database do not match.
Jun 26, 2012 11:48:46 AM org.alfresco.solr.tracker.CoreTracker trackRepository
SEVERE: SOLR has successfully connected to your repository  however the SOLR indexes and repository database do not match.
Jun 26, 2012 11:48:46 AM org.alfresco.solr.tracker.CoreTracker trackRepository
SEVERE: If this is a new or rebuilt database you SOLR indexes also need to be re-built to match the database.
Jun 26, 2012 11:48:46 AM org.alfresco.solr.tracker.CoreTracker trackRepository
SEVERE: If this is a new or rebuilt database you SOLR indexes also need to be re-built to match the database.
Jun 26, 2012 11:48:46 AM org.alfresco.solr.tracker.CoreTracker trackRepository
SEVERE: You can also check your SOLR connection details in solrcore.properties.
Jun 26, 2012 11:48:46 AM org.alfresco.solr.tracker.CoreTracker trackRepository
SEVERE: You can also check your SOLR connection details in solrcore.properties.
Jun 26, 2012 11:48:46 AM org.alfresco.solr.tracker.CoreTracker trackRepository
SEVERE: Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 05260001 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)
Jun 26, 2012 11:48:46 AM org.alfresco.solr.tracker.CoreTracker trackRepository
SEVERE: Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 05260000 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)

I have tried and tried to rebuild my indexes, but to no avail.  I deleted my alf_data/solr/archive and alf_data/solr/workspace like the manual said. But to no avail.  In fact, the directories are not being re-created at all.

I tried to remove SOLR completely by removeing the webapp and the solr.xml in Catalina/localhost, but when I do that, I get this error when I try and log in:

java.lang.reflect.InvocationTargetException
caused by:
org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 05260005 Request failed 404 /solr/alfresco/alfresco?q=%2B%40cq%5C%3Aprogram%3A%22EMBA%22+%2B%40cq%5C%3AfileCreateDate%3A%5B2012-06-26T00%3A00%3A55.166-05%3A00+TO+2012-06-26T12%3A09%3A55.166-05%3A00%5D&wt=json&fl=*%2Cscore&rows=2147483647&df=TEXT&start=0&locale=en_US&fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&fq=%7B%21afts%7DTENANT_FILTER_FROM_JSON


Now I get the 404, as I have just removed SOLR, but why is Lucene talking to SOLR? I thought they were independent of each other?

So I need to:

a:  Fix the orrgingal error, or
b:  Remove SOLR and still work.

Any Ideas?

Outcomes