cancel
Showing results for 
Search instead for 
Did you mean: 

Content restore fails on Alfresco 4.2.x

rajaram_mummada
Champ in-the-making
Champ in-the-making
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)
8 REPLIES 8

gawadesk
Star Contributor
Star Contributor
I hope your database and alf_data backup is consistence.

Can you share your startup log file to assist you further ?

Hello Krishna,
Thanks for the reply.
Yes, the db is consistent with the alf_data.

Did you mean catalina.out

gawadesk
Star Contributor
Star Contributor
yes catalina.out. Can you attach the same ?

attached, catalina.out as .txt;

So it means you are facing issue while applying service pack 4.2.6.1 and not during upgrade to 5.x I am sorry to say that being as community member I can't help you for enterprise version as I don't access for those binaries.

I request you to contact Alfresco support. Just for try by taking backup can you try upgrade directly to 5.x ?

Most of them I spoke to, says not to go directly to 5.1; reason being this 4.2.6.1 patch might have some security fixes.
If it is advisable, I can give a try. Nothing to lose, other than time, as it is dev environment.

Yes it is not advisable to go directly 5.1 but lets try in this case.

Sure, I might give a try after discussing with my team.