tolgee / tolgee-platform

Developer & translator friendly web-based localization platform
https://tolgee.io
Other
2.08k stars 205 forks source link

Issue while starting embedded postgres #2596

Open bms-alfred-chow opened 1 month ago

bms-alfred-chow commented 1 month ago

Describe the bug We are running tolgee with Docker, got the following errors in log:

Error creating bean with name 'authenticationFilter' defined in URL [jar:file:/app/lib/security.jar!/io/tolgee/security/authentication/AuthenticationFilter.class]: Unsatisfied dependency expressed through constructor parameter 4: Error creating bean with name 'userAccountService' defined in URL [jar:file:/app/lib/data-v3.70.8.jar!/io/tolgee/service/security/UserAccountService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'userAccountRepository' defined in io.tolgee.repository.UserAccountRepository defined in @EnableJpaRepositories declared on Application: Cannot resolve reference to bean 'jpaSharedEM_entityManagerFactory' while setting bean property 'entityManager'
2024-10-14T03:10:55.715Z  INFO 1 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
2024-10-14T03:10:55.729Z  WARN 1 --- [           main] o.a.c.loader.WebappClassLoaderBase       : The web application [ROOT] appears to have started a thread named [Thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.base@17.0.8/java.io.FileInputStream.readBytes(Native Method)
 java.base@17.0.8/java.io.FileInputStream.read(FileInputStream.java:276)
 java.base@17.0.8/java.io.BufferedInputStream.read1(BufferedInputStream.java:282)
 java.base@17.0.8/java.io.BufferedInputStream.read(BufferedInputStream.java:343)
 java.base@17.0.8/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:270)
 java.base@17.0.8/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:313)
 java.base@17.0.8/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:188)
 java.base@17.0.8/java.io.InputStreamReader.read(InputStreamReader.java:177)
 java.base@17.0.8/java.io.BufferedReader.fill(BufferedReader.java:162)
 java.base@17.0.8/java.io.BufferedReader.readLine(BufferedReader.java:329)
 java.base@17.0.8/java.io.BufferedReader.readLine(BufferedReader.java:396)
 app//io.tolgee.postgresRunners.PostgresEmbeddedRunner.logOutput(PostgresEmbeddedRunner.kt:115)
 app//io.tolgee.postgresRunners.PostgresEmbeddedRunner.access$logOutput(PostgresEmbeddedRunner.kt:14)
 app//io.tolgee.postgresRunners.PostgresEmbeddedRunner$startWatchingThread$1.invoke(PostgresEmbeddedRunner.kt:69)
 app//io.tolgee.postgresRunners.PostgresEmbeddedRunner$startWatchingThread$1.invoke(PostgresEmbeddedRunner.kt:68)
 app//kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)
2024-10-14T03:10:55.733Z  WARN 1 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server

Full logs: tolgee-tmp-sts.log

To Reproduce Steps to reproduce the behavior:

  1. Running Tolgee with Docker
  2. Unable to run Tolgee due to the errors

Expected behavior Able to run without the error.

Versions and environment

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 30 days with no activity.