cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade beyond 4.2c fails

michaelk
Champ in-the-making
Champ in-the-making
I have a 4.0c installation and I can upgrade to 4.2c but if I try 4.2e or 4.2f the upgrade fails with the error shown below.
I saw one post with this error quoted but no answer… 

Does anyone know how to get past this ?  The system is unusable without the patch (I can't log in)

Michael


09:20:40,631 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.sharedFolder' (Add Shared Folder).
09:20:40,755 ERROR [org.alfresco.repo.admin.patch.PatchExecuter] 02170002 org.alfresco.error.AlfrescoRuntimeException: 02170001 Bootstrap failed
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:362)
   at org.alfresco.repo.admin.patch.impl.GenericBootstrapPatch.applyInternal(GenericBootstrapPatch.java:123)
   at org.alfresco.repo.admin.patch.impl.SharedFolderPatch.applyInternal(SharedFolderPatch.java:179)
   at org.alfresco.repo.admin.patch.AbstractPatch.applyImpl(AbstractPatch.java:442)
   at org.alfresco.repo.admin.patch.AbstractPatch.access$000(AbstractPatch.java:58)
   at org.alfresco.repo.admin.patch.AbstractPatch$3$1.execute(AbstractPatch.java:602)
   at org.alfresco.repo.admin.patch.AbstractPatch$3$1.execute(AbstractPatch.java:599)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452)
   at org.alfresco.repo.admin.patch.AbstractPatch$3.doWork(AbstractPatch.java:605)
   at org.alfresco.repo.admin.patch.AbstractPatch$3.doWork(AbstractPatch.java:592)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
   at org.alfresco.repo.admin.patch.AbstractPatch.apply(AbstractPatch.java:614)
   at org.alfresco.repo.admin.patch.AbstractPatch.apply(AbstractPatch.java:561)
   at org.alfresco.repo.admin.patch.PatchServiceImpl$PatchWork.applyPatch(PatchServiceImpl.java:491)
   at org.alfresco.repo.admin.patch.PatchServiceImpl$PatchWork.execute(PatchServiceImpl.java:403)
   at org.alfresco.repo.admin.patch.PatchServiceImpl.applyPatch(PatchServiceImpl.java:258)
   at org.alfresco.repo.admin.patch.PatchServiceImpl.applyPatchAndDependencies(PatchServiceImpl.java:235)
   at org.alfresco.repo.admin.patch.PatchServiceImpl.applyOutstandingPatches(PatchServiceImpl.java:171)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
   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:110)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at com.sun.proxy.$Proxy104.applyOutstandingPatches(Unknown Source)
   at org.alfresco.repo.admin.patch.PatchExecuter.applyOutstandingPatches(PatchExecuter.java:76)
   at org.alfresco.repo.admin.patch.PatchExecuter$1.doWork(PatchExecuter.java:124)
   at org.alfresco.repo.admin.patch.PatchExecuter$1.doWork(PatchExecuter.java:120)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
   at org.alfresco.repo.admin.patch.PatchExecuter.onBootstrap(PatchExecuter.java:128)
   at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   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:4973)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:724)
12 REPLIES 12

michaelk
Champ in-the-making
Champ in-the-making
Let us know how it goes …  I'll be going down this path, I think.   Loosing all the versioning data is a big pain though….. (If past is prologue … we'll no doubt have to do this again on the next version 8-( )

Hi,
i've been facing this issues for a couple of months and i've done my research. after some time i've been able to successfully upgrade my instance from 4.2.0b to 5.0c just using the javascriptconsole.

in my case i just realized that my stack trace error ( that is very similar to yours ) stated:
parent=workspace://SpacesStore/3a537a67-2254-4faa-a18a-4a9561d81136,assocType=null

this parent object was in fact the "companyhome" folder.
this can easily seen using node browser and do a noderef query searching for
workspace://SpacesStore/3a537a67-2254-4faa-a18a-4a9561d81136
(ofc this is mine noderef you have to adjust it)
it also told me that "company home" folder also had the infamous "gd:googleResource" aspect.
knowing this i made some further research and removed that aspect using this javascript console line:
companyhome.removeAspect("{http://www.alfresco.org/model/googledocs/1.0}googleResource");


note that companyhome is a root object that is already defined in console context, so you don't have to redefine it.

after this i simply made a snapshot of my alfresco vm, stopped tomcat and replaced alfresco and share war with 5.0c versions.
all database patches went fine, i just had some troubles because in my alfresco-globals.config i commented out index automatic rebuilding.
that led me to a functional install but without tags. re-enabling auto rebuild of indexes and a tomcat restart fixed the problem.

i hope this could help you.

@valerio.minetti, Many thanks. Your suggestion helped to complete my upgrade from 4.2.c->5.0.c.