java.lang.IllegalStateException: Container did not start correctly.

GitHub | dbyron0 | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

Root Cause Analysis

  1. java.lang.IllegalStateException

    Container did not start correctly.

    at org.testcontainers.containers.GenericContainer.tryStart()
  2. org.testcontainers.containers
    GenericContainer.lambda$start$0
    1. org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:218)[classes/:na]
    2. org.testcontainers.containers.GenericContainer.lambda$start$0(GenericContainer.java:164)[classes/:na]
    2 frames
  3. org.rnorth.ducttape
    Unreliables.retryUntilSuccess
    1. org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:76)[duct-tape-1.0.6.jar:na]
    1 frame
  4. org.testcontainers.containers
    DockerComposeContainer.starting
    1. org.testcontainers.containers.GenericContainer.start(GenericContainer.java:162)[classes/:na]
    2. org.testcontainers.containers.DockerCompose.start(DockerComposeContainer.java:289)[classes/:na]
    3. org.testcontainers.containers.DockerComposeContainer.createServices(DockerComposeContainer.java:92)[classes/:na]
    4. org.testcontainers.containers.DockerComposeContainer.starting(DockerComposeContainer.java:82)[classes/:na]
    4 frames
  5. org.testcontainers.junit
    DockerComposeErrorHandlingTest.lambda$simpleTest$20
    1. org.testcontainers.junit.DockerComposeErrorHandlingTest.lambda$simpleTest$20(DockerComposeErrorHandlingTest.java:26)[test-classes/:na]
    1 frame
  6. org.rnorth.visibleassertions
    VisibleAssertions.assertThrows
    1. org.rnorth.visibleassertions.VisibleAssertions.assertThrows(VisibleAssertions.java:345)[visible-assertions-1.0.5.jar:na]
    1 frame
  7. org.testcontainers.junit
    DockerComposeErrorHandlingTest.simpleTest
    1. org.testcontainers.junit.DockerComposeErrorHandlingTest.simpleTest(DockerComposeErrorHandlingTest.java:23)[test-classes/:na]
    1 frame
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_66]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_66]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_66]
    4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_66]
    4 frames
  9. JUnit
    ParentRunner.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)[junit-4.12.jar:4.12]
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)[junit-4.12.jar:4.12]
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)[junit-4.12.jar:4.12]
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)[junit-4.12.jar:4.12]
    5. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)[junit-4.12.jar:4.12]
    6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)[junit-4.12.jar:4.12]
    7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)[junit-4.12.jar:4.12]
    8. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)[junit-4.12.jar:4.12]
    9. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)[junit-4.12.jar:4.12]
    10. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)[junit-4.12.jar:4.12]
    11. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)[junit-4.12.jar:4.12]
    12. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)[junit-4.12.jar:4.12]
    13. org.junit.runners.ParentRunner.run(ParentRunner.java:363)[junit-4.12.jar:4.12]
    13 frames
  10. JUnit4 Provider
    JUnit4Provider.invoke
    1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)[na:na]
    2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)[na:na]
    3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)[na:na]
    3 frames
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_66]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_66]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_66]
    4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_66]
    4 frames
  12. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)[surefire-api-2.12.4.jar:2.12.4]
    2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)[surefire-booter-2.12.4.jar:2.12.4]
    3. org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)[surefire-booter-2.12.4.jar:2.12.4]
    4. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)[surefire-booter-2.12.4.jar:2.12.4]
    5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)[surefire-booter-2.12.4.jar:2.12.4]
    5 frames