cancel
Showing results for 
Search instead for 
Did you mean: 

Error applying patches

steel
Champ in-the-making
Champ in-the-making
I am encountering an error when upgrading the 1.2 RC1 schema to 1.2.

10:57:11,792 INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
10:57:12,603 INFO  [admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.guestPersonPermission
RESULT:
Updated Guest Person permission from 'Consumer' to 'Read'
=====================================
10:57:12,603 ERROR [admin.patch.PatchExecuter]
=== Failed to apply patch         ===
ID: patch.savedSearchesPermission
RESULT:
XPath didn't return any results:
   root: workspace://SpacesStore/8a2599f6-a00d-11da-a55c-cfc22b16149b
   xpath: /app:company_home/app:dictionary
=====================================
10:57:12,603 INFO  [admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.updateGuestPermission
RESULT:
Created the following permission reference names: [Consumer]. 
Updated 11 permission entries.
=====================================
10:57:12,613 ERROR [web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Not all patches could be applied
   at org.alfresco.repo.admin.patch.PatchExecuter.applyOutstandingPatches(PatchExecuter.java:99)
   at org.alfresco.repo.admin.patch.PatchExecuter.onApplicationEvent(PatchExecuter.java:112)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:45)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:225)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4162)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Any ideas?

I guess I can specifically omit this patch. But any reason why it can't any results.
3 REPLIES 3

kevinr
Star Contributor
Star Contributor
The patch.savedSearchesPermission is responsible for allowing users access to the following folder:
Company Home > Data Dictionary > Saved Searches
Can you see if this folder exists on your system? As a previous patch should have created it - i.e. if it's been deleted or moved then the patch will not apply correctly. If the folder has been removed, you can comment out the patch to allow the installation to proceed.

Thanks,

Kevin

steel
Champ in-the-making
Champ in-the-making
The patch.savedSearchesPermission is responsible for allowing users access to the following folder:
Company Home > Data Dictionary > Saved Searches
Can you see if this folder exists on your system? As a previous patch should have created it - i.e. if it's been deleted or moved then the patch will not apply correctly. If the folder has been removed, you can comment out the patch to allow the installation to proceed.

Thanks,

Kevin

You are correct this dir structure doesn't exist anymore. I imported the dir structure from another clean installation and everything works great.
thanks.

rfinney
Champ in-the-making
Champ in-the-making
I've relocated the Data Dictionary to a different folder.  Alfresco did not have any problems with it, until I installed AlfrescoWCMCommunity-2.0-Linux-x86-Install.  Once I installed this, I'm not getting this error.  I want to keep the Data Dictionary in a folder that off from the Company Home folder.  Where/how can I make the changes so the patch process completes?

Thanks.

Bob