Forum Ametys

Forum de la communauté Ametys

You are not logged in.

#1 07/12/2015 11:09:56

ludo
Guest
Registered: 10/11/2015
Posts: 37

[RESOLU] Bug suite à redémarrage serveur

Bonjour à vous,

Je rencontre un « soucis » avec Ametys.
En effet, suite à une application de patch sécurité (hors tomcat, purement système), j’ai dû redémarrer mon serveur et depuis, tomcat se lance bien mais ametys m’indique une erreur sur Jackrabbit.

Configuration du serveur :
Linux Centos 6.6 - 64b
Tomcat 8
Java 8
Mysql 5.5
Ametys 3.7.1

An error occurred. Please contact the administrator of the application.org.apache.avalon.framework.component.ComponentException: Unable to initialize the ComponentManager (key [org.apache.cocoon.Processor])
                at org.ametys.runtime.cocoon.TreeProcessor.compose(TreeProcessor.java:94)
                at org.apache.avalon.framework.container.ContainerUtil.compose(ContainerUtil.java:173)
                at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:266)
                at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108)
                at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:524)
                at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:583)
                at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
                at org.apache.cocoon.Cocoon.initialize(Cocoon.java:345)
                at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
                at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1435)
                at org.ametys.runtime.servlet.RuntimeServlet.createCocoon(RuntimeServlet.java:225)
                at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:495)
                at org.ametys.runtime.servlet.RuntimeServlet.init(RuntimeServlet.java:171)
                at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1231)
                at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1144)
                at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1031)
                at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4914)
                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5201)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
                at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1101)
                at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1786)
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Caught an exception trying to initialize the component org.ametys.plugins.flipbook.ConvertContentAttachment2ImagesComponent
                at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.initialize(ThreadSafeComponentManager.java:205)
                at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
                at org.ametys.runtime.cocoon.TreeProcessor.compose(TreeProcessor.java:62)
                ... 28 more
Caused by: org.apache.avalon.framework.service.ServiceException: Unable to initialize component org.ametys.plugins.repository.AmetysObjectResolver (key [org.ametys.plugins.repository.AmetysObjectResolver]) (Key='org.ametys.plugins.repository.AmetysObjectResolver')
                at org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:80)
                at org.ametys.plugins.flipbook.AbstractConvertDocument2ImagesComponent.service(AbstractConvertDocument2ImagesComponent.java:75)
                at org.apache.avalon.framework.container.ContainerUtil.service(ContainerUtil.java:143)
                at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.instanciate(ThreadSafeComponentManager.java:376)
                at org.ametys.runtime.plugin.component.PluginsComponentManager$ProxyComponentFactory.newInstance(PluginsComponentManager.java:104)
                at org.ametys.runtime.plugin.component.PluginsComponentManager$ProxyComponentFactory.newInstance(PluginsComponentManager.java:94)
                at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.initialize(ThreadSafeComponentManager.java:200)
                ... 30 more
Caused by: org.apache.avalon.framework.component.ComponentException: Unable to initialize component org.ametys.plugins.repository.AmetysObjectResolver (key [org.ametys.plugins.repository.AmetysObjectResolver])
                at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.lookup(ThreadSafeComponentManager.java:134)
                at org.ametys.runtime.plugin.component.PluginsComponentManager.lookup(PluginsComponentManager.java:64)
                at org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:68)
                ... 36 more
Caused by: org.apache.avalon.framework.service.ServiceException: Unable to initialize component org.ametys.plugins.repository.AmetysObjectFactoryExtensionPoint (key [org.ametys.plugins.repository.AmetysObjectFactoryExtensionPoint]) (Key='org.ametys.plugins.repository.AmetysObjectFactoryExtensionPoint')
                at org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:80)
                at org.ametys.plugins.repository.AmetysObjectResolver.service(AmetysObjectResolver.java:80)
                at org.apache.avalon.framework.container.ContainerUtil.service(ContainerUtil.java:143)
                at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.instanciate(ThreadSafeComponentManager.java:376)
                at org.ametys.runtime.plugin.component.PluginsComponentManager$ProxyComponentFactory.newInstance(PluginsComponentManager.java:104)
                at org.ametys.runtime.plugin.component.PluginsComponentManager$ProxyComponentFactory.newInstance(PluginsComponentManager.java:94)
                at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.lookup(ThreadSafeComponentManager.java:130)
                ... 38 more
Caused by: org.apache.avalon.framework.component.ComponentException: Unable to initialize component org.ametys.plugins.repository.AmetysObjectFactoryExtensionPoint (key [org.ametys.plugins.repository.AmetysObjectFactoryExtensionPoint])
                at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.lookup(ThreadSafeComponentManager.java:134)
                at org.ametys.runtime.plugin.component.PluginsComponentManager.lookup(PluginsComponentManager.java:64)
                at org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:68)
                ... 44 more
Caused by: org.apache.avalon.framework.service.ServiceException: Unable to initialize component javax.jcr.Repository (key [javax.jcr.Repository]) (Key='javax.jcr.Repository')
                at org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:80)
                at org.ametys.plugins.repository.AmetysObjectFactoryExtensionPoint.service(AmetysObjectFactoryExtensionPoint.java:67)
                at org.apache.avalon.framework.container.ContainerUtil.service(ContainerUtil.java:143)
                at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.instanciate(ThreadSafeComponentManager.java:376)
                at org.ametys.runtime.plugin.component.PluginsComponentManager$ProxyComponentFactory.newInstance(PluginsComponentManager.java:104)
                at org.ametys.runtime.plugin.component.PluginsComponentManager$ProxyComponentFactory.newInstance(PluginsComponentManager.java:94)
                at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.lookup(ThreadSafeComponentManager.java:130)
                ... 46 more
Caused by: org.apache.avalon.framework.component.ComponentException: Unable to initialize component javax.jcr.Repository (key [javax.jcr.Repository])
                at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.lookup(ThreadSafeComponentManager.java:134)
                at org.ametys.runtime.plugin.component.PluginsComponentManager.lookup(PluginsComponentManager.java:64)
                at org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:68)
                ... 52 more
Caused by: javax.jcr.RepositoryException: Unable to initialize query handler: org.apache.jackrabbit.core.query.lucene.SearchIndex@3fb81e0d
                at org.apache.jackrabbit.core.config.RepositoryConfigurationParser$1.getQueryHandler(RepositoryConfigurationParser.java:658)
                at org.apache.jackrabbit.core.config.WorkspaceConfig.getQueryHandler(WorkspaceConfig.java:251)
                at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:171)
                at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1862)
                at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doPostInitialize(RepositoryImpl.java:2098)
                at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:2004)
                at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:517)
                at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:324)
                at org.ametys.plugins.repository.provider.AmetysRepository.<init>(AmetysRepository.java:45)
                at org.ametys.plugins.repository.provider.JackrabbitRepository.initialize(JackrabbitRepository.java:77)
                at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
                at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.configureAndStart(ThreadSafeComponentManager.java:392)
                at org.ametys.runtime.plugin.component.PluginsComponentManager$ProxyComponentFactory.newInstance(PluginsComponentManager.java:112)
                at org.ametys.runtime.plugin.component.PluginsComponentManager$ProxyComponentFactory.newInstance(PluginsComponentManager.java:94)
                at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.lookup(ThreadSafeComponentManager.java:130)
                ... 54 more
Caused by: java.io.EOFException
                at java.io.DataInputStream.readFully(DataInputStream.java:197)
                at java.io.DataInputStream.readUTF(DataInputStream.java:609)
                at java.io.DataInputStream.readUTF(DataInputStream.java:564)
                at org.apache.jackrabbit.core.query.lucene.IndexInfos.read(IndexInfos.java:307)
                at org.apache.jackrabbit.core.query.lucene.IndexInfos.<init>(IndexInfos.java:107)
                at org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.java:253)
                at org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:555)
                at org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:78)
                at org.apache.jackrabbit.core.config.RepositoryConfigurationParser$1.get

j’ai beau cherché ce qui aurais pu causer cela, je ne vois pas du tout.

si cela vous parle...


++
Ludo

Last edited by ludo (08/12/2015 18:38:53)

Offline

#2 07/12/2015 15:59:15

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: [RESOLU] Bug suite à redémarrage serveur

Bonjour,

il s'agit d'un problème des index lucene de JCR.
Serveur éteint, il s'agit d'effacer les repertoires index que vous trouverez dans le répertoire du repository.
Par exemple:
* repository\repository\index
* repository\workspaces\live\index
* repository\workspaces\default\index
* repository\workspaces\archives\index

puis redémarrer.
Le rédémarrage sera plus long que d'habitude le temps que JCR réindexe.


Raphael Franchet
Expert Ametys

Offline

#3 08/12/2015 18:38:37

ludo
Guest
Registered: 10/11/2015
Posts: 37

Re: [RESOLU] Bug suite à redémarrage serveur

Bonjour,


merci pour cette réponse, c'était bien cela.

++
Ludo

Offline

Board footer

Powered by FluxBB