AnsweredAssumed Answered

Alfresco - SOLR issue

Question asked by darkmstr on Jul 31, 2012
Latest reply on Aug 13, 2012 by darkmstr
ok now I've been reading almost all the topics in this and the spanish forum still can't find and answer.

this is the catalina.2012-07-30.log
        Jul 31, 2012 8:59:06 AM org.apache.catalina.core.AprLifecycleListener init
        INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/alfresco-4.0.d/java/jre/lib/amd64/server:/opt/alfresco-4.0.d/java/jre/lib/amd64:/opt/alfresco-4.0.d/java/jre/../lib/amd64:/opt/alfresco-4.0.d/postgresql/lib:/opt/alfresco-4.0.d/common/lib::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
        Jul 31, 2012 8:59:06 AM org.apache.coyote.http11.Http11Protocol init
        INFO: Initializing Coyote HTTP/1.1 on http-8080
        Jul 31, 2012 8:59:06 AM org.apache.coyote.http11.Http11Protocol init
        INFO: Initializing Coyote HTTP/1.1 on http-8443
        Jul 31, 2012 8:59:06 AM org.apache.catalina.startup.Catalina load
        INFO: Initialization processed in 686 ms
        Jul 31, 2012 8:59:06 AM org.apache.catalina.core.StandardService start
        INFO: Starting service Catalina
        Jul 31, 2012 8:59:06 AM org.apache.catalina.core.StandardEngine start
        INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
        Jul 31, 2012 8:59:06 AM org.apache.catalina.startup.HostConfig deployDescriptor
        INFO: Deploying configuration descriptor manager.xml
        Jul 31, 2012 8:59:06 AM org.apache.catalina.startup.HostConfig deployDescriptor
        INFO: Deploying configuration descriptor alfresco.xml
        Jul 31, 2012 8:59:08 AM org.apache.catalina.core.StandardContext addApplicationListener
        INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.core.StandardContext start
        SEVERE: Error listenerStart
        Jul 31, 2012 8:59:37 AM org.apache.catalina.core.StandardContext start
        SEVERE: Context [/alfresco] startup failed due to previous errors
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [SolrWatcherScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [SolrWatcherScheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [SolrWatcherScheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-6] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-7] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-8] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-10] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [Thread-4] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [JobAcquisitionThread] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [Timer-2] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [Timer-3] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [MessageDispatcher] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [Timer-6] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [SolrWatcherScheduler_QuartzSchedulerThread] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_QuartzSchedulerThread] but has failed to stop it. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
        SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@ccdb92b]) and a value of type [org.apache.cxf.bus.CXFBusImpl] (value [org.apache.cxf.bus.CXFBusImpl@1637bc9e]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
        SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@25403477]) and a value of type [org.alfresco.util.CachingDateFormat] (value [yyyy-MM-dd]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
        SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [null] (value [org.alfresco.repo.tagging.TagScopePropertyMethodInterceptor$1@1a3483bc]) and a value of type [java.lang.Boolean] (value [true]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
        SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [null] (value [com.sun.xml.bind.v2.ClassFactory$1@6db4b914]) and a value of type [java.util.WeakHashMap] (value [{class org.alfresco.repo.audit.model._3.Audit=java.lang.ref.WeakReference@dc85d20, class org.alfresco.repo.audit.model._3.PathMap=java.lang.ref.WeakReference@5d59e6f1, class org.alfresco.repo.audit.model._3.AuditPath=java.lang.ref.WeakReference@39490818, class org.alfresco.repo.audit.model._3.DataGenerator=java.lang.ref.WeakReference@69b27d09, class java.util.ArrayList=java.lang.ref.WeakReference@452f1015, class javax.xml.bind.annotation.W3CDomHandler=java.lang.ref.WeakReference@14c8f62f, class org.alfresco.repo.audit.model._3.Application=java.lang.ref.WeakReference@159a9252, class org.alfresco.repo.audit.model._3.DataExtractor=java.lang.ref.WeakReference@56fc5092, class org.alfresco.repo.audit.model._3.GenerateValue=java.lang.ref.WeakReference@4f0dcddb, class org.alfresco.repo.audit.model._3.PathMappings=java.lang.ref.WeakReference@13460d69, class org.alfresco.repo.audit.model._3.DataExtractors=java.lang.ref.WeakReference@5c1a7261, class org.alfresco.repo.audit.model._3.DataGenerators=java.lang.ref.WeakReference@4c4b6d84, class org.alfresco.repo.audit.model._3.RecordValue=java.lang.ref.WeakReference@6c031c3d}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
        SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [org.alfresco.repo.policy.BaseBehaviour.StackThreadLocal] (value [org.alfresco.repo.policy.BaseBehaviour$StackThreadLocal@40332031]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
        SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [null] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@5c8691e4]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@6d43f31]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:39 AM org.apache.catalina.startup.HostConfig deployDescriptor
        INFO: Deploying configuration descriptor host-manager.xml
        Jul 31, 2012 8:59:39 AM org.apache.catalina.startup.HostConfig deployWAR
        INFO: Deploying web application archive share.war
        Jul 31, 2012 8:59:44 AM org.apache.catalina.startup.HostConfig deployDirectory
        INFO: Deploying web application directory solr
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
        INFO: No /solr/home in JNDI
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
        INFO: solr home defaulted to 'solr/' (could not find system property or JNDI)
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader <init>
        INFO: Solr home set to 'solr/'
        Jul 31, 2012 8:59:44 AM org.apache.solr.servlet.SolrDispatchFilter init
        INFO: SolrDispatchFilter.init()
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
        INFO: No /solr/home in JNDI
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
        INFO: solr home defaulted to 'solr/' (could not find system property or JNDI)
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.CoreContainer$Initializer initialize
        INFO: looking for solr.xml: /solr/solr.xml
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader <init>
        INFO: Solr home set to 'solr/'
        Jul 31, 2012 8:59:44 AM org.apache.solr.servlet.SolrDispatchFilter init
        Jul 31, 2012 8:59:37 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
        SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [null] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@5c8691e4]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@6d43f31]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
        Jul 31, 2012 8:59:39 AM org.apache.catalina.startup.HostConfig deployDescriptor
        INFO: Deploying configuration descriptor host-manager.xml
        Jul 31, 2012 8:59:39 AM org.apache.catalina.startup.HostConfig deployWAR
        INFO: Deploying web application archive share.war
        Jul 31, 2012 8:59:44 AM org.apache.catalina.startup.HostConfig deployDirectory
        INFO: Deploying web application directory solr
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
        INFO: No /solr/home in JNDI
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
        INFO: solr home defaulted to 'solr/' (could not find system property or JNDI)
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader <init>
        INFO: Solr home set to 'solr/'
        Jul 31, 2012 8:59:44 AM org.apache.solr.servlet.SolrDispatchFilter init
        INFO: SolrDispatchFilter.init()
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
        INFO: No /solr/home in JNDI
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
        INFO: solr home defaulted to 'solr/' (could not find system property or JNDI)
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.CoreContainer$Initializer initialize
        INFO: looking for solr.xml: /solr/solr.xml
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader <init>
        INFO: Solr home set to 'solr/'
        Jul 31, 2012 8:59:44 AM org.apache.solr.servlet.SolrDispatchFilter init
        SEVERE: Could not start SOLR. Check solr/home property
        java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in classpath or 'solr/conf/', cwd=/
                at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:262)
                at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:230)
                at org.apache.solr.core.Config.<init>(Config.java:101)
                at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:130)
                at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:134)
                at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
                at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
                at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
                at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
                at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)
        Jul 31, 2012 8:59:44 AM org.apache.solr.common.SolrException log
        SEVERE: java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in classpath or 'solr/conf/', cwd=/
                at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:262)
                at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:230)
                at org.apache.solr.core.Config.<init>(Config.java:101)
                at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:130)
                at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:134)
                at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
                at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
                at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
                at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
                at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4651)
                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.deployDirectory(HostConfig.java:1041)
                at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
                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:445)
                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)
        Jul 31, 2012 8:59:44 AM org.apache.solr.servlet.SolrDispatchFilter init
        INFO: SolrDispatchFilter.init() done
        Jul 31, 2012 8:59:44 AM org.apache.solr.servlet.SolrServlet init
        INFO: SolrServlet.init()
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
        INFO: No /solr/home in JNDI
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
        INFO: solr home defaulted to 'solr/' (could not find system property or JNDI)
        Jul 31, 2012 8:59:44 AM org.apache.solr.servlet.SolrServlet init
        INFO: SolrServlet.init() done
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
        INFO: No /solr/home in JNDI
        Jul 31, 2012 8:59:44 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
        INFO: solr home defaulted to 'solr/' (could not find system property or JNDI)
        Jul 31, 2012 8:59:44 AM org.apache.solr.servlet.SolrUpdateServlet init
        INFO: SolrUpdateServlet.init() done
        Jul 31, 2012 8:59:44 AM org.apache.catalina.startup.HostConfig deployDirectory
        INFO: Deploying web application directory ROOT
        Jul 31, 2012 8:59:44 AM org.apache.coyote.http11.Http11Protocol start
        INFO: Starting Coyote HTTP/1.1 on http-8080
        Jul 31, 2012 8:59:44 AM org.apache.jk.common.ChannelSocket init
        INFO: JK: ajp13 listening on /0.0.0.0:8009
        Jul 31, 2012 8:59:44 AM org.apache.jk.server.JkMain start
        INFO: Jk running ID=0 time=0/12  config=null
        Jul 31, 2012 8:59:44 AM org.apache.coyote.http11.Http11Protocol start
        INFO: Starting Coyote HTTP/1.1 on http-8443
        Jul 31, 2012 8:59:44 AM org.apache.catalina.startup.Catalina start
        INFO: Server startup in 37979 ms
First of all when I installed Alfresco the DB was empty, there isn't users neither the admin user, so I've done a dump from other alfresco and load it, as I can see my problem is the SOLR route, but I haven't change anything in there, I erased it once and restore it. Before that I thought it was an index problem but erasing it didn't work.
Right now it has been 3 days fighting, I've reinstalled it still doesn't work. Maybe it can be useful but I have also apache-SOLR installed, but don't know how can I see if this is the problem.
I've done 2 "chown -R" first one to give the owner to root, the second one gave the "postgres" user the owner to the folder "postgres" and "alf_data" cause it didn't worked with the owner in root.
Any solution will be welcome, sorry for my English I'm from Colombia.

Outcomes