AnsweredAssumed Answered

Upgrade 3.4d to 4.0a (Ubuntu 10.04)

Question asked by neozone on Oct 10, 2011
Latest reply on Jul 30, 2012 by ruben.arjonilla
I try to upgrade it but it found error while upgrade.

this is inside logfile


19:27:59,660 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
19:27:59,735 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
19:28:13,431 WARN  [org.alfresco.util.AbstractTriggerBean] Job ehCacheTracerJob is not active/enabled
19:28:19,386 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
19:28:19,389 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
19:28:28,335 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
19:28:34,470 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-7793895669542541851.sql (Copied from classpath:alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.MySQLInnoDBDialect/property-unique-ctx-idx.sql).
19:28:34,640 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-8144246334503418768.sql (Copied from classpath:alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.MySQLInnoDBDialect/authority-unique-idx.sql).
19:28:34,677 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-6949115308881632859.sql (Copied from classpath:alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.MySQLInnoDBDialect/link-validation-metadata-removing.sql).
19:28:34,747 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-4549320317784889526.sql (Copied from classpath:alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.MySQLInnoDBDialect/varchar-field-sizes-quadruple-increasing.sql).
19:28:34,767 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-2306414292858676130.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoPostCreate-JBPM-FK-indexes.sql).
19:28:34,809 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-8949469103673433105.sql (Copied from classpath:alfresco/dbscripts/upgrade/4.0/org.hibernate.dialect.MySQLInnoDBDialect/AclChangeSet-Tracking.sql).
19:28:35,125 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-1172694436570040622.sql (Copied from classpath:alfresco/dbscripts/upgrade/4.0/org.hibernate.dialect.MySQLInnoDBDialect/NodeAssoc-Ordering.sql).
19:28:36,435 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-3716115235579975773.sql (Copied from classpath:alfresco/dbscripts/upgrade/4.0/org.hibernate.dialect.MySQLInnoDBDialect/Node-Locale.sql).
19:28:45,706 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-5415402761936124278.sql (Copied from classpath:alfresco/dbscripts/create/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoCreate-SubscriptionTables.sql).
19:28:47,186 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] All executed statements:  /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-All_Statements-8766370626248122885.sql.
19:28:51,155 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Normalized schema (pre-bootstrap)  dumped to file /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-7826509589456970594-Startup.xml.
19:28:51,155 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Normalized schema (post-bootstrap) dumped to file /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-8192748867277165691.xml.
19:28:51,526 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Search' subsystem, ID: [Search, managed, solr]
19:28:51,674 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Search' subsystem, ID: [Search, managed, solr] complete
19:28:56,153 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
19:28:58,205 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
19:28:58,206 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
19:29:40,470 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
19:29:40,932 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /opt/Alfresco/alf_data
19:29:41,002 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
19:29:42,120 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.fixUserQNames' (Fixes user store qnames to improve native authentication performance).
19:29:42,249 INFO  [org.alfresco.repo.admin.patch.impl.FixUserQNamesPatch] FixUserQNamesPatch: Commencing batch of 42 entries
19:29:44,195 INFO  [org.alfresco.repo.admin.patch.impl.FixUserQNamesPatch] FixUserQNamesPatch: Processed 42 entries out of 42. 100% complete. Rate: 21 per second. 0 failures detected.
19:29:44,196 INFO  [org.alfresco.repo.admin.patch.impl.FixUserQNamesPatch] FixUserQNamesPatch: Completed batch of 42 entries
19:29:44,417 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.redeployJbpmAdhocWorkflow' (Redeploy JBPM adhoc workflow).
19:29:44,431 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.mtFixAdminExistingTenants' (Fix bootstrapped creator/modifier).
19:29:44,534 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.activitiesEmailTemplate' (null).
19:29:45,519 WARN  [org.alfresco.repo.admin.patch.PatchExecuter] Patch description is not available: Patch[ id=patch.activitiesEmailTemplate, description=patch.activitiesEmailTemplate.description, fixesFromSchema=0, fixesToSchema=5005, targetSchema=5006]
19:29:45,529 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.newUserEmailTemplates' (Adds the email templates for notifying new users of their accounts).
19:29:45,964 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.inviteEmailTemplates' (Adds the email templates for inviting users to a Site).
19:29:46,387 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.htmlNotificationMailTemplates' (Adds HTML email templates for notifying users of new content).
19:29:46,752 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.imapSpacesLocaleTemplates' (Adds content templates for IMAP clients (Non-default locales only)).
19:29:47,594 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.fixAclInheritance' (Fixes any ACL inheritance issues.).
19:29:49,282 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.imap.clear.old.messages' (Remove old IMAP message templates).
19:29:49,914 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.migrateAttrDropOldTables' (Drops old alf_*attribute* tables and sequence).
19:29:49,962 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.activitiesTemplatesUpdate' (Updates activities email templates.).
19:29:51,967 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.followingMailTemplates' (Adds email templates for following notifications).
19:29:52,485 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.avmToAdmRemoteStore' (Migrates Share Surf config from AVM sitestore to DM Sites folder.).
19:29:52,486 INFO  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] Retrieving paths from AVM store: sitestore:/alfresco/site-data
19:29:54,783 INFO  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] Found: 856 AVM files nodes to migrate
19:29:54,783 INFO  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] Retrieved: 856 AVM paths in 2297ms
19:29:54,955 INFO  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] AVMToADMRemoteStorePatch: Commencing batch of 57 entries
19:30:05,801 INFO  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] AVMToADMRemoteStorePatch: Processed 57 entries out of 57. 100% complete. Rate: 5 per second. 0 failures detected.
19:30:05,801 INFO  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] AVMToADMRemoteStorePatch: Completed batch of 57 entries
19:30:05,801 INFO  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] Created 'surf-config' folders for: 57 sites in 10846ms
19:30:05,819 INFO  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] AVMToADMRemoteStorePatch: Commencing batch of 856 entries
19:30:06,137 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
19:30:09,165 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
19:30:16,683 WARN  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] Unable to create folder: components for path: sitestore:/alfresco/site-data/components/page.component-2-1.site~Quittances~dashboard.xml - as another txn is busy, will retry later.
19:30:18,657 WARN  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] Unable to create folder: components for path: sitestore:/alfresco/site-data/components/page.navigation.site~AAAA~dashboard.xml - as another txn is busy, will retry later.
19:30:18,760 WARN  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] Unable to create folder: components for path: sitestore:/alfresco/site-data/components/page.component-1-1.site~CCCCCCCCCC~dashboard.xml - as another txn is busy, will retry later.
19:30:20,918 WARN  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] Unable to create folder: components for path: sitestore:/alfresco/site-data/components/page.title.site~SSSSSSSS~dashboard.xml - as another txn is busy, will retry later.
19:30:20,924 WARN  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] Unable to create folder: components for path: sitestore:/alfresco/site-data/components/page.component-3-1.site~SSSSSSSS~dashboard.xml - as another txn is busy, will retry later.
19:30:20,935 WARN  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] Unable to create folder: components for path: sitestore:/alfresco/site-data/components/page.component-1-2.site~SSSSSSSS~dashboard.xml - as another txn is busy, will retry later.
19:30:20,996 WARN  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] Unable to create folder: components for path: sitestore:/alfresco/site-data/components/page.component-3-1.site~Ansssssss~dashboard.xml - as another txn is busy, will retry later.
19:31:12,761 INFO  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] AVMToADMRemoteStorePatch: Processed 856 entries out of 856. 100% complete. Rate: 12 per second. 0 failures detected.
19:31:12,761 INFO  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] AVMToADMRemoteStorePatch: Completed batch of 856 entries
19:31:12,761 INFO  [org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch] Retrying 7 paths…
19:31:12,855 ERROR [org.alfresco.repo.admin.patch.PatchExecuter] 09070007 org.alfresco.service.cmr.model.FileExistsException: Existing file or folder page.component-1-1.site~CCCCCCCCCC~dashboard.xml already exists
   at org.alfresco.repo.model.filefolder.FileFolderServiceImpl.createImpl(FileFolderServiceImpl.java:1200)
   at org.alfresco.repo.model.filefolder.FileFolderServiceImpl.create(FileFolderServiceImpl.java:1167)
   at org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch.migrateNode(AVMToADMRemoteStorePatch.java:545)
   at org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch.access$900(AVMToADMRemoteStorePatch.java:77)
   at org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch$7.execute(AVMToADMRemoteStorePatch.java:397)
   at org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch$7.execute(AVMToADMRemoteStorePatch.java:392)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
   at org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch.applyInternal(AVMToADMRemoteStorePatch.java:402)
   at org.alfresco.repo.admin.patch.AbstractPatch.applyImpl(AbstractPatch.java:407)
   at org.alfresco.repo.admin.patch.AbstractPatch.access$000(AbstractPatch.java:52)
   at org.alfresco.repo.admin.patch.AbstractPatch$2.doWork(AbstractPatch.java:473)
   at org.alfresco.repo.admin.patch.AbstractPatch$2.doWork(AbstractPatch.java:456)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:519)
   at org.alfresco.repo.admin.patch.AbstractPatch.apply(AbstractPatch.java:478)
   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: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: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 $Proxy92.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:519)
   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: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)

19:31:12,908 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.db-V3.4-authority-unique-idx
RESULT:
Script completed
=====================================
19:31:12,908 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.db-V3.4-property-unique-ctx-idx
RESULT:
Script completed
=====================================
19:31:12,908 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.db-V3.4-RemovingLinkValidationMetadata
RESULT:
Script completed
=====================================
19:31:12,908 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.redeployJbpmAdhocWorkflow
RESULT:
Re-deployed 1 workflows.
=====================================
19:31:12,908 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.db-V3.4-VarcharFieldSizesQuadrupleIncreasing
RESULT:
Script completed
=====================================
19:31:12,908 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.db-V3.4-JBPM-FK-indexes
RESULT:
Script completed
=====================================
19:31:12,908 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.mtFixAdminExistingTenants
RESULT:
Fix bootstrapped creator/modifier
=====================================
19:31:12,908 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.fixUserQNames
RESULT:
Generated qnames for 42 users.
=====================================
19:31:12,908 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.fixAclInheritance
RESULT:
Fixed 0 ACLs.
=====================================
19:31:12,908 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.inviteEmailTemplates
RESULT:
Imported view into bootstrap location: /app:company_home/app:dictionary/app:email_templates/cm:invite (workspace://SpacesStore/2de0f4ac-b6dd-4b91-b1c3-686ba1f2134c)
=====================================
19:31:12,908 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.newUserEmailTemplates
RESULT:
Imported view into bootstrap location: /app:company_home/app:dictionary/app:email_templates/cm:invite (workspace://SpacesStore/2de0f4ac-b6dd-4b91-b1c3-686ba1f2134c)
=====================================
19:31:12,908 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.activitiesEmailTemplate
RESULT:
Imported view into bootstrap location: /app:company_home/app:dictionary/app:email_templates (workspace://SpacesStore/2de0f4ac-b6dd-4b91-b1c3-686ba1f2134c)
=====================================
19:31:12,908 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.imap.clear.old.messages
RESULT:
Old IMAP message templates have been removed from the repository
=====================================
19:31:12,909 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.db-V3.4-AVM-rename-dupes
RESULT:
Preceded by alternative patch 'patch.eliminateDuplicates'.
=====================================
19:31:12,909 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.imapSpacesLocaleTemplates
RESULT:
Imported view into bootstrap location: /app:company_home/app:dictionary/app:imap_configs/app:imap_templates (workspace://SpacesStore/2de0f4ac-b6dd-4b91-b1c3-686ba1f2134c)
=====================================
19:31:12,909 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.htmlNotificationMailTemplates
RESULT:
Imported view into bootstrap location: /app:company_home/app:dictionary/app:email_templates/app:notify_email_templates (workspace://SpacesStore/2de0f4ac-b6dd-4b91-b1c3-686ba1f2134c)
=====================================
19:31:12,909 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.migrateAttrDropOldTables
RESULT:
Drop tables alf_attributes, alf_global_attributes, alf_list_attribute_entries, alf_map_attribute_entries and sequence alf_attributes_seq
=====================================
19:31:12,909 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.db-V4.0-AclChangeSet
RESULT:
Script completed
=====================================
19:31:12,909 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.db-V4.0-NodeAssoc-Ordering
RESULT:
Script completed
=====================================
19:31:12,909 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.db-V4.0-Node-Locale
RESULT:
Script completed
=====================================
19:31:12,909 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.followingMailTemplates
RESULT:
Imported view into bootstrap location: /app:company_home/app:dictionary/app:email_templates (workspace://SpacesStore/2de0f4ac-b6dd-4b91-b1c3-686ba1f2134c)
=====================================
19:31:12,909 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.activitiesTemplatesUpdate
RESULT:
Updated 6 activities email templates.
=====================================
19:31:12,909 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.db-V4.0-SubscriptionTables
RESULT:
Script completed
=====================================
19:31:12,909 ERROR [org.alfresco.repo.admin.patch.PatchExecuter]
=== Failed to apply patch         ===
ID: patch.avmToAdmRemoteStore
RESULT:
09070007 org.alfresco.service.cmr.model.FileExistsException: Existing file or folder page.component-1-1.site~CCCCCCCCCC~dashboard.xml already exists
   at org.alfresco.repo.model.filefolder.FileFolderServiceImpl.createImpl(FileFolderServiceImpl.java:1200)
   at org.alfresco.repo.model.filefolder.FileFolderServiceImpl.create(FileFolderServiceImpl.java:1167)
   at org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch.migrateNode(AVMToADMRemoteStorePatch.java:545)
   at org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch.access$900(AVMToADMRemoteStorePatch.java:77)
   at org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch$7.execute(AVMToADMRemoteStorePatch.java:397)
   at org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch$7.execute(AVMToADMRemoteStorePatch.java:392)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
   at org.alfresco.repo.admin.patch.impl.AVMToADMRemoteStorePatch.applyInternal(AVMToADMRemoteStorePatch.java:402)
   at org.alfresco.repo.admin.patch.AbstractPatch.applyImpl(AbstractPatch.java:407)
   at org.alfresco.repo.admin.patch.AbstractPatch.access$000(AbstractPatch.java:52)
   at org.alfresco.repo.admin.patch.AbstractPatch$2.doWork(AbstractPatch.java:473)
   at org.alfresco.repo.admin.patch.AbstractPatch$2.doWork(AbstractPatch.java:456)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:519)
   at org.alfresco.repo.admin.patch.AbstractPatch.apply(AbstractPatch.java:478)
   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: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: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 $Proxy92.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:519)
   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: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)

=====================================
19:31:12,911 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 09070008 Not all patches could be applied
   at org.alfresco.repo.admin.patch.PatchExecuter.applyOutstandingPatches(PatchExecuter.java:111)
   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:519)
   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: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)
19:31:41,212 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
19:31:41,324 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
19:31:41,324 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
19:31:41,329 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
19:31:46,747 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 311 Web Scripts (+0 failed), 321 URLs
19:31:46,747 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed)
19:31:46,747 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed)
19:31:47,047 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 5712.99ms)
19:31:47,053 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
19:31:47,057 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js

even it try to remove file inside avm via avm console (http://localhost:8080/alfresco/faces/jsp/admin/avm-console.jsp)  it still have another file say like this after I retry upgrade it.
Anyone know how to solve this problem?  or it should delete entire xml inside 'sitestore:/alfresco/site-data/components' ?

Outcomes