onesaitplatform / onesaitplatform-cloud

Onesait Platform Community edition is a free, open-source Digital Platform that anyone can download and use to build a complete solution over it. This repo contains the Cloud Side of the Platform.
https://onesaitplatform.atlassian.net/wiki/spaces/OP/pages/360449/onesait+Platform+Cloud
Other
23 stars 30 forks source link

Controlcenter keeps restarting when getting traffic. #119

Closed FranziskusWild closed 1 month ago

FranziskusWild commented 4 months ago

I am using the basic helm chart and managed to let everything start up. but the moment traffic hits the controlpanel it restarts. Unfortunately there are no relevant logs before that happens, so I have no clue what might be the problem.

But I saw that when starting up there are some errors in the log the might hint to something. But I would need some help to understand what they mean:

[LaunchedURLClassLoader@46219104] abort trouble in: 
public class com.minsait.onesait.platform.config.model.AppChildExport extends com.minsait.onesait.platform.config.model.AppParent:
  private static final long serialVersionUID = 2199595602818161052
  private com.minsait.onesait.platform.config.model.ProjectExport project [RuntimeVisibleAnnotations]
  private com.minsait.onesait.platform.config.model.User user [RuntimeVisibleAnnotations]
  private java.util.Set appRoles [Signature(Ljava/util/Set<Lcom/minsait/onesait/platform/config/model/AppRoleChildExport;>;)] [RuntimeVisibleAnnotations]
  private java.util.Set childApps [Signature(Ljava/util/Set<Lcom/minsait/onesait/platform/config/model/AppChildExport;>;)] [RuntimeVisibleAnnotations]
  public void <init>():
                    ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 79)
                    INVOKESPECIAL com.minsait.onesait.platform.config.model.AppParent.<init> ()V
                    GETSTATIC com.minsait.onesait.platform.config.model.AppChildExport.ajc$tjp_0 Lorg/aspectj/lang/JoinPoint$StaticPart;
                    ALOAD_0
                    ALOAD_0
                    INVOKESTATIC org.aspectj.runtime.reflect.Factory.makeJP (Lorg/aspectj/lang/JoinPoint$StaticPart;Ljava/lang/Object;Ljava/lang/Object;)Lorg/aspectj/lang/JoinPoint;
                    ASTORE_1
    initialization(void com.minsait.onesait.platform.config.model.AppChildExport.<init>())
    | constructor-execution(void com.minsait.onesait.platform.config.model.AppChildExport.<init>())
    | |             ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 63)
    | |             NEW java.util.HashSet
    | |             DUP
    | |             INVOKESPECIAL java.util.HashSet.<init> ()V
    | |             PUTFIELD com.minsait.onesait.platform.config.model.AppChildExport.appRoles Ljava/util/Set;
    | |             RETURN   (line 80)
    | constructor-execution(void com.minsait.onesait.platform.config.model.AppChildExport.<init>())
    initialization(void com.minsait.onesait.platform.config.model.AppChildExport.<init>())
  end public void <init>()

  public void <init>(String, String, String, com.minsait.onesait.platform.config.model.User, String, String, int, com.minsait.onesait.platform.config.model.AppRoleChildExport, java.util.Date, java.util.Date):
                    ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 84)
                    INVOKESPECIAL com.minsait.onesait.platform.config.model.AppParent.<init> ()V
    constructor-execution(void com.minsait.onesait.platform.config.model.AppChildExport.<init>(java.lang.String, java.lang.String, java.lang.String, com.minsait.onesait.platform.config.model.User, java.lang.String, java.lang.String, int, com.minsait.onesait.platform.config.model.AppRoleChildExport, java.util.Date, java.util.Date))
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 63)
    |               NEW java.util.HashSet
    |               DUP
    |               INVOKESPECIAL java.util.HashSet.<init> ()V
    |               PUTFIELD com.minsait.onesait.platform.config.model.AppChildExport.appRoles Ljava/util/Set;
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 85)
    |               ALOAD_1     // Ljava/lang/String; id
    |               INVOKEVIRTUAL com.minsait.onesait.platform.config.model.AppChildExport.setId (Ljava/lang/String;)V
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 86)
    |               ALOAD_2     // Ljava/lang/String; identification
    |               INVOKEVIRTUAL com.minsait.onesait.platform.config.model.AppChildExport.setIdentification (Ljava/lang/String;)V
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 87)
    |               ALOAD_3     // Ljava/lang/String; description
    |               INVOKEVIRTUAL com.minsait.onesait.platform.config.model.AppChildExport.setDescription (Ljava/lang/String;)V
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 88)
    |               ALOAD 4     // Lcom/minsait/onesait/platform/config/model/User; user
    |               INVOKEVIRTUAL com.minsait.onesait.platform.config.model.AppChildExport.setUser (Lcom/minsait/onesait/platform/config/model/User;)V
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 89)
    |               ALOAD 9     // Ljava/util/Date; createAt
    |               INVOKEVIRTUAL com.minsait.onesait.platform.config.model.AppChildExport.setCreatedAt (Ljava/util/Date;)V
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 90)
    |               ALOAD 10     // Ljava/util/Date; updateAt
    |               INVOKEVIRTUAL com.minsait.onesait.platform.config.model.AppChildExport.setUpdatedAt (Ljava/util/Date;)V
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 91)
    |               ALOAD 5     // Ljava/lang/String; secret
    |               INVOKEVIRTUAL com.minsait.onesait.platform.config.model.AppChildExport.setSecret (Ljava/lang/String;)V
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 92)
    |               ALOAD 6     // Ljava/lang/String; user_extra_fields
    |               INVOKEVIRTUAL com.minsait.onesait.platform.config.model.AppChildExport.setUserExtraFields (Ljava/lang/String;)V
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 93)
    |               ILOAD 7     // I tokenValiditySeconds
    |               INVOKESTATIC java.lang.Integer.valueOf (I)Ljava/lang/Integer;
    |               INVOKEVIRTUAL com.minsait.onesait.platform.config.model.AppChildExport.setTokenValiditySeconds (Ljava/lang/Integer;)V
    |               NEW java.util.HashSet   (line 94)
    |               DUP
    |               INVOKESPECIAL java.util.HashSet.<init> ()V
    |               ASTORE 11
    |               ALOAD 8     // Lcom/minsait/onesait/platform/config/model/AppRoleChildExport; appRole   (line 95)
    |               IFNULL L0
    |               ALOAD 11     // Ljava/util/Set; appRoles   (line 96)
    |               ALOAD 8     // Lcom/minsait/onesait/platform/config/model/AppRoleChildExport; appRole
    |               INVOKEINTERFACE java.util.Set.add (Ljava/lang/Object;)Z
    |               POP
    |           L0: ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 98)
    |               ALOAD 11     // Ljava/util/Set; appRoles
    |               INVOKEVIRTUAL com.minsait.onesait.platform.config.model.AppChildExport.setAppRoles (Ljava/util/Set;)V
    |               RETURN   (line 104)
    constructor-execution(void com.minsait.onesait.platform.config.model.AppChildExport.<init>(java.lang.String, java.lang.String, java.lang.String, com.minsait.onesait.platform.config.model.User, java.lang.String, java.lang.String, int, com.minsait.onesait.platform.config.model.AppRoleChildExport, java.util.Date, java.util.Date))
  end public void <init>(String, String, String, com.minsait.onesait.platform.config.model.User, String, String, int, com.minsait.onesait.platform.config.model.AppRoleChildExport, java.util.Date, java.util.Date)

  public boolean equals(Object):
    method-execution(boolean com.minsait.onesait.platform.config.model.AppChildExport.equals(java.lang.Object))
    |               ALOAD_1     // Ljava/lang/Object; obj   (line 108)
    |               IFNONNULL L0
    |               ICONST_0   (line 109)
    |               IRETURN
    |           L0: ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 111)
    |               INVOKEVIRTUAL java.lang.Object.getClass ()Ljava/lang/Class;
    |               ALOAD_1     // Ljava/lang/Object; obj
    |               INVOKEVIRTUAL java.lang.Object.getClass ()Ljava/lang/Class;
    |               IF_ACMPEQ L1
    |               ICONST_0   (line 112)
    |               IRETURN
    |           L1: ALOAD_1     // Ljava/lang/Object; obj   (line 114)
    |               CHECKCAST com.minsait.onesait.platform.config.model.AppChildExport
    |               ASTORE_2
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 115)
    |               INVOKEVIRTUAL com.minsait.onesait.platform.config.model.AppChildExport.getIdentification ()Ljava/lang/String;
    |               IFNULL L2
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 116)
    |               INVOKEVIRTUAL com.minsait.onesait.platform.config.model.AppChildExport.getIdentification ()Ljava/lang/String;
    |               ALOAD_2     // Lcom/minsait/onesait/platform/config/model/AppChildExport; that
    |               INVOKEVIRTUAL com.minsait.onesait.platform.config.model.AppChildExport.getIdentification ()Ljava/lang/String;
    |               INVOKEVIRTUAL java.lang.String.equals (Ljava/lang/Object;)Z
    |               IRETURN
    |           L2: ICONST_0   (line 117)
    |               IRETURN
    method-execution(boolean com.minsait.onesait.platform.config.model.AppChildExport.equals(java.lang.Object))
  end public boolean equals(Object)

  public int hashCode():
    method-execution(int com.minsait.onesait.platform.config.model.AppChildExport.hashCode())
    |               ICONST_1   (line 123)
    |               ANEWARRAY java.lang.Object
    |               DUP
    |               ICONST_0
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this
    |               INVOKEVIRTUAL com.minsait.onesait.platform.config.model.AppChildExport.getIdentification ()Ljava/lang/String;
    |               AASTORE
    |               INVOKESTATIC java.util.Objects.hash ([Ljava/lang/Object;)I
    |               IRETURN
    method-execution(int com.minsait.onesait.platform.config.model.AppChildExport.hashCode())
  end public int hashCode()

  public com.minsait.onesait.platform.config.model.ProjectExport getProject():
    method-execution(com.minsait.onesait.platform.config.model.ProjectExport com.minsait.onesait.platform.config.model.AppChildExport.getProject())
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 53)
    | field-get(com.minsait.onesait.platform.config.model.ProjectExport com.minsait.onesait.platform.config.model.AppChildExport.project)
    | |             GETFIELD com.minsait.onesait.platform.config.model.AppChildExport.project Lcom/minsait/onesait/platform/config/model/ProjectExport;
    | field-get(com.minsait.onesait.platform.config.model.ProjectExport com.minsait.onesait.platform.config.model.AppChildExport.project)
    |               ARETURN
    method-execution(com.minsait.onesait.platform.config.model.ProjectExport com.minsait.onesait.platform.config.model.AppChildExport.getProject())
  end public com.minsait.onesait.platform.config.model.ProjectExport getProject()

  public void setProject(com.minsait.onesait.platform.config.model.ProjectExport):
    method-execution(void com.minsait.onesait.platform.config.model.AppChildExport.setProject(com.minsait.onesait.platform.config.model.ProjectExport))
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 54)
    |               ALOAD_1     // Lcom/minsait/onesait/platform/config/model/ProjectExport; project
    |               PUTFIELD com.minsait.onesait.platform.config.model.AppChildExport.project Lcom/minsait/onesait/platform/config/model/ProjectExport;
    |               RETURN
    method-execution(void com.minsait.onesait.platform.config.model.AppChildExport.setProject(com.minsait.onesait.platform.config.model.ProjectExport))
  end public void setProject(com.minsait.onesait.platform.config.model.ProjectExport)

  public com.minsait.onesait.platform.config.model.User getUser():
    method-execution(com.minsait.onesait.platform.config.model.User com.minsait.onesait.platform.config.model.AppChildExport.getUser())
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 59)
    | field-get(com.minsait.onesait.platform.config.model.User com.minsait.onesait.platform.config.model.AppChildExport.user)
    | |             GETFIELD com.minsait.onesait.platform.config.model.AppChildExport.user Lcom/minsait/onesait/platform/config/model/User;
    | field-get(com.minsait.onesait.platform.config.model.User com.minsait.onesait.platform.config.model.AppChildExport.user)
    |               ARETURN
    method-execution(com.minsait.onesait.platform.config.model.User com.minsait.onesait.platform.config.model.AppChildExport.getUser())
  end public com.minsait.onesait.platform.config.model.User getUser()

  public void setUser(com.minsait.onesait.platform.config.model.User):
    method-execution(void com.minsait.onesait.platform.config.model.AppChildExport.setUser(com.minsait.onesait.platform.config.model.User))
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 60)
    |               ALOAD_1     // Lcom/minsait/onesait/platform/config/model/User; user
    |               PUTFIELD com.minsait.onesait.platform.config.model.AppChildExport.user Lcom/minsait/onesait/platform/config/model/User;
    |               RETURN
    method-execution(void com.minsait.onesait.platform.config.model.AppChildExport.setUser(com.minsait.onesait.platform.config.model.User))
  end public void setUser(com.minsait.onesait.platform.config.model.User)

  public java.util.Set getAppRoles():
    method-execution(java.util.Set com.minsait.onesait.platform.config.model.AppChildExport.getAppRoles())
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 65)
    | field-get(java.util.Set com.minsait.onesait.platform.config.model.AppChildExport.appRoles)
    | |             GETFIELD com.minsait.onesait.platform.config.model.AppChildExport.appRoles Ljava/util/Set;
    | field-get(java.util.Set com.minsait.onesait.platform.config.model.AppChildExport.appRoles)
    |               ARETURN
    method-execution(java.util.Set com.minsait.onesait.platform.config.model.AppChildExport.getAppRoles())
  end public java.util.Set getAppRoles()

  public void setAppRoles(java.util.Set):
    method-execution(void com.minsait.onesait.platform.config.model.AppChildExport.setAppRoles(java.util.Set))
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 66)
    |               ALOAD_1     // Ljava/util/Set; appRoles
    |               PUTFIELD com.minsait.onesait.platform.config.model.AppChildExport.appRoles Ljava/util/Set;
    |               RETURN
    method-execution(void com.minsait.onesait.platform.config.model.AppChildExport.setAppRoles(java.util.Set))
  end public void setAppRoles(java.util.Set)

  public java.util.Set getChildApps():
    method-execution(java.util.Set com.minsait.onesait.platform.config.model.AppChildExport.getChildApps())
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 74)
    | field-get(java.util.Set com.minsait.onesait.platform.config.model.AppChildExport.childApps)
    | |             GETFIELD com.minsait.onesait.platform.config.model.AppChildExport.childApps Ljava/util/Set;
    | field-get(java.util.Set com.minsait.onesait.platform.config.model.AppChildExport.childApps)
    |               ARETURN
    method-execution(java.util.Set com.minsait.onesait.platform.config.model.AppChildExport.getChildApps())
  end public java.util.Set getChildApps()

  public void setChildApps(java.util.Set):
    method-execution(void com.minsait.onesait.platform.config.model.AppChildExport.setChildApps(java.util.Set))
    |               ALOAD_0     // Lcom/minsait/onesait/platform/config/model/AppChildExport; this   (line 75)
    |               ALOAD_1     // Ljava/util/Set; childApps
    |               PUTFIELD com.minsait.onesait.platform.config.model.AppChildExport.childApps Ljava/util/Set;
    |               RETURN
    method-execution(void com.minsait.onesait.platform.config.model.AppChildExport.setChildApps(java.util.Set))
  end public void setChildApps(java.util.Set)

end public class com.minsait.onesait.platform.config.model.AppChildExport
 -- (BCException) visiting a false expression
when weaving classes 
when weaving 

visiting a false expression
when weaving classes 
when weaving 

org.aspectj.weaver.BCException: visiting a false expression
when weaving classes 
when weaving 

    at org.aspectj.weaver.bcel.BcelRenderer.visit(BcelRenderer.java:203)
    at org.aspectj.weaver.ast.Literal.accept(Literal.java:29)
    at org.aspectj.weaver.bcel.BcelRenderer.recur(BcelRenderer.java:110)
    at org.aspectj.weaver.bcel.BcelRenderer.renderTest(BcelRenderer.java:100)
    at org.aspectj.weaver.bcel.BcelAdvice.getTestInstructions(BcelAdvice.java:702)
    at org.aspectj.weaver.bcel.BcelAdvice.getAdviceInstructions(BcelAdvice.java:527)
    at org.aspectj.weaver.bcel.BcelShadow.getAfterReturningAdviceDispatchInstructions(BcelShadow.java:1806)
    at org.aspectj.weaver.bcel.BcelShadow.weaveAfterReturning(BcelShadow.java:1719)
    at org.aspectj.weaver.bcel.BcelAdvice.implementOn(BcelAdvice.java:365)
    at org.aspectj.weaver.Shadow.implementMungers(Shadow.java:645)
    at org.aspectj.weaver.Shadow.implement(Shadow.java:547)
    at org.aspectj.weaver.bcel.BcelClassWeaver.positionAndImplement(BcelClassWeaver.java:1662)
    at org.aspectj.weaver.bcel.BcelClassWeaver.weave(BcelClassWeaver.java:510)
    at org.aspectj.weaver.bcel.BcelClassWeaver.weave(BcelClassWeaver.java:103)
    at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:1707)
    at org.aspectj.weaver.bcel.BcelWeaver.weaveWithoutDump(BcelWeaver.java:1651)
    at org.aspectj.weaver.bcel.BcelWeaver.weaveAndNotify(BcelWeaver.java:1418)
    at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:1192)
    at org.aspectj.weaver.tools.WeavingAdaptor.getWovenBytes(WeavingAdaptor.java:549)
    at org.aspectj.weaver.tools.WeavingAdaptor.weaveClass(WeavingAdaptor.java:385)
    at org.aspectj.weaver.loadtime.Aj.preProcess(Aj.java:115)
    at org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:51)
    at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244)
    at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188)
    at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:541)
    at java.base/java.lang.ClassLoader.defineClass1(Native Method)
    at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
    at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
    at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:524)
    at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:427)
    at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:421)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
    at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:420)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
    at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:151)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Class.java:467)
    at org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader.loadFromParent(TomcatEmbeddedWebappClassLoader.java:114)
    at org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader.doLoadClass(TomcatEmbeddedWebappClassLoader.java:87)
    at org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader.loadClass(TomcatEmbeddedWebappClassLoader.java:70)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1220)
    at org.hibernate.boot.registry.classloading.internal.AggregatedClassLoader.findClass(AggregatedClassLoader.java:202)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Class.java:467)
    at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:130)
    at org.hibernate.boot.model.source.internal.annotations.AnnotationMetadataSourceProcessorImpl.<init>(AnnotationMetadataSourceProcessorImpl.java:101)
    at org.hibernate.boot.model.process.spi.MetadataBuildingProcess$1.<init>(MetadataBuildingProcess.java:164)
    at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:158)
    at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1460)
    at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1494)
    at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58)
    at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365)
    at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409)
    at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396)
    at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:330)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113)
    at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:693)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:510)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:374)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:134)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1707)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1452)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:642)
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:642)
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:642)
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:410)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213)
    at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:213)
    at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:204)
    at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:98)
    at org.springframework.boot.web.servlet.ServletContextInitializerBeans.<init>(ServletContextInitializerBeans.java:86)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:262)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:236)
    at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4940)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1328)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1318)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:795)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1328)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1318)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:249)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:428)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:922)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486)
    at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123)
    at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:104)
    at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:481)
    at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:184)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:162)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292)
    at com.minsait.onesait.platform.controlpanel.ControlPanelWebApplication.main(ControlPanelWebApplication.java:104)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
    at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
    at com.minsait.onesait.platform.controlpanel.ControlPanelWebBootstrapApplication.main(ControlPanelWebBootstrapApplication.java:26)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
    at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)

Some help would be apriciated.

onesaitplatform commented 4 months ago

Hi,

I suppose those logs are from the standard output, but for finding the problem, you should better check the ones you can obtain from the directory /var/log/platform-logs in the pod. If you can paste here those logs, it would be appreciated. Also, is the pod marked as ready (1/1) at anytime?

Best Regards, Onesait Platform Team

FranziskusWild commented 4 months ago

Thanks for answering so swiftly :)

Find the log attached: CC-log.txt

Update: (this time I catched the errors that actually lead to the shutdown, I think) CC-log.txt

FranziskusWild commented 4 months ago

ERROR com.hazelcast.instance.impl.Node - [10.244.2.100]:5701 [onesaitplatform] [5.1.3] Could not join cluster. Shutting down now!

Looks like Hazelcast is the culprit, right?

onesaitplatform commented 4 months ago

Hi,

it seems that it is a Hazelcast problem, the cacheservice and zookeeper modules are up and running?

Best Regards, Onesait Platform Team

FranziskusWild commented 4 months ago

Hi there,

Yep, the Helm Charts sets the controlcenter to you use zookeeper and it failed to connect. I set HZ_SERVICE_DISCOVERY_STRATEGY to service and that made it starts up correctly.

Zookeeper and cacheservice where running.

onesaitplatform-control-panel 07:46:07.510 [main-SendThread(zookeeper:2181)] INFO org.apache.zookeeper.ClientCnxn - Session establishment complete on server zookeeper/10.0.72.7:2181, session id = 0x1002a2a22010000, negotiated timeout = 60000 -> it seems to be connected to zookeeper, but unable 'to join the cluster' ...

FranziskusWild commented 4 months ago

So to sum up:

Do you have an idea on what might be the problem? `

onesaitplatform commented 4 months ago

Hi,

it sounds quite strange, because we have deployed it in an Openshift cluster and in a Rancher managed cluster and we had no problems with the connection. Where are you deploying the helm charts? Have you changed anything in the values.yml?

Best Regards, Onesait Platform Team

FranziskusWild commented 4 months ago

Hi again,

we are deploying in an AKS Cluster. We rendered the helm chart and are using the CRDs directly, so that we have more control (f.e. using StatefullSets instead of Deployments for DBs later). But we started out with the original values.

Here are the values provided to the ConrtolPanel:

  HZ_SERVICE_DISCOVERY_STRATEGY: "zookeeper"
  SCHEDULERDBBURL: "jdbc:mysql://configdb:3306/onesaitplatform_scheduler?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false&autoReconnect=true"
  SCHEDULERDBBUSER: "root"
  SCHEDULERDBBDRIVER: "com.mysql.cj.jdbc.Driver"
  SCHEDULERDBBDIALECT: "org.hibernate.dialect.MySQL5Dialect"
  QUARTZ_DRIVER: "org.quartz.impl.jdbcjobstore.StdJDBCDelegate"
  HZ_ZOOKEEPER_URL: "zookeeper:2181"
  CAPTCHA_ON: "false"
  CLOUD_GATEWAY: "https://localhost"
  HTTP_LOG_LEVEL: "TRACE"
  KAFKAENABLED: "false"
  KAFKAHOST: "kafkaservice"
  KSQLENABLE: "false"
  SERVER_NAME: "localhost"
  STREAMSETS_SDC_VERSION: "3.18.1"
  TWOFA_ENABLED: "false"
  MULTITENANCY_ENABLED: "false"
  AUTH_PROVIDER: "configdb"
  LDAP_ADMIN_DN: ""
  LDAP_ADMIN_PASSWORD: ""
  LDAP_ADMIN_WHITELIST: "administrator,admin"
  LDAP_AUTH_REGEX: "(.*)"
  LDAP_BASE_DN: "OU=''"
  LDAP_DEFAULT_ROLE: "ROLE_USER"
  LDAP_GROUP_WHITELIST: ""
  LDAP_IGNORE_PARTIAL_RESULT: "false"
  LDAP_IMPORT_USERS: "true"
  LDAP_ROLES_MEMBER_ATT: ""
  LDAP_URL: ""
  AUDITGLOBALNOTIFY: "false"
  ELASTICSEARCH_ENABLED: "false"
  CONFIGDBMASTERURL: "jdbc:mysql://configdb:3306/onesaitplatform_master_config?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false&autoReconnect=true"
  CONFIGDBURL: "jdbc:mysql://configdb:3306/onesaitplatform_config?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=true&autoReconnect=true&nullDatabaseMeansCurrent=true"
  CONFIGDBUSER: "root"
  CONFIGDB_DRIVER: "com.mysql.cj.jdbc.Driver"
  CONFIGDB_DIALECT: "org.hibernate.dialect.MySQL5InnoDBDialect"
  REALTIMEDBUSER: "platformadmin"
  REALTIMEDBSERVERS: "realtimedb:27017"
  ONESAIT_PROPERTIES: "{\"spring\":{\"profile\":{\"active\":\"dev\"}},\"onesaitplatform\":{\"webproject\":{\"rootfolder\":{\"path\":\"/opt/bitnami/nginx/webprojects/\"}}}}"
  NOTEBOOKPLATFORMAUTH: "true"
FranziskusWild commented 4 months ago

And it seems to be the same problem with the cacher server. It connects first, but the can't join the cluster.

Is it maybe a configuration problem with the zookeeper instanz. We have no explicit env vars in the Deploment, is that correct?

And also, would it be possible to get the missing Dockerfiles for zookeeper (and kafka, mariadb, elasticsearch), to better understand the changes you made to the original images?

Thanks a lot

onesaitplatform commented 4 months ago

Hi,

so the problem is with the zookeeper connection, because cacheserver must be started too. I think there might be some configuration issue, because zookeeper has some variables defined in the chart. This one should be set ZOOKEEPER_CLIENT_PORT to 2181. Maybe it depends on the kubernetes version, so there is no proper communication with zookeeper. Which version do you have in AKS?

Sorry, but Dockerfiles are only available in the enterprise version.

Best Regards, Onesait Platform Team

FranziskusWild commented 4 months ago

Hi there,

kubernetes version is 1.29.

Cacheservice is running with:

            - name: HZ_SERVICE_DISCOVERY_STRATEGY
              value: "zookeeper"
            - name: HZ_ZOOKEEPER_URL
              value: "zookeeper:2181"

and zookepper is running with:

            - name: ZOOKEEPER_CLIENT_PORT
              value: "2181"
FranziskusWild commented 4 months ago

The reason I asked for the Dockerfiles is that, for example with mariadb we thought about using the operator, but we would need to now what configs are needed. Is that something you could share?

FranziskusWild commented 4 months ago

Ok, I got it to run. I cleaned everything up and startet everything piece by piece. And now the controlcenter works. Unfortunately, I am not sure what the problem actually was. Maybe some of the services can't handle a situation where there dependencies are not up yet.

I want to thank you for your prompt and helpful support. Very appreciated.