cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade 3.0 to 3.2 - can't do a FULL index rebuild

lynnders
Champ in-the-making
Champ in-the-making
I upgraded from 3.0 to 3.2  and discovered that I can't do a FULL index rebuild.

I get the following error:
16:36:54,771  INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /var/alfresco32/alf_data
16:36:54,894  ERROR [web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 07270000 The store 'avm://sitestore' has a duplicate root node entry.
        at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:294)
Looking though the forums it seems that this problem is usually solved by setting dir.root to a concrete path – not a relative one. But mine wasn't a relative path.

After some investigation I came across this http://issues.alfresco.com/jira/browse/ALF-2878 – this problem is fixed in 3.3 SVN r19267

I need to patch my version of 3.2 with the fix.

I've been looking through the list of files that changed for this release. I've made a change to  AVMFullIndexRecoveryComponent – recoverStore

Changed
if (!avmSnapShotTriggeredIndexingMethodInterceptor.hasIndexBeenCreated(store))
{
    avmSnapShotTriggeredIndexingMethodInterceptor.createIndex(store);
}
           
final int latest = avmService.getLatestSnapshotID(store);
if (latest <= 0)
{
    return;
}
to
final int latest = avmService.getLatestSnapshotID(store);
if (latest <= 0)
{
    if (!avmSnapShotTriggeredIndexingMethodInterceptor.hasIndexBeenCreated(store))
    {
        avmSnapShotTriggeredIndexingMethodInterceptor.createIndex(store);
     }
     return;
}

My indexes rebuild ok – just wondered if an Alfresco expert would know if this is the only relevant change I need to make?

Thanks
Lynn
2 REPLIES 2

lynnders
Champ in-the-making
Champ in-the-making
I also have this warning

15:51:52,048  WARN  [repo.dictionary.DictionaryDAO] Type not found: {http://www.alfresco.org/model/user/1.0}authorityContainer

and these errors

15:52:00,292  ERROR [index.AbstractReindexComponent.threads] Reindexer     2 failed with error: 10150007 Failed to prepare: requires rollback.
15:52:00,302  ERROR [index.AbstractReindexComponent.threads] Reindexer     3 failed with error: 10150006 Failed to prepare: requires rollback.
15:52:00,330  ERROR [index.AbstractReindexComponent.threads] Reindexer     4 failed with error: 10150001 Failed to prepare: requires rollback.
15:52:00,339  ERROR [index.AbstractReindexComponent.threads] Reindexer     5 failed with error: 10150005 Failed to prepare: requires rollback.

But the Alfresco service starts and seems to work - does anyone know if any of these errors will cause me a problem later down the line?

Thanks
Lynn

lynnders
Champ in-the-making
Champ in-the-making
The authorityContainer error should be fixed in 3.2 - [https://issues.alfresco.com/jira/browse/ETHREEOH-3873]

I'm running 3.2r upgrade from 3.0, wonder why I'm still getting the error.