cancel
Showing results for 
Search instead for 
Did you mean: 

Error when upgradingto 3.4

dgili
Champ in-the-making
Champ in-the-making
I'm trying to move our current Alfresco instance to another machine and upgrade it from 3.2 to 3.4 (Community Edition).

I installed 3.4 on the new server and it ran with no problems. Then, I backed up and restored the content from the previous 3.2 server (Postgres database and content folder) on the new one. No additional amps were installed yet.

When I restarted, Alfresco successfully recreated the indexes (I forced index.recovery.mode = FULL) but when it comes to apply the patchs for the new version, I'm getting this error (see complete error stack trace below):

Caused by: org.alfresco.service.cmr.view.ImporterException: Path /app:company_home/app:dictionary within node workspace://SpacesStore/67136bb3-3686-4013-aa9f-42b14e3f8451 does not exist - the path must resolve to a valid location

Using the Node Browser on the previous Alfresco instance, I could find that I have a company_home under root:

company_home   workspace://SpacesStore/62a08092-26e6-4834-854e-65c1343d0d31   true   children    0

and a dictionary node under company_home:

dictionary   workspace://SpacesStore/2f48b600-7151-4b2f-bfa9-5fba700f75b4   true   contains    0


I checked the new database and both nodes can be found in the alf_node table. I tried several other versions with similar results (3.4.d, 4.0.b and 4.0.c). I feel there must be something wrong with my configuration but I can't figure out what. I've been also trying to debug the code and reached to the point where I believe Jaxen is called to find that node.

Anyone has faced a similar problem? Any ideas or suggestions? I would really appreciate if someone could help me, at least by indicating directions or things I could try.

Thanks

00:52:02,833  INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
00:52:03,020  INFO  [admin.patch.PatchExecuter]         Applying patch 'patch.rendition.rendering_actions' (Creates the Rendering Actions folder.).
01:04:13,054  ERROR [admin.patch.PatchExecuter] 00090002 org.alfresco.error.AlfrescoRuntimeException: 00090001 Bootstrap failed
        at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:361)
        at org.alfresco.repo.admin.patch.impl.GenericBootstrapPatch.applyInternal(GenericBootstrapPatch.java:121)
        at org.alfresco.repo.admin.patch.AbstractPatch$1$1.execute(AbstractPatch.java:415)
        at org.alfresco.repo.admin.patch.AbstractPatch$1$1.execute(AbstractPatch.java:409)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:325)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:232)
        at org.alfresco.repo.admin.patch.AbstractPatch$1.doWork(AbstractPatch.java:441)
        at org.alfresco.repo.admin.patch.AbstractPatch$1.doWork(AbstractPatch.java:405)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:508)
        at org.alfresco.repo.admin.patch.AbstractPatch.apply(AbstractPatch.java:445)
        at org.alfresco.repo.admin.patch.PatchServiceImpl.applyPatch(PatchServiceImpl.java:297)
        at org.alfresco.repo.admin.patch.PatchServiceImpl.access$200(PatchServiceImpl.java:50)
        at org.alfresco.repo.admin.patch.PatchServiceImpl$2.execute(PatchServiceImpl.java:226)
        at org.alfresco.repo.admin.patch.PatchServiceImpl$2.execute(PatchServiceImpl.java:223)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:325)
        at org.alfresco.repo.admin.patch.PatchServiceImpl.applyPatchAndDependencies(PatchServiceImpl.java:229)
        at org.alfresco.repo.admin.patch.PatchServiceImpl.applyOutstandingPatches(PatchServiceImpl.java:163)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy90.applyOutstandingPatches(Unknown Source)
        at org.alfresco.repo.admin.patch.PatchExecuter.applyOutstandingPatches(PatchExecuter.java:83)
        at org.alfresco.repo.admin.patch.PatchExecuter.onBootstrap(PatchExecuter.java:126)
        at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:78)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:294)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:858)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:419)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:519)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.alfresco.service.cmr.view.ImporterException: Path /app:company_home/app:dictionary within node workspace://SpacesStore/67136bb3-3686-4013-aa9f-42b14e3f8451 does not exist - the path must resolve to a valid location
        at org.alfresco.repo.importer.ImporterComponent.getNodeRef(ImporterComponent.java:261)
        at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:216)
        at org.alfresco.repo.importer.ImporterBootstrap.doImport(ImporterBootstrap.java:475)
        at org.alfresco.repo.importer.ImporterBootstrap.access$000(ImporterBootstrap.java:70)
        at org.alfresco.repo.importer.ImporterBootstrap$1$1.execute(ImporterBootstrap.java:350)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:325)
        at org.alfresco.repo.importer.ImporterBootstrap$1.doWork(ImporterBootstrap.java:354)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:508)
        at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:357)
        … 63 more
2 REPLIES 2

brian_robinson
Champ in-the-making
Champ in-the-making
I noticed that you mentioned that your 3.4 version did not have any AMPs installed, which implies that your 3.2 version did have AMPs installed.  Perhaps you could try installing the AMP files (making sure to use the 3.4 or 4.0 versions of those amps, NOT the ones from the 3.2 version), and try again.

Also, in case you weren't aware, here are the docs on upgrading: http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fch-upgrade.....

Thanks,
-Brian

bopolissimus
Confirmed Champ
Confirmed Champ
Hi dgili,

Did you resolve the issue?  If yes, what was the resolution?  I'm running into the same problem just now.

Thanks for any pointers 🙂

Gerald Quimpo