Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-9401

Dev services not working in ARM mac machine

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.40.1.Final
    • None
    • Data Index
    • None
    • False
    • None
    • False
    • ---
    • ---
    • 2023 Week 27-29 (from Jul 3), 2023 Week 24-26 (from Jun 12)

      Dev services fails to start when trying to start an example

      To reproduce:

      1. Use an arm mac machine (M1/M2)
      2. use any kogito-example
      3. command used is `mvn clean package quarkus:dev

      The following error is seen

      Kogito Data Index Dev Service starting: 2023-06-15 22:47:19,582 WARN  [org.tes.con.wai.str.HttpWaitStrategy] (build-84) Unexpected error occurred - will proceed to try to wait anyway: java.lang.IllegalStateException: Target port 8180 is not exposed    at org.testcontainers.containers.wait.strategy.HttpWaitStrategy.lambda$waitUntilReady$2(HttpWaitStrategy.java:234)    at java.base/java.util.Optional.orElseThrow(Optional.java:408)    at org.testcontainers.containers.wait.strategy.HttpWaitStrategy.waitUntilReady(HttpWaitStrategy.java:234)    at org.testcontainers.containers.wait.strategy.AbstractWaitStrategy.waitUntilReady(AbstractWaitStrategy.java:52)    at org.testcontainers.containers.GenericContainer.waitUntilContainerStarted(GenericContainer.java:953)    at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:485)    at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:344)    at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)    at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:334)    at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:322)    at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.lambda$startDataIndex$1(AbstractDevServicesProcessor.java:191)    at java.base/java.util.Optional.orElseGet(Optional.java:369)    at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndex(AbstractDevServicesProcessor.java:200)    at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndexDevService(AbstractDevServicesProcessor.java:111)        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.base/java.lang.reflect.Method.invoke(Method.java:566)    at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)    at io.quarkus.builder.BuildContext.run(BuildContext.java:281)    at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)    at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)    at java.base/java.lang.Thread.run(Thread.java:829)    at org.jboss.threads.JBossThread.run(JBossThread.java:501)

              cnicolai@redhat.com Cristiano Nicolai (Inactive)
              ajaganat Ajay Jaganathan
              Tristan Radisson Tristan Radisson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: