AnsweredAssumed Answered

upgrade alfresco from 3.4.0 c (3335) to current 4.0.c

Question asked by user21 on Jan 19, 2012
Hello, i want to upgrade my alfresco from  3.4.0 (c 3335) to current version  4.0с, but upgrading failed…

What i did:

1. cold backup old version
2. install new alfresco
3. run new alfresco
5. copy to new alf_data folders (contentstore, contentstore.deleted) from old alf_data
6. set alfresco-global.properties to use old alfresco db
7. comment strings in alfresco-global.properties:
#dir.keystore=${dir.root}/keystore
#solr.port.ssl=8443

and add  index.subsystem.name=lucene
                index.recovery.mode=FULL

for rebuilding lucene indexes

8. add aditional configs to alfresco-global.properties
9. run the system

After runnig, lucene indexes successfull rebuilding, but then got this errors:

2012-01-19 13:23:20,005  ERROR [web.context.ContextLoader] [main] Context initialization failed
java.lang.NullPointerException
        at org.alfresco.repo.web.scripts.RepoStore.findNodeRef(RepoStore.java:315)
        at org.alfresco.repo.web.scripts.RepoStore$7$1.execute(RepoStore.java:685)
        at org.alfresco.repo.web.scripts.RepoStore$7$1.execute(RepoStore.java:682)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
        at org.alfresco.repo.web.scripts.RepoStore$7.doWork(RepoStore.java:681)
        at org.alfresco.repo.web.scripts.RepoStore$7.doWork(RepoStore.java:678)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:519)
        at org.alfresco.repo.web.scripts.RepoStore.getDocument(RepoStore.java:677)….

SEVERE: Job Solr.CoreTracker-alfresco threw an unhandled Exception:
org.alfresco.error.AlfrescoRuntimeException: 00190001 GetModelsDiff return status is 404
        at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1011)
        at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1453)
        at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1126)
        at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:483)
        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)
19.01.2012 13:23:45 org.quartz.core.JobRunShell run….

Maybe I should have been updated to 3.4.0c 3.4.0d, and then upgrade to 4.0c?

Outcomes