4 Replies Latest reply on Jan 16, 2015 10:40 AM by dcarmichael

    Unable to start UAT instance when trying to replicate Production Jive 7.0.2.1

    dcarmichael

      After replcating the DB across to the UAT server ( and modifiying the config so that it matches the UAT server settings )

       

      Used this as the base line for the db dump.

      Jive 7.0 Community Admin Documentation

       

      Does this apply to Jive 7 ?

      How To Replicate Your Jive 4.5 Production Environment to UAT

       

      Have already tried:

      Error starting server

      Having wierd tomcat errors... Also, the error is inconsistent

       

      Any help on this would be great.

       

      On Start up i get the following error in sbs.out:

       

      [2015-01-12 22:44:29] jive_cli started process (20476)

      22:44:43,975 [localhost-startStop-1] INFO org.apache.tomcat.util.digester.Digester - TLD skipped. URI: /struts-tags is already defined

      22:44:44,213 [localhost-startStop-1] INFO org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://www.jivesoftware.com/ is already defined

      22:44:44,220 [localhost-startStop-1] INFO org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://www.opensymphony.com/oscache is already defined

      22:44:44,226 [localhost-startStop-1] INFO org.apache.tomcat.util.digester.Digester - TLD skipped. URI: sitemesh-decorator is already defined

      22:44:44,230 [localhost-startStop-1] INFO org.apache.tomcat.util.digester.Digester - TLD skipped. URI: sitemesh-page is already defined

      22:44:44,385 [localhost-startStop-1] INFO org.apache.tomcat.util.digester.Digester - TLD skipped. URI: /struts-tags is already defined

      22:44:44,757 [localhost-startStop-1] INFO org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://www.opensymphony.com/oscache is already defined

      22:44:44,964 [localhost-startStop-1] INFO com.jivesoftware.community.web.JiveApplicationContextLoaderListener - Initializing Jive SBS via web application context event.

      22:44:44,973 [localhost-startStop-1] INFO com.jivesoftware.community.JiveHome - Community home set from JNDI to '/usr/local/jive/applications/sbs/home'.

      22:44:44,976 [localhost-startStop-1] INFO com.jivesoftware.community.util.ClassPathUtils - JAR copy for resource 'jar:file:/usr/local/jive/applications/template/application/WEB-INF/lib/jive-core-7.0.2.1_105c309.jar!/resources/scripts'.

      22:44:45,694 [localhost-startStop-1] INFO com.jivesoftware.community.JiveHome - Node UUID already present, skipping generation.

      22:44:45,694 [localhost-startStop-1] INFO com.jivesoftware.community.JiveHome - Initialization completed sucessfully.

      22:44:46,053 [localhost-startStop-1] INFO org.logicalcobwebs.proxool.ProxoolFacade - Proxool 0.9.1 (23-Aug-2008 11:10)

      22:44:46,188 [localhost-startStop-1] INFO org.logicalcobwebs.proxool.jive_db - Proxool statistics legend: "s - r  (a/t/o)" > s=served, r=refused (only shown if non-zero), a=active, t=total, o=offline (being tested)

      22:44:46,188 [Prototyper] INFO org.logicalcobwebs.proxool.jive_db - Proxool statistics legend: "s - r  (a/t/o)" > s=served, r=refused (only shown if non-zero), a=active, t=total, o=offline (being tested)

      22:45:04,018 [localhost-startStop-1] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] - Exception sending context initialized event to listener instance of class com.jivesoftware.community.web.JiveApplicationContextLoaderListener

      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [spring-securityContext.xml]: Cannot resolve reference to bean 'securityContextPersistenceFilter' while setting bean property 'filterChainMap' with key [/upgrade/**] with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityContextPersistenceFilter' defined in class path resource [spring-securityContext.xml]: Cannot resolve reference to bean 'cookieSessionSecurityContextRepository' while setting bean property 'securityContextRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cookieSessionSecurityContextRepository': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.jivesoftware.community.aaa.stateless.thin.translator.ThinSecurityContextTranslator com.jivesoftware.community.aaa.stateless.CookieSecurityContextRepository.thinSecurityContextTranslator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'thinSecurityContextTranslator': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.jivesoftware.community.aaa.stateless.thin.translator.ThinAuthenticationIngressTranslatorProvider com.jivesoftware.community.aaa.stateless.thin.translator.ThinSecurityContextTranslator.thinAuthenticationIngressTranslatorProvider; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'thinAuthenticationIngressTranslatorProvider': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.List com.jivesoftware.community.aaa.stateless.thin.translator.ThinAuthenticationIngressTranslatorProvider.ingressTranslators; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jiveUserAuthenticationIngressTranslator': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.jivesoftware.base.profile.MultiProviderUserManager com.jivesoftware.community.aaa.stateless.thin.translator.JiveUserAuthenticationIngressTranslator.userManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManagerImpl' defined in class path resource [spring-managerContext.xml]: Cannot resolve reference to bean 'userContainerManagerImpl' while setting bean property 'userContainerManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userContainerManagerImpl' defined in class path resource [spring-managerContext.xml]: Cannot resolve reference to bean 'entitlementManagerImpl' while setting bean property 'entitlementManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entitlementProviderImpl' defined in class path resource [spring-managerContext.xml]: Cannot resolve reference to bean 'entitlementCacheManager' while setting bean property 'entitlementCacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entitlementCacheManager' defined in class path resource [spring-managerContext.xml]: Cannot resolve reference to bean 'groupManagerImpl' while setting bean property 'groupManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groupManagerImpl' defined in class path resource [spring-managerContext.xml]: Cannot resolve reference to bean 'groupManagerCandidates' while setting bean property 'groupManagers'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groupManagerCandidates' defined in class path resource [spring-managerContext.xml]: Cannot create inner bean 'util:list#5cb52c5a' of type [org.springframework.beans.factory.config.ListFactoryBean] while setting bean property 'source'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'util:list#5cb52c5a': Cannot resolve reference to bean 'dbGroupManagerImpl' while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbGroupManagerImpl' defined in class path resource [spring-managerContext.xml]: Cannot resolve reference to bean 'entitlementManagerImpl' while setting bean property 'entitlementManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationProvider' defined in class path resource [spring-securityContext.xml]: Cannot resolve reference to bean 'permissionsManager' while setting bean property 'permissionsManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'permissionsManager' defined in class path resource [spring-managerContext.xml]: Cannot resolve reference to bean 'taskManagerFacade' while setting bean property 'taskManagerFacade'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'taskManagerFacade' defined in class path resource [com/jivesoftware/base/taskmanager/spring-taskManager.xml]: Cannot resolve reference to bean 'taskManagerEngine' while setting bean property 'taskManagerEngine'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'taskManagerEngine' defined in class path resource [com/jivesoftware/base/taskmanager/spring-taskManager.xml]: Cannot resolve reference to bean 'clusterTaskQueue' while setting bean property 'clusterTaskQueue'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clusterTaskQueue': Invocation of init method failed; nested exception is java.lang.NullPointerException

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:154)

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:379)

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:162)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1391)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1132)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)

        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)

        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)

        at com.jivesoftware.community.lifecycle.JiveApplication.initialize(JiveApplication.java:149)

        at com.jivesoftware.community.Jive.start(Jive.java:143)

        at com.jivesoftware.community.web.JiveApplicationContextLoaderListener.contextInitialized(JiveApplicationContextLoaderListener.java:45)

        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)

        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

        at java.lang.Thread.run(Thread.java:745)

        • Re: Unable to start UAT instance when trying to replicate Production Jive 7.0.2.1
          whoiskevin

          Try my updated document:  Steps for Moving Data to Lower Environments (Prod to Dev)

           

          But it looks like you might have a spring.xml configuration issue or code missing.. Sometimes it is hard to tell.

            • Re: Unable to start UAT instance when trying to replicate Production Jive 7.0.2.1
              dcarmichael

              Having followed the steps, still get the same error wondering how i modifiy the spring.xml file when the installation was done from an RPM.

              I also followed the last note on the Document and reset the Jive home by deleting all the varios files that may be left over from a previous start,

              and still the same error. I validated that EAE and main jive startup  db / passwords we unencrypted in the config files ( validated that they are now encrypted after start)

               

              Not sure how i can validate the spring config when that is puleed from the rpm and not modified by me, was able to start the vanila install of jive ( same version installed that we are running localy )

               

               

              Followed these.

              *****

              This is a scratch note about clearing the boxes if they were previously running

              Clear the boxes

              - cache

              -- cd <jive home>/voldemort/config

              ----- rm cluster.xml

              ----- rm server.properties

              ----- rm stores.xml

              ----- rm -rf .temp

              ---- rm -rf .version

              - eae server  (optional copy eae server files during downtime)

              -- clear services/eae/etc/.json 

              -- Clear the services/eae-service/var/data directory

              -- Clear the services/eae-service/etc/config and node.id file.

              - search      (optional copy search directory indexes during downtime)

              -- clear services/search-service/var

              - web

              -- Clear tomcat work directory  rm -rf <jive_home>/var/work/sbs

              -- cd <jive_home>/applications/sbs/home/

              -- Clear jiveHome attachment and cache directories

              ---- rm -f ./attachments/*.txt

              ---- rm -f ./attachments/cache/*

              ---- rm -f ./images/*.bin

              ---- rm -f ./images/cache/*

              ---- rm -rf ./documents/* 

              ---- rm -rf ./cache/pagecache/*

              ---- rm -rf ./cache/jiveSBS/*

              ---- rm -rf ./cache/<name of your storage/site><anything but pagecache and jiveSBS>

              ---- rm -f ./www/resources/scripts/gen/*

              ---- rm -rf ./plugins/*

              ---- rm -rf ./themes/<your theme names>    <leave custom and palette folders>

              ---- rm ./node.id

              - All boxes clear all logs (rm -rf <jive_home>/var/logs/*)

              ** followed this

            • Re: Unable to start UAT instance when trying to replicate Production Jive 7.0.2.1
              jonaslar

              Following this, because I have  a similar issue upgrading from Jive 4.5.4 to 7.0.3.

              • Re: Unable to start UAT instance when trying to replicate Production Jive 7.0.2.1
                dcarmichael

                The end result was Following this

                 

                1. complete clean new installed on the UAT box.
                2. Stop Uat instance.
                3. Follow this document: Steps for Moving Data to Lower Environments (Prod to Dev)
                  1. ignore the part about removing preinstalled config files
                  2. Update the SQL using the file listed at the bottom.

                               **Make sure that you set the encrypted = false on the all three DB passwords ( core, eae, analytics) as the valuse you upate may not be the encrypted passwords for the db users.

                i am resonably sure that this is the reason i was getting the errors as the section of SBS.out that was failing was mentioled the DB pooling.**

                 

                22:44:46,188 [Prototyper] INFO org.logicalcobwebs.proxool.jive_db - Proxool statistics legend: "s - r  (a/t/o)" > s=served, r=refused (only shown if non-zero), a=active, t=total, o=offline (being tested)

                22:45:04,018 [localhost-startStop-1] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] - Exception sending context initialized event to listener instance of class