AnsweredAssumed Answered

Content restore fails on Alfresco 4.2.x

Question asked by rajaram.mummadavarapu on Aug 16, 2016
Latest reply on Aug 18, 2016 by rajaram.mummadavarapu
Hello,
I have alfresco 4.2.4 enterprise, wanted to upgrade to 5.x; So, I followed the steps update to the patch, 4.2.6.1.

1. Took cold backups of the existing alf_data and database, at similar time;
2. Installed 4.2.6.1, made required config changes in global-properties, updated alf_data location and started with empty contentstore and database, worked like a charm, completed other custom configs and restarted, worked fine.
3. Restored the contentstore and database and started, here comes "context initialization failed" error, one every second, filling my log file.

I tried the same with 4.2.4 and 4.2.6.1; only after restoring the contentstore, it fails.

* I tried just db restore and forgot contentstore and started fine.


From catalina.out, also attached:
2016-08-12 15:20:40,821  ERROR [repo.cache.AbstractAsynchronouslyRefreshedCache] [asynchronouslyRefreshedCacheThreadPool1] Cache update failed (webScriptsRegistryCache).
java.lang.NullPointerException
   at org.alfresco.repo.web.scripts.RepoStore.findNodeRef(RepoStore.java:321)
   at org.alfresco.repo.web.scripts.RepoStore$8$1.execute(RepoStore.java:692)
   at org.alfresco.repo.web.scripts.RepoStore$8$1.execute(RepoStore.java:689)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
   at org.alfresco.repo.web.scripts.RepoStore$8.doWork(RepoStore.java:688)
   at org.alfresco.repo.web.scripts.RepoStore$8.doWork(RepoStore.java:685)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
   at org.alfresco.repo.web.scripts.RepoStore.getDocument(RepoStore.java:684)
   at org.springframework.extensions.webscripts.DeclarativeRegistry.initWebScripts(DeclarativeRegistry.java:375)
   at org.springframework.extensions.webscripts.DeclarativeRegistry.reset(DeclarativeRegistry.java:183)
   at org.alfresco.repo.web.scripts.RegistryAsynchronouslyRefreshedCache.doBuildCache(RegistryAsynchronouslyRefreshedCache.java:83)
   at org.alfresco.repo.web.scripts.RegistryAsynchronouslyRefreshedCache.access$000(RegistryAsynchronouslyRefreshedCache.java:41)
   at org.alfresco.repo.web.scripts.RegistryAsynchronouslyRefreshedCache$1.execute(RegistryAsynchronouslyRefreshedCache.java:72)
   at org.alfresco.repo.web.scripts.RegistryAsynchronouslyRefreshedCache$1.execute(RegistryAsynchronouslyRefreshedCache.java:68)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
   at org.alfresco.repo.web.scripts.RegistryAsynchronouslyRefreshedCache.buildCache(RegistryAsynchronouslyRefreshedCache.java:67)
   at org.alfresco.repo.web.scripts.RegistryAsynchronouslyRefreshedCache.buildCache(RegistryAsynchronouslyRefreshedCache.java:41)
   at org.alfresco.repo.cache.AbstractAsynchronouslyRefreshedCache.doRefresh(AbstractAsynchronouslyRefreshedCache.java:464)
   at org.alfresco.repo.cache.AbstractAsynchronouslyRefreshedCache.doCall(AbstractAsynchronouslyRefreshedCache.java:449)
   at org.alfresco.repo.cache.AbstractAsynchronouslyRefreshedCache.call(AbstractAsynchronouslyRefreshedCache.java:414)
   at org.alfresco.repo.cache.AbstractAsynchronouslyRefreshedCache.call(AbstractAsynchronouslyRefreshedCache.java:45)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

Attachments

Outcomes