Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-45495

Ubuntu 20.04: Failed to start IgniteSpringBean

    XMLWordPrintable

Details

    • Bug
    • Status: OPEN
    • Major
    • Resolution: Unresolved
    • 21.1
    • None
    • Kernel
    • None
    • Hide

      This happens in a fresh installation in Ubuntu 20.04 with the mentioned requirements and a minimum setup, just DB and filesystem.

      Show
      This happens in a fresh installation in Ubuntu 20.04 with the mentioned requirements and a minimum setup, just DB and filesystem.

    Description

      Reproduced in a fresh installation in Ubuntu 20.04.2 using the following environment:

       

      Distributor ID: Ubuntu
      Description:    Ubuntu 20.04.2 LTS
      Release:        20.04
      Codename:       focal
      
      
      mysql  Ver 8.0.25-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
      
      
      openjdk version "1.8.0_292"
      OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~20.04-b10)
      OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
      
      
      tomcat9-common/focal-updates,focal-security,now 9.0.31-1ubuntu0.1 all [installed,automatic]
      

       

      Looks like there's a problem with Ignite and Sakai won't start, this is the error when starting up:

       

      14-May-2021 09:11:14.496 INFO [main] org.sakaiproject.ignite.IgniteConfigurationAdapter.createInstance Ignite configured with home=[/var/lib/tomcat9/sakai/ignite/qa-01], node=[qa-01], name=[qa-global], client mode=[false], tcp ports=[53066..53075], discovery ports=[0..9]
      14-May-2021 09:11:14.518 WARN [main] org.sakaiproject.util.SakaiApplicationContext.refresh Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.component.SakaiPropertyPromoter' defined in class path resource [org/sakaiproject/config/sakai-configuration.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.config.internalCacheAdvisor': Cannot resolve reference to bean 'org.springframework.cache.annotation.AnnotationCacheOperationSource#0' while setting bean property 'cacheOperationSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.annotation.AnnotationCacheOperationSource#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.config.internalJCacheAdvisor': Cannot resolve reference to bean 'org.springframework.cache.jcache.interceptor.DefaultJCacheOperationSource#0' while setting bean property 'cacheOperationSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.jcache.interceptor.DefaultJCacheOperationSource#0': Cannot resolve reference to bean 'org.sakaiproject.ignite.SakaiCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.ignite.SakaiCacheManager' defined in file [/var/lib/tomcat9/components/sakai-kernel-impl/WEB-INF/ignite-components.xml]: Cannot resolve reference to bean 'org.sakaiproject.ignite.SakaiIgnite' while setting bean property 'sakaiIgnite'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.ignite.SakaiIgnite' defined in file [/var/lib/tomcat9/components/sakai-kernel-impl/WEB-INF/ignite-components.xml]: Invocation of init method failed; nested exception is class org.apache.ignite.IgniteException: Failed to start IgniteSpringBean
      Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.config.impl.StoredConfigService' defined in file [/var/lib/tomcat9/components/sakai-kernel-impl/WEB-INF/configstore-components.xml]: Cannot resolve reference to bean 'org.sakaiproject.config.api.HibernateConfigItemDao' while setting bean property 'dao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.config.api.HibernateConfigItemDao' defined in file [/var/lib/tomcat9/components/sakai-kernel-impl/WEB-INF/configstore-components.xml]: Cannot resolve reference to bean 'org.sakaiproject.springframework.orm.hibernate.GlobalTransactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.springframework.orm.hibernate.GlobalTransactionManager' defined in file [/var/lib/tomcat9/components/sakai-kernel-impl/WEB-INF/db-components.xml]: Cannot resolve reference to bean 'org.sakaiproject.springframework.orm.hibernate.GlobalSessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.springframework.orm.hibernate.GlobalSessionFactory' defined in file [/var/lib/tomcat9/components/sakai-kernel-impl/WEB-INF/db-components.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in file [/var/lib/tomcat9/components/sakai-kernel-impl/WEB-INF/db-components.xml]: Cannot resolve reference to bean 'org.sakaiproject.ignite.SakaiIgniteConfiguration' while setting bean property 'ignite'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'org.sakaiproject.ignite.SakaiIgniteConfiguration': org.springframework.beans.factory.FactoryBeanNotInitializedException: org.sakaiproject.ignite.IgniteConfigurationAdapter does not support circular references
      

      After reading the full stack trace, looks like it's related with this error setting the work directory:

       

      Caused by: class org.apache.ignite.IgniteCheckedException: Work directory does not exist and cannot be created: /var/lib/tomcat9/sakai/ignite/qa-01/workCaused by: class org.apache.ignite.IgniteCheckedException: Work directory does not exist and cannot be created: /var/lib/tomcat9/sakai/ignite/qa-01/work at org.apache.ignite.internal.util.IgniteUtils.workDirectory(IgniteUtils.java:9440) at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.initializeConfiguration(IgnitionEx.java:2188) at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1697) at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1117) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:615) at org.apache.ignite.IgniteSpring.start(IgniteSpring.java:66) at org.apache.ignite.IgniteSpringBean.afterSingletonsInstantiated(IgniteSpringBean.java:172)
      

       

      Confirmed that the directory exists and the process user owner has permissions:

      root@XXXXXXXXX:/var/lib/tomcat9/sakai/ignite/qa-01# pwd
      /var/lib/tomcat9/sakai/ignite/qa-01
      root@XXXXXXXXX:/var/lib/tomcat9/sakai/ignite/qa-01# ls -lrt
      total 4
      drwxr-xr-x 2 tomcat tomcat 4096 May 14 10:22 work
      root@XXXXXXXXX:/var/lib/tomcat9/sakai/ignite/qa-01#
      
      

       

      Gliffy Diagrams

        Zeplin

          Attachments

            Activity

              People

                ern Earle R Nietzel
                farreri Miguel Pellicer
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Git Integration