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

Dashboard engine shuts down imediatly after restart #129

Closed FranziskusWild closed 1 month ago

FranziskusWild commented 1 month ago

After the rebuild initiated by #126, now the dashboard engine shuts down immediately after start up.

We retried with the latest tag (which seems to be the old build as it dates back one month) and it worked as intended: grafik

Dashboard engine logs:

2024-05-29T09:35:20.216Z | Starting DashboardEngineApplication using Java 17.0.6 on 950839eae8a2 with PID 7 (/app.jar started by onesait in /application)
2024-05-29T09:35:20.217Z | The following 1 profile is active: "docker"
2024-05-29T09:35:25.568Z | Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2024-05-29T09:35:26.193Z | Finished Spring Data repository scanning in 618 ms. Found 136 JPA repository interfaces.
2024-05-29T09:35:26.194Z | Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2024-05-29T09:35:26.265Z | Finished Spring Data repository scanning in 70 ms. Found 16 JPA repository interfaces.
2024-05-29T09:35:27.228Z | Post-processing PropertySource instances
2024-05-29T09:35:27.284Z | Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy
2024-05-29T09:35:27.287Z | Converting PropertySource servletConfigInitParams [org.springframework.core.env.PropertySource$StubPropertySource] to EncryptablePropertySourceWrapper
2024-05-29T09:35:27.287Z | Converting PropertySource spring.application.json [org.springframework.boot.env.SpringApplicationJsonEnvironmentPostProcessor$JsonPropertySource] to EncryptableMapPropertySourceWrapper
2024-05-29T09:35:27.288Z | Converting PropertySource systemProperties [org.springframework.core.env.PropertiesPropertySource] to EncryptableMapPropertySourceWrapper
2024-05-29T09:35:27.288Z | Converting PropertySource servletContextInitParams [org.springframework.core.env.PropertySource$StubPropertySource] to EncryptablePropertySourceWrapper
2024-05-29T09:35:27.289Z | Converting PropertySource Config resource 'class path resource [application.yml]' via location 'optional:classpath:/' [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper
2024-05-29T09:35:27.289Z | Converting PropertySource Config resource 'class path resource [application-docker.yml]' via location 'optional:classpath:/' [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper
2024-05-29T09:35:27.289Z | Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper
2024-05-29T09:35:27.289Z | Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableMapPropertySourceWrapper
2024-05-29T09:35:27.379Z | Property Resolver custom Bean not found with name 'encryptablePropertyResolver'. Initializing Default Property Resolver
2024-05-29T09:35:27.381Z | Bean 'tenant2SchemaMapper' of type [com.minsait.onesait.platform.multitenant.Tenant2SchemaMapper] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2024-05-29T09:35:27.381Z | Property Detector custom Bean not found with name 'encryptablePropertyDetector'. Initializing Default Property Detector
2024-05-29T09:35:27.384Z | Autowired annotation is not supported on static fields: private static java.util.List com.minsait.onesait.platform.commons.security.PasswordEncoder.passwordEncoders
2024-05-29T09:35:27.392Z | Bean 'jasyptConfig' of type [com.minsait.onesait.platform.encryptor.config.JasyptConfig$$EnhancerBySpringCGLIB$$98d60786] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2024-05-29T09:35:27.414Z | Bean 'jasyptStringEncryptor' of type [org.jasypt.encryption.pbe.PooledPBEStringEncryptor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2024-05-29T09:35:27.415Z | Found Custom Encryptor Bean org.jasypt.encryption.pbe.PooledPBEStringEncryptor@4492eede with name: jasyptStringEncryptor
2024-05-29T09:35:27.484Z | Bean 'passwordEncoderSHA2' of type [com.minsait.onesait.platform.commons.security.PasswordEncoderSHA2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2024-05-29T09:35:27.492Z | Bean 'passwordEncoderSHA3' of type [com.minsait.onesait.platform.commons.security.PasswordEncoderSHA3] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2024-05-29T09:35:27.498Z | Bean 'passwordEncoder' of type [com.minsait.onesait.platform.commons.security.PasswordEncoder] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2024-05-29T09:35:27.500Z | Bean 'configDBMasterConfig' of type [com.minsait.onesait.platform.config.ConfigDBMasterConfig$$EnhancerBySpringCGLIB$$5bb506ad] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2024-05-29T09:35:27.505Z | Loaded master PersistenceExceptionTranslationPostProcessor
2024-05-29T09:35:28.022Z | Bean 'org.springframework.boot.autoconfigure.security.oauth2.method.OAuth2MethodSecurityExpressionHandlerConfiguration' of type [org.springframework.boot.autoconfigure.security.oauth2.method.OAuth2MethodSecurityExpressionHandlerConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2024-05-29T09:35:28.028Z | Bean 'methodSecurityExpressionHandler' of type [org.springframework.security.oauth2.provider.expression.OAuth2MethodSecurityExpressionHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2024-05-29T09:35:28.244Z | Logging initialized @11765ms to org.eclipse.jetty.util.log.Slf4jLog
2024-05-29T09:35:28.557Z | Server initialized with port: 18300
2024-05-29T09:35:28.561Z | jetty-9.4.51.v20230217; built: 2023-02-17T08:19:37.309Z; git: b45c405e4544384de066f814ed42ae3dceacdd49; jvm 17.0.6+10-alpine-r0
2024-05-29T09:35:28.594Z | Root WebApplicationContext: initialization completed in 7682 ms
2024-05-29T09:35:28.594Z | Initializing Spring embedded WebApplicationContext
2024-05-29T09:35:29.715Z | DefaultSessionIdManager workerName=node0
2024-05-29T09:35:29.717Z | No SessionScavenger set, using defaults
2024-05-29T09:35:29.719Z | node0 Scavenging every 660000ms
2024-05-29T09:35:29.728Z | Started @13249ms
2024-05-29T09:35:29.728Z | Started o.s.b.w.e.j.JettyEmbeddedWebAppContext@40d23c82{application,/dashboardengine,[file:///tmp/jetty-docbase.18300.5521464739827762741/, jar:file:/app.jar!/BOOT-INF/lib/swagger-ui-4.5.0.jar!/META-INF/resources],AVAILABLE}
2024-05-29T09:35:30.422Z | master-hikari-pool - Starting...
2024-05-29T09:35:30.724Z | master-hikari-pool - Start completed.
2024-05-29T09:35:31.693Z | Initialized JPA EntityManagerFactory for persistence unit 'onesaitPlatform-masterdb'
2024-05-29T09:35:32.280Z | JSqlParser is in classpath. If applicable JSqlParser will be used.
2024-05-29T09:35:33.085Z | Loaded tenant multiTenantConnectionProvider
2024-05-29T09:35:33.088Z | Loaded tenant currentTenantIdentifierResolver
2024-05-29T09:35:33.089Z | Loaded tenant jpaVendorAdapter
2024-05-29T09:35:33.089Z | tenantEntityManagerFactory setting up!
2024-05-29T09:35:33.091Z | tenantEntityManagerFactory set up successfully!
2024-05-29T09:35:33.387Z | Loaded master transaction manager
2024-05-29T09:35:33.459Z | HikariPool-1 - Starting...
2024-05-29T09:35:33.462Z | HikariPool-1 - Start completed.
2024-05-29T09:35:35.406Z | Initialized JPA EntityManagerFactory for persistence unit 'onesaitplatform'
2024-05-29T09:35:35.465Z | Closing JPA EntityManagerFactory for persistence unit 'onesaitplatform'
2024-05-29T09:35:35.465Z | Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'socketController': Unsatisfied dependency expressed through field 'simpMessagingTemplate'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.web.socket.config.annotation.DelegatingWebSocketMessageBrokerConfiguration': Unsatisfied dependency expressed through method 'setConfigurers' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'socketBrokerConfig': Unsatisfied dependency expressed through field 'webSocketMessageBrokerStats'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webSocketMessageBrokerStats' defined in class path resource [org/springframework/web/socket/config/annotation/DelegatingWebSocketMessageBrokerConfiguration.class]: Unsatisfied dependency expressed through method 'webSocketMessageBrokerStats' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stompBrokerRelayMessageHandler' defined in class path resource [org/springframework/web/socket/config/annotation/DelegatingWebSocketMessageBrokerConfiguration.class]: Unsatisfied dependency expressed through method 'stompBrokerRelayMessageHandler' parameter 4; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userRegistryMessageHandler' defined in class path resource [org/springframework/web/socket/config/annotation/DelegatingWebSocketMessageBrokerConfiguration.class]: Unsatisfied dependency expressed through method 'userRegistryMessageHandler' parameter 3; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'brokerMessagingTemplate': Requested bean is currently in creation: Is there an unresolvable circular reference?
2024-05-29T09:35:35.468Z | Closing JPA EntityManagerFactory for persistence unit 'onesaitPlatform-masterdb'
2024-05-29T09:35:35.469Z | master-hikari-pool - Shutdown initiated...
2024-05-29T09:35:35.478Z | master-hikari-pool - Shutdown completed.
2024-05-29T09:35:35.484Z | node0 Stopped scavenging
2024-05-29T09:35:35.485Z | Stopped o.s.b.w.e.j.JettyEmbeddedWebAppContext@40d23c82{application,/dashboardengine,[file:///tmp/jetty-docbase.18300.5521464739827762741/, jar:file:/app.jar!/BOOT-INF/lib/swagger-ui-4.5.0.jar!/META-INF/resources],STOPPED}
2024-05-29T09:35:35.515Z | Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2024-05-29T09:35:35.545Z | Application run failed
onesaitplatform commented 1 month ago

Hi @FranziskusWild it must have been the same problem of the generation of the image that happened in controlpanel. We have regenerated again the image. Try again and confirm if everything is ok.

Best Regards, Onesait Platform Support Team

FranziskusWild commented 1 month ago

I can confirm, it's now working,

Thanks again.