cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade 4.2.d to 5.0.b and SOLR4 Index Problem

haroldtheb
Champ in-the-making
Champ in-the-making
I upgraded my Alfresco installation from 4.2.d to 5.0.b.  I restored the database and contentstore from a cold backup.  Upon restart of the new 5.0.b installation, all documents are available, but indexing is not working.  The solr.log is showing this:

21:35:00,049 ERROR [org.alfresco.solr.tracker.MetadataTracker] First transaction was not found with the correct timestamp.
21:35:00,049 ERROR [org.alfresco.solr.tracker.MetadataTracker] SOLR has successfully connected to your repository  however the SOLR indexes and repository database do not match.
21:35:00,049 ERROR [org.alfresco.solr.tracker.MetadataTracker] If this is a new or rebuilt database your SOLR indexes also need to be re-built to match the database.
21:35:00,050 ERROR [org.alfresco.solr.tracker.MetadataTracker] You can also check your SOLR connection details in solrcore.properties.
21:35:00,058 ERROR [org.alfresco.solr.tracker.AbstractTracker] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 09130004 Initial acl transaction not found with correct timestamp
   at org.alfresco.solr.tracker.AclTracker.checkRepoAndIndexConsistency(AclTracker.java:361)
   at org.alfresco.solr.tracker.AclTracker.trackRepository(AclTracker.java:313)
   at org.alfresco.solr.tracker.AclTracker.doTrack(AclTracker.java:104)
   at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:155)
   at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)


So it appears I need to rebuild the index.  The Alfresco documentation on this seems to be geared to the older version of SOLR.  How do I rebuild the index in SOLR4?  I'm not a programmer, so I would appreciate help.
1 REPLY 1

dbiggins
Star Contributor
Star Contributor
I had a similar problem, and solved it by doing the following:

- Stop alfresco
- remove files in:
$ALFRESCO/alf_data/solr4/index/archive/SpacesStore/index/*
$ALFRESCO/alf_data/solr4/index/workspace/SpacesStore/index/*
$ALFRESCO/alf_data/solr4/model/*

- restart alfresco

Didn't see any errors in logs, and indexes got rebuilt.  Would be interested if there is a way to request solr to rebuild without stopping alfresco, though.