Not all patches could be applied error on Startup
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 12:12 PM
Hi,
We have a customised version of the web client using a custom content model. It runs fine on our (windows xp) based development systems, but when deploying onto our test environment (red hat) we get the following error on startup.
Our deployment mechanism goes something like:
1. Shutdown apache tomcat
2. Drop old alfresco database
3. Do a mysql dump of dev environment
4. Do a sql load of dump into test environment
5. Copy war from {tomcat.home}/webapps/ on Dev env to {tomcat.home}/webapps/ on Test env
6. Clear out logs
7. Remove old alf_data from test
8. Copy alf_data directory from development environment
9. Try to restart apache tomcat
When restarting, we see the following error:
However, if we remove remove the trasferred alf_data and metadata from the database, i.e. use the code with a blank content store, it works fine. This is causing us some real problems and left us scratching our heads.
We will soon be changing from copying alf_data and mysql dumps to using ACPs, but this method works when copying across development machines, so we're a little puzzled!
We have a customised version of the web client using a custom content model. It runs fine on our (windows xp) based development systems, but when deploying onto our test environment (red hat) we get the following error on startup.
Our deployment mechanism goes something like:
1. Shutdown apache tomcat
2. Drop old alfresco database
3. Do a mysql dump of dev environment
4. Do a sql load of dump into test environment
5. Copy war from {tomcat.home}/webapps/ on Dev env to {tomcat.home}/webapps/ on Test env
6. Clear out logs
7. Remove old alf_data from test
8. Copy alf_data directory from development environment
9. Try to restart apache tomcat
When restarting, we see the following error:
INFO: Deploying web application archive pier.war16:09:00,480 ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to execute command: imconvert /usr/apache/jakarta-tomcat-5.5.7/temp/Alfresco/ImageMagickContentTransformer_init_source_19065.gif /usr/apache/jakarta-tomcat-5.5.7/temp/Alfresco/ImageMagickContentTransformer_init_target_19066.pngMay 5, 2006 4:09:01 PM net.sf.joott.uno.UnoConnection connectINFO: connecting using "socket,host=localhost,port=8100,tcpNoDelay=1"…May 5, 2006 4:09:01 PM net.sf.joott.uno.UnoConnection connectSEVERE: connection failed: com.sun.star.connection.NoConnectException: java.net.ConnectException: Connection refusedMay 5, 2006 4:09:01 PM net.sf.joott.uno.UnoConnection connectINFO: connecting using "socket,host=localhost,port=8100,tcpNoDelay=1"…May 5, 2006 4:09:01 PM net.sf.joott.uno.UnoConnection connectSEVERE: connection failed: com.sun.star.connection.NoConnectException: java.net.ConnectException: Connection refused16:09:01,969 INFO [admin.patch.PatchExecuter] Checking for patches to apply …16:09:02,101 ERROR [admin.patch.PatchExecuter] === Failed to apply patch === ID: patch.savedSearchesFolderRESULT: XPath didn't return any results: root: workspace://SpacesStore/ec26dcbd-6bc5-11da-b99e-9f9cc8093678 xpath: /app:company_home/app:dictionary=====================================16:09:02,103 ERROR [web.context.ContextLoader] Context initialization failedorg.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:3637) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4073) 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:800) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:695) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106) 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:1019) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:683) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)16:09:02,105 ERROR [[Catalina].[localhost].[/pier]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.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:3637) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4073) 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:800) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:695) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106) 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:1019) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:683) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)16:09:02,106 ERROR [[Catalina].[localhost].[/pier]] Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListenerorg.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:3637) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4073) 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:800) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:695) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106) 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:1019) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:683) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)May 5, 2006 4:09:02 PM org.apache.catalina.core.StandardContext startSEVERE: Error listenerStartMay 5, 2006 4:09:02 PM org.apache.catalina.core.StandardContext startSEVERE: Context startup failed due to previous errors16:09:02,110 ERROR [[Catalina].[localhost].[/pier]] Exception sending context destroyed event to listener instance of class org.alfresco.web.app.ContextListenerjava.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:84) at org.alfresco.web.app.ContextListener.contextDestroyed(ContextListener.java:149) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3678) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4293) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4101) 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:800) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:695) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106) 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:1019) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:683) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
However, if we remove remove the trasferred alf_data and metadata from the database, i.e. use the code with a blank content store, it works fine. This is causing us some real problems and left us scratching our heads.
We will soon be changing from copying alf_data and mysql dumps to using ACPs, but this method works when copying across development machines, so we're a little puzzled!
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2006 01:41 PM
Has the "Company Home->Data Dictionary" folder been deleted from your installation?
Thanks,
Kevin
Thanks,
Kevin
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 07:26 PM
Thanks Kevin,
I had forgot that we removed this space a while back experimentally.
Exporting all our documents as an ACP and importing into a clean repository did the trick.
Still strange why it worked ok on development machines but not on our testing platform.
Perhaps it's me, but reading through the error, I couldn't see how we diagnose the Data Dictionary being responsible for the exception thrown by Alfresco. Would it be possible to catch this error and return a friendlier message?
Alternatively, let us know where it should be implemented and we'll try to help out by seeing if we can do it.
Many thanks for your insightful and speedy reply.
I had forgot that we removed this space a while back experimentally.
Exporting all our documents as an ACP and importing into a clean repository did the trick.
Still strange why it worked ok on development machines but not on our testing platform.
Perhaps it's me, but reading through the error, I couldn't see how we diagnose the Data Dictionary being responsible for the exception thrown by Alfresco. Would it be possible to catch this error and return a friendlier message?
Alternatively, let us know where it should be implemented and we'll try to help out by seeing if we can do it.
Many thanks for your insightful and speedy reply.
