Closed gregecho closed 10 months ago
@michaelmosmann
@gregecho .. do you have something more of this stack trace?
@michaelmosmann , actually I didn't have more info about this stack trace since it's built with docker build .
. But I did check the Caused by: java.lang.RuntimeException at MongoServerStarter.java:129
which might be could not start process
.
Any ideas about how can I get more info of stack trace?
@michaelmosmann ,here's stack trace of the error:
Caused by: java.lang.RuntimeException: error on transition to State(de.flapdoodle.embed.mongo.transitions.RunningMongodProcess), rollback
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.reverse.TransitionWalker.initState(TransitionWalker.java:174) ~[de.flapdoodle.reverse-1.5.2.jar:na]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.reverse.TransitionWalker.initState(TransitionWalker.java:69) ~[de.flapdoodle.reverse-1.5.2.jar:na]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.embed.mongo.spring.autoconfigure.MongodWrapper.start(MongodWrapper.java:45) ~[de.flapdoodle.embed.mongo.spring30x-4.6.2.jar:na]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at jdk.internal.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) ~[na:na]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1874) ~[spring-beans-6.0.11.jar:6.0.11]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1827) ~[spring-beans-6.0.11.jar:6.0.11]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1766) ~[spring-beans-6.0.11.jar:6.0.11]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] ... 56 common frames omitted
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] Caused by: java.lang.RuntimeException: could not start process
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.embed.mongo.transitions.MongoServerStarter.result(MongoServerStarter.java:129) ~[de.flapdoodle.embed.mongo-4.6.2.jar:na]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.reverse.TransitionWalker.resolve(TransitionWalker.java:62) ~[de.flapdoodle.reverse-1.5.2.jar:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.reverse.TransitionWalker.resolve(TransitionWalker.java:50) ~[de.flapdoodle.reverse-1.5.2.jar:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.reverse.TransitionWalker.initState(TransitionWalker.java:165) ~[de.flapdoodle.reverse-1.5.2.jar:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] ... 64 common frames omitted
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] Caused by: java.io.IOException: Cannot run program "/root/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e/mongod" (in directory "/tmp/temp--827c4c4d-f15c-4c22-abd0-63f6b1ee6dca/workingDir9334936922003311719"): error=2, No such file or directory
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143) ~[na:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073) ~[na:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.embed.process.runtime.ProcessControl.start(ProcessControl.java:177) ~[de.flapdoodle.embed.process-4.6.1.jar:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.embed.process.types.RunningProcess.start(RunningProcess.java:71) ~[de.flapdoodle.embed.process-4.6.1.jar:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.embed.mongo.transitions.MongoServerStarter.result(MongoServerStarter.java:119) ~[de.flapdoodle.embed.mongo-4.6.2.jar:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] ... 67 common frames omitted
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] Caused by: java.io.IOException: error=2, No such file or directory
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessImpl.forkAndExec(Native Method) ~[na:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314) ~[na:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244) ~[na:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110) ~[na:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] ... 71 common frames omitted
@gregecho hmm.. this is very interesting.. there could be some more information above or below this exception.. maybe this gives a hint (if you have more than just this stack trace)..
i wild guess: the file is there but it is not executable.. second guess: file is not there but somehow this failed not in the right spot..
@michaelmosmann , below is all errors I got. Does the error mean the mongoDB file is not exist or executable?
com.example.utils.validator.passwordvalidators.PasswordLengthValidatorTest STANDARD_OUT
2023-08-25T07:07:50.088+0000 [DEBUG] [TestEventLogger] 2023-08-25T07:07:50.082Z ERROR 166 --- [ Test worker] o.s.test.context.TestContextManager : Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener] to prepare test instance [com.example.validator.passwordvalidators.PasswordLengthValidatorTest@548afb9a]
2023-08-25T07:07:50.088+0000 [DEBUG] [TestEventLogger]
2023-08-25T07:07:50.088+0000 [DEBUG] [TestEventLogger] java.lang.IllegalStateException: Failed to load ApplicationContext for [MergedContextConfiguration@72594e59 testClass = com.example.utils.validator.passwordvalidators.PasswordLengthValidatorTest, locations = [], classes = [com.example.repository.config.exampleMongoDBTestConfig, com.example.config.PasswordValidationConfig], contextInitializerClasses = [], activeProfiles = ["testing"], propertySourceLocations = [], propertySourceProperties = [], contextCustomizers = [org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@4c0884e8, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@5bfc257, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4e8e8621, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0], contextLoader = org.springframework.test.context.support.DelegatingSmartContextLoader, parent = null]
2023-08-25T07:07:50.088+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:143) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.088+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:127) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.088+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:141) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.088+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:97) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.088+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:241) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.088+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:228) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.088+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.088+0000 [DEBUG] [TestEventLogger] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) ~[junit-4.12.jar:4.12]
2023-08-25T07:07:50.089+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.089+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:247) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.089+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.089+0000 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) ~[junit-4.12.jar:4.12]
2023-08-25T07:07:50.089+0000 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) ~[junit-4.12.jar:4.12]
2023-08-25T07:07:50.089+0000 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) ~[junit-4.12.jar:4.12]
2023-08-25T07:07:50.089+0000 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) ~[junit-4.12.jar:4.12]
2023-08-25T07:07:50.089+0000 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) ~[junit-4.12.jar:4.12]
2023-08-25T07:07:50.089+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner.run(ParentRunner.java:363) ~[junit-4.12.jar:4.12]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:110) ~[na:na]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58) ~[na:na]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38) ~[na:na]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:62) ~[na:na]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51) ~[na:na]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36) ~[na:na]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) ~[na:na]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33) ~[na:na]
2023-08-25T07:07:50.090+0000 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94) ~[na:na]
2023-08-25T07:07:50.091+0000 [DEBUG] [TestEventLogger] at jdk.proxy2/jdk.proxy2.$Proxy5.processTestClass(Unknown Source) ~[na:na]
2023-08-25T07:07:50.091+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176) ~[na:na]
2023-08-25T07:07:50.091+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129) ~[na:na]
2023-08-25T07:07:50.091+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100) ~[na:na]
2023-08-25T07:07:50.091+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60) ~[na:na]
2023-08-25T07:07:50.091+0000 [DEBUG] [TestEventLogger] at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56) ~[na:na]
2023-08-25T07:07:50.091+0000 [DEBUG] [TestEventLogger] at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:133) ~[na:na]
2023-08-25T07:07:50.091+0000 [DEBUG] [TestEventLogger] at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:71) ~[na:na]
2023-08-25T07:07:50.091+0000 [DEBUG] [TestEventLogger] at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69) ~[gradle-worker.jar:na]
2023-08-25T07:07:50.091+0000 [DEBUG] [TestEventLogger] at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74) ~[gradle-worker.jar:na]
2023-08-25T07:07:50.091+0000 [DEBUG] [TestEventLogger] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'syncClientServerWrapper' defined in de.flapdoodle.embed.mongo.spring.autoconfigure.EmbeddedMongoAutoConfiguration$SyncClientServerWrapperConfig: error on transition to State(de.flapdoodle.embed.mongo.transitions.RunningMongodProcess), rollback
2023-08-25T07:07:50.091+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1770) ~[spring-beans-6.0.11.jar:6.0.11]
2023-08-25T07:07:50.092+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:598) ~[spring-beans-6.0.11.jar:6.0.11]
2023-08-25T07:07:50.092+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520) ~[spring-beans-6.0.11.jar:6.0.11]
2023-08-25T07:07:50.092+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.0.11.jar:6.0.11]
2023-08-25T07:07:50.092+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.11.jar:6.0.11]
2023-08-25T07:07:50.092+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.0.11.jar:6.0.11]
2023-08-25T07:07:50.092+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.0.11.jar:6.0.11]
2023-08-25T07:07:50.092+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:973) ~[spring-beans-6.0.11.jar:6.0.11]
2023-08-25T07:07:50.092+0000 [DEBUG] [TestEventLogger] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:941) ~[spring-context-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.092+0000 [DEBUG] [TestEventLogger] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:608) ~[spring-context-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.092+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:221) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.092+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:110) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.092+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:212) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.092+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:187) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:119) ~[spring-test-6.0.10.jar:6.0.10]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] ... 42 common frames omitted
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] Caused by: java.lang.RuntimeException: error on transition to State(de.flapdoodle.embed.mongo.transitions.RunningMongodProcess), rollback
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.reverse.TransitionWalker.initState(TransitionWalker.java:174) ~[de.flapdoodle.reverse-1.5.2.jar:na]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.reverse.TransitionWalker.initState(TransitionWalker.java:69) ~[de.flapdoodle.reverse-1.5.2.jar:na]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.embed.mongo.spring.autoconfigure.MongodWrapper.start(MongodWrapper.java:45) ~[de.flapdoodle.embed.mongo.spring30x-4.6.2.jar:na]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at jdk.internal.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) ~[na:na]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1874) ~[spring-beans-6.0.11.jar:6.0.11]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1827) ~[spring-beans-6.0.11.jar:6.0.11]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1766) ~[spring-beans-6.0.11.jar:6.0.11]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] ... 56 common frames omitted
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] Caused by: java.lang.RuntimeException: could not start process
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.embed.mongo.transitions.MongoServerStarter.result(MongoServerStarter.java:129) ~[de.flapdoodle.embed.mongo-4.6.2.jar:na]
2023-08-25T07:07:50.093+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.reverse.TransitionWalker.resolve(TransitionWalker.java:62) ~[de.flapdoodle.reverse-1.5.2.jar:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.reverse.TransitionWalker.resolve(TransitionWalker.java:50) ~[de.flapdoodle.reverse-1.5.2.jar:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.reverse.TransitionWalker.initState(TransitionWalker.java:165) ~[de.flapdoodle.reverse-1.5.2.jar:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] ... 64 common frames omitted
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] Caused by: java.io.IOException: Cannot run program "/root/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e/mongod" (in directory "/tmp/temp--827c4c4d-f15c-4c22-abd0-63f6b1ee6dca/workingDir9334936922003311719"): error=2, No such file or directory
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143) ~[na:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073) ~[na:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.embed.process.runtime.ProcessControl.start(ProcessControl.java:177) ~[de.flapdoodle.embed.process-4.6.1.jar:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.embed.process.types.RunningProcess.start(RunningProcess.java:71) ~[de.flapdoodle.embed.process-4.6.1.jar:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.embed.mongo.transitions.MongoServerStarter.result(MongoServerStarter.java:119) ~[de.flapdoodle.embed.mongo-4.6.2.jar:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] ... 67 common frames omitted
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] Caused by: java.io.IOException: error=2, No such file or directory
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessImpl.forkAndExec(Native Method) ~[na:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314) ~[na:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244) ~[na:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110) ~[na:na]
2023-08-25T07:07:50.094+0000 [DEBUG] [TestEventLogger] ... 71 common frames omitted
@gregecho i guess yes.. can you use a newer version of de.flapdoodle.embed.mongo (should be 4.9.1) with your spring project? This may give some more expressive error messages.. beside that i think i add some more checks to see if the file is there.
What is the distribution your docker container is based on? ubuntu? arch linux? windows?
@michaelmosmann ,
The docker container is based on Linux amd64
.
I'm using name: 'de.flapdoodle.embed.mongo.spring30x', version: '4.7.1'
which is latest release.
@gregecho just use beside the ...mongo.spring30x dependency this:
<dependency>
<groupId>de.flapdoodle.embed</groupId>
<artifactId>de.flapdoodle.embed.mongo</artifactId>
<version>4.9.1</version>
</dependency>
.. until i make a new release of ...mongo.spring30x.
@michaelmosmann , sorry for the late reply. There's something wrong with my laptop. Do you have any solutions with existing logs for the issue?
@gregecho not now.. it could be some docker-linux-dist mongodb-version mismatch, some "could not write executable"-bug .. i will add some checks, build a new release (inkl. ..mongo.spring30x) and then i think we will get some better error messages.
@michaelmosmann , please keep me posted about the new release. Also, will try to do the build to see if there are any helpful logs.
@gregecho will do:)
@gregecho new release done .. ...mongo.spring30x:4.9.2 will be in maven central in some hours.
@michaelmosmann , I'm using mongo.spring30x:4.9.2
without de.flapdoodle.embed.mongo:4.9.1
now. Below is the error log I got:
2023-08-28T01:06:08.709+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:143)
2023-08-28T01:06:08.709+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:127)
2023-08-28T01:06:08.709+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:141)
2023-08-28T01:06:08.709+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:97)
2023-08-28T01:06:08.709+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:241)
2023-08-28T01:06:08.709+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:228)
2023-08-28T01:06:08.709+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289)
2023-08-28T01:06:08.709+0000 [DEBUG] [TestEventLogger] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
2023-08-28T01:06:08.709+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291)
2023-08-28T01:06:08.709+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:247)
2023-08-28T01:06:08.709+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
2023-08-28T01:06:08.709+0000 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
2023-08-28T01:06:08.709+0000 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:110)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:62)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2023-08-28T01:06:08.710+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] at jdk.proxy2/jdk.proxy2.$Proxy5.processTestClass(Unknown Source)
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:133)
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:71)
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger]
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] Caused by:
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'syncClientServerWrapper' defined in de.flapdoodle.embed.mongo.spring.autoconfigure.EmbeddedMongoAutoConfiguration$SyncClientServerWrapperConfig: rollback after error on transition to State(de.flapdoodle.embed.mongo.transitions.RunningMongodProcess), successful reached:
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.archives.ExtractedFileSet}=ExtractedFileSet{baseDir=/root/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e, executable=/root/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e/mongod, libraryFiles=[]},
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.types.Archive}=Archive(/root/.embedmongo/archives/https-fastdl-mongodb-org/56cb3d10404e5b9df5358ac4ee83efcb/linuxmongodb-linux-x86-64-ubuntu2004-6-0-5-tgz/a062f71683be98f434f388987eb17e19c7faaab805f2ae3df2c2c69b2dc54c81/archive.tgz),
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.store.DownloadCache}=de.flapdoodle.embed.process.store.LocalDownloadCache@1199a91,
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.config.store.Package}=Package{archiveType=TGZ, fileSet=FileSet{entries=[Entry{type=Executable, destination=mongod, uncompiledMatchingPattern=UncompiledPattern{regex=.*mongod, flags=2}}]}, url=https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-6.0.5.tgz},
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.store.ExtractedFileSetStore}=de.flapdoodle.embed.process.store.ContentHashExtractedFileSetStore@3a3bd68c,
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.types.ProcessArguments}=ProcessArguments([--dbpath, /tmp/temp--46c37a54-7664-4013-a8b4-4c63de4ac614/mongod-database1805998021492880976, --noauth, --nojournal, --port, 39567, --bind_ip, 127.0.0.1, --syncdelay=0]),
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.types.ProcessWorkingDir}=ProcessWorkingDir(/tmp/temp--46c37a54-7664-4013-a8b4-4c63de4ac614/workingDir16915755810997299491),
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.distribution.Distribution}=GenericFeatureAwareVersion{6.0.5}:Platform{operatingSystem=Linux, architecture=X86_64},
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.config.SupportConfig}=SupportConfig{name=mongod, supportUrl=https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo/issues, messageOnException=de.flapdoodle.embed.mongo.transitions.ProcessDefaults$$Lambda$517/0x00000008012cde08@5b8599c7},
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.types.Name}=Name(mongod),
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.io.directories.PersistentDir}=ImmutablePersistentDir(/root/.embedmongo),
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.mongo.types.DatabaseDir}=DatabaseDir(/tmp/temp--46c37a54-7664-4013-a8b4-4c63de4ac614/mongod-database1805998021492880976),
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.io.directories.TempDir}=ImmutableTempDir(/tmp/temp--46c37a54-7664-4013-a8b4-4c63de4ac614),
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.mongo.types.DistributionBaseUrl}=DistributionBaseUrl(https://fastdl.mongodb.org),
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.os.Platform}=Platform{operatingSystem=Linux, architecture=X86_64},
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.types.ProcessConfig}=ProcessConfig{daemonProcess=false, stopTimeoutInMillis=5000},
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.types.ProcessEnv}=ProcessEnv({}),
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.io.ProcessOutput}=ProcessOutput{output=de.flapdoodle.embed.process.io.Slf4jStreamProcessor@6e64444d, error=de.flapdoodle.embed.process.io.Slf4jStreamProcessor@329181d1, commands=de.flapdoodle.embed.process.io.NamedOutputStreamProcessor@7f914800},
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.mongo.types.SystemEnv}=SystemEnv({PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, LANGUAGE=en_US:en, HOSTNAME=b99dd1c0ee32, LC_ALL=en_US.UTF-8, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, appDir=/usr/src/app/, OLDPWD=/usr/src/app, PWD=/usr/src/app, JAVA_VERSION=jdk-17.0.7+7, LANG=en_US.UTF-8, HOME=/root, SHLVL=2}),
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.io.progress.ProgressListener}=de.flapdoodle.embed.process.io.progress.Slf4jProgressListener@1b7a7ec8,
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.mongo.packageresolver.Command}=MongoD,
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.distribution.Version}=GenericFeatureAwareVersion{6.0.5},
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.mongo.config.Net}=Net{bindIp=127.0.0.1, port=39567, isIpv6=false},
2023-08-28T01:06:08.711+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.mongo.commands.MongodArguments}=MongodArguments{syncDelay=0, useDefaultSyncDelay=false, isVerbose=false, verbosityLevel=1, isQuiet=false, useNoPrealloc=true, useSmallFiles=true, useNoJournal=true, enableTextSearch=false, auth=false, master=false, isConfigServer=false, isShardServer=false, params={}, args={}}
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] at app//org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1770)
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] at app//org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:598)
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] at app//org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520)
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] at app//org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326)
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] at app//org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] at app//org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324)
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] at app//org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] at app//org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:973)
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] at app//org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:941)
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] at app//org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:608)
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] at app//org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:221)
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] at app//org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:110)
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] at app//org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:212)
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] at app//org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:187)
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] at app//org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:119)
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] ... 42 more
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger]
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] Caused by:
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] java.lang.RuntimeException: rollback after error on transition to State(de.flapdoodle.embed.mongo.transitions.RunningMongodProcess), successful reached:
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.archives.ExtractedFileSet}=ExtractedFileSet{baseDir=/root/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e, executable=/root/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e/mongod, libraryFiles=[]},
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.types.Archive}=Archive(/root/.embedmongo/archives/https-fastdl-mongodb-org/56cb3d10404e5b9df5358ac4ee83efcb/linuxmongodb-linux-x86-64-ubuntu2004-6-0-5-tgz/a062f71683be98f434f388987eb17e19c7faaab805f2ae3df2c2c69b2dc54c81/archive.tgz),
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.store.DownloadCache}=de.flapdoodle.embed.process.store.LocalDownloadCache@1199a91,
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.config.store.Package}=Package{archiveType=TGZ, fileSet=FileSet{entries=[Entry{type=Executable, destination=mongod, uncompiledMatchingPattern=UncompiledPattern{regex=.*mongod, flags=2}}]}, url=https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-6.0.5.tgz},
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.store.ExtractedFileSetStore}=de.flapdoodle.embed.process.store.ContentHashExtractedFileSetStore@3a3bd68c,
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.types.ProcessArguments}=ProcessArguments([--dbpath, /tmp/temp--46c37a54-7664-4013-a8b4-4c63de4ac614/mongod-database1805998021492880976, --noauth, --nojournal, --port, 39567, --bind_ip, 127.0.0.1, --syncdelay=0]),
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.types.ProcessWorkingDir}=ProcessWorkingDir(/tmp/temp--46c37a54-7664-4013-a8b4-4c63de4ac614/workingDir16915755810997299491),
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.distribution.Distribution}=GenericFeatureAwareVersion{6.0.5}:Platform{operatingSystem=Linux, architecture=X86_64},
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.config.SupportConfig}=SupportConfig{name=mongod, supportUrl=https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo/issues, messageOnException=de.flapdoodle.embed.mongo.transitions.ProcessDefaults$$Lambda$517/0x00000008012cde08@5b8599c7},
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.types.Name}=Name(mongod),
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.io.directories.PersistentDir}=ImmutablePersistentDir(/root/.embedmongo),
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.mongo.types.DatabaseDir}=DatabaseDir(/tmp/temp--46c37a54-7664-4013-a8b4-4c63de4ac614/mongod-database1805998021492880976),
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.io.directories.TempDir}=ImmutableTempDir(/tmp/temp--46c37a54-7664-4013-a8b4-4c63de4ac614),
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.mongo.types.DistributionBaseUrl}=DistributionBaseUrl(https://fastdl.mongodb.org),
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.os.Platform}=Platform{operatingSystem=Linux, architecture=X86_64},
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.types.ProcessConfig}=ProcessConfig{daemonProcess=false, stopTimeoutInMillis=5000},
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.process.types.ProcessEnv}=ProcessEnv({}),
2023-08-28T01:06:08.712+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.io.ProcessOutput}=ProcessOutput{output=de.flapdoodle.embed.process.io.Slf4jStreamProcessor@6e64444d, error=de.flapdoodle.embed.process.io.Slf4jStreamProcessor@329181d1, commands=de.flapdoodle.embed.process.io.NamedOutputStreamProcessor@7f914800},2023-08-28T01:06:08.879+0000 [ERROR] [org.gradle.api.internal.tasks.testing.logging.TestCountLogger]
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.mongo.types.SystemEnv}=SystemEnv({PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, LANGUAGE=en_US:en, HOSTNAME=b99dd1c0ee32, LC_ALL=en_US.UTF-8, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, appDir=/usr/src/app/, OLDPWD=/usr/src/app, PWD=/usr/src/app, JAVA_VERSION=jdk-17.0.7+7, LANG=en_US.UTF-8, HOME=/root, SHLVL=2}),
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.io.progress.ProgressListener}=de.flapdoodle.embed.process.io.progress.Slf4jProgressListener@1b7a7ec8,
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.mongo.packageresolver.Command}=MongoD,
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] StateID{name=, type=interface de.flapdoodle.embed.process.distribution.Version}=GenericFeatureAwareVersion{6.0.5},
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.mongo.config.Net}=Net{bindIp=127.0.0.1, port=39567, isIpv6=false},
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] StateID{name=, type=class de.flapdoodle.embed.mongo.commands.MongodArguments}=MongodArguments{syncDelay=0, useDefaultSyncDelay=false, isVerbose=false, verbosityLevel=1, isQuiet=false, useNoPrealloc=true, useSmallFiles=true, useNoJournal=true, enableTextSearch=false, auth=false, master=false, isConfigServer=false, isShardServer=false, params={}, args={}}
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.reverse.TransitionWalker.initState(TransitionWalker.java:186)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.reverse.TransitionWalker.initState(TransitionWalker.java:65)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.embed.mongo.spring.autoconfigure.MongodWrapper.start(MongodWrapper.java:45)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at jdk.internal.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1874)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1827)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1766)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] ... 56 more
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger]
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] Caused by:
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] java.lang.RuntimeException: could not start process
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.embed.mongo.transitions.MongoServerStarter.result(MongoServerStarter.java:129)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.reverse.TransitionWalker.resolve(TransitionWalker.java:58)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.reverse.TransitionWalker.resolve(TransitionWalker.java:46)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.reverse.TransitionWalker.initState(TransitionWalker.java:176)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] ... 64 more
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger]
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] Caused by:
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] java.io.IOException: Cannot run program "/root/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e/mongod" (in directory "/tmp/temp--46c37a54-7664-4013-a8b4-4c63de4ac614/workingDir16915755810997299491"): error=2, No such file or directory
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.embed.process.runtime.ProcessControl.start(ProcessControl.java:177)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.embed.process.types.RunningProcess.start(RunningProcess.java:76)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at de.flapdoodle.embed.mongo.transitions.MongoServerStarter.result(MongoServerStarter.java:119)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] ... 67 more
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger]
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] Caused by:
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] java.io.IOException: error=2, No such file or directory
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
2023-08-28T01:06:08.713+0000 [DEBUG] [TestEventLogger] ... 71 more
2023-08-28T01:06:08.714+0000 [DEBUG] [TestEventLogger]
@gregecho ok.. whats clear from this log is following:
So the best guess is: the binary for ubuntu 20.04 will not work on this docker-image .. and which linux dist this docker image is can not be detected.. you can not just choose any docker image with java.. you must take one with a linux dist supported by mongodb. If this is the case, the detection does not work.. so what is the docker image based on?
@michaelmosmann , the docker image should be FROM alpine:3
. Any ideas about which linux dust supported by mongodb I should use?
@gregecho i would use a debian or centos based image .. maybe this is an image that will work: https://hub.docker.com/_/eclipse-temurin (if you use the jammy-images, it should be ubuntu based)
@michaelmosmann , I'll take a try with above image. Besides, any other solutions without change image?
@gregecho i am still a little confused that the error message is that the process can not be started... if you can, you can try to login in your cointainer and try to execute this executable by hand.. maybe it gives a more specific error message
@michaelmosmann , not sure if I can change the image to Debian or centos. So, is there any other solutions that support linux?
@gregecho i am still a little confused that the error message is that the process can not be started... if you can, you can try to login in your cointainer and try to execute this executable by hand.. maybe it gives a more specific error message
Do you mean the mongod
file in /root/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e
?
@gregecho yes.. the path contains a hash so that files can stay where they are ..
@michaelmosmann , tried to run the mongod file manually. But the file cannot execute due to error not found
/usr/src/app # whoami
root
/usr/src/app # cd /root/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e
~/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e # .mongod
/bin/sh: .mongod: not found
~/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e # ls
mongod
~/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e # mongod
/bin/sh: mongod: not found
~/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e #
@gregecho this is strange .. can you execute file mongod
and ls -al mongod
?
@gregecho this is strange .. can you execute
file mongod
andls -al mongod
?
@michaelmosmann ,
~/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e # file mongod
/bin/sh: file: not found
~/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e # ls -al mongod
-rwxr--r-- 1 root root 140775232 Aug 28 01:05 mongod
~/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e #
@gregecho i think you must execute mongod by calling ./mongod
@gregecho i think you must execute mongod by calling
./mongod
@michaelmosmann ,
Sorry for the confusion. I did that too.
~/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e # ls
mongod
~/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e # ./mongod
/bin/sh: ./mongod: not found
~/.embedmongo/fileSets/4e26668721df0327a3131a1fbe19ad25a747e9240025cb2bc4e833720b48d65e #
@michaelmosmann , any further advices?
@gregecho found something .. https://stackoverflow.com/questions/66963068/docker-alpine-executable-binary-not-found-even-if-in-path - i guess the first answer gives a hint..
@michaelmosmann , OMG, getting complicated now. :)
@gregecho yes.. so maybe switching away from alpine as an docker image is not the most complicated option anymore. Even with fixing the first issue (calling ./mongod does not give file-not-found anymore) does not lead to something working.. the next issue are maybe some missing link libs..
@michaelmosmann , does this link help? https://unix.stackexchange.com/questions/568530/installing-mongodb-on-alpine-3-9 So does it mean that our embedded-mongo won't work form alpine>3.9?
@gregecho embedded-mongo always downloads the best matching mongodb package from the mongodb.com site .. and does not use any mongodb package of a linux distribution. So even if someone made a mongodb package for alpine 3.9 i can not use that..
the idea of this project is that you do not use any preinstalled mongodb..
Hi I just want to report that I had similar issue like this,
i tried both temurin eclipse jammy and alpine 17
This is the docker images list that I tried other than alpine @michaelmosmann @gregecho
Hope it helps for anyone looking for alternative
meanwhile later we can fix for the alpine, because I prefer with alpine
@wildansupernova do yo have any stacktraces of the failing images?
this the only log that i can have @michaelmosmann
> Task :integrationTest
PingControllerIntegrationTest > ping$approval_service_integration() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:143
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
Caused by: org.springframework.beans.factory.BeanCreationException at BeanDefinitionValueResolver.java:377
Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:1770
Caused by: org.springframework.beans.factory.BeanCreationException at BeanDefinitionValueResolver.java:377
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:17[70](https://source.golabs.io/go-merchants/payment/approval-service/-/jobs/105867525#L70)
Caused by: java.lang.RuntimeException at TransitionWalker.java:186
Caused by: java.lang.RuntimeException at RunningMongoProcess.java:179
TemplateControllerIntegrationTest > getTemplates() should return error bad request when merchant id not inputted() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:143
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
Caused by: org.springframework.beans.factory.BeanCreationException at BeanDefinitionValueResolver.java:377
Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:1770
Caused by: org.springframework.beans.factory.BeanCreationException at BeanDefinitionValueResolver.java:377
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:1770
Caused by: java.lang.RuntimeException at TransitionWalker.java:186
Caused by: java.lang.RuntimeException at RunningMongoProcess.java:179
TemplateControllerIntegrationTest > getTemplates() should return correct() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:143
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
Caused by: org.springframework.beans.factory.BeanCreationException at BeanDefinitionValueResolver.java:3[77](https://source.golabs.io/go-merchants/payment/approval-service/-/jobs/105867525#L77)
Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:1770
Caused by: org.springframework.beans.factory.BeanCreationException at BeanDefinitionValueResolver.java:377
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:1770
Caused by: java.lang.RuntimeException at TransitionWalker.java:186
Caused by: java.lang.RuntimeException at RunningMongoProcess.java:1[79](https://source.golabs.io/go-merchants/payment/approval-service/-/jobs/105867525#L79)
3 tests completed, 3 failed
> Task :integrationTest FAILED
@wildansupernova which mongodb version did you use? there is an issue with older mongodb versions running on newer ubuntu versions ..
This is the docker images list that I tried other than alpine @michaelmosmann @gregecho
- eclipse-temurin:17.0.8.1_1-jdk-jammy ❌
- eclipse-temurin:17.0.8.1_1-jdk-focal ✅
- eclipse-temurin:17.0.8.1_1-jdk-centos7 ✅
- amazoncorretto:17-al2023-jdk ❌
- sapmachine:jdk-ubuntu-17 ❌
- sapmachine:jdk-ubuntu-17.0.8 ❌
Hope it helps for anyone looking for alternative
meanwhile later we can fix for the alpine, because I prefer with alpine
Thanks!!! I'm using centos now.
@wildansupernova which mongodb version did you use? there is an issue with older mongodb versions running on newer ubuntu versions ..
around version 5 @michaelmosmann
@wildansupernova I guess the error is still there.. an I am not sure if I did some changes for better error messages in the last two months.. it would be nice if you could try this with the latest version.
@wildansupernova can you create an new issue with your problem so that it is a little bit easier for me to keep record of whats already fixed? i will close this issue .. just create an other one (you can put a linkt to this issue there).
Hi,
Currently, I'm stuck with an issue that the
gradle build
successfully in my local. However, all mongo related unit tests are failed when I dodocker build
.Below is the error message when I do docker build:
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:143 Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:1770 Caused by: java.lang.RuntimeException at TransitionWalker.java:186 Caused by: java.lang.RuntimeException at MongoServerStarter.java:129 Caused by: java.io.IOException at ProcessBuilder.java:1143 Caused by: java.io.IOException at ProcessImpl.java:-2
ENVs:
Any ideas about above issue? Thanks in advance.