Data-Index Problems with Kogito-Examples

1,958 views
Skip to first unread message

Chris Greene

unread,
Feb 15, 2022, 10:29:55 PM2/15/22
to Kogito development mailing list
Hello, I don't know if this is the right place to be posting this, but I can't find anything to help me with this, so I must be missing something in the getting started instructions.
 
I am trying to run the Kogito-Examples services on a local ubuntu machine. I installed the JDK from the link on the Kogito - Getting Started Page, OpenJDK Runtime Environment Temurin-11.0.14.1+1 (build 11.0.14.1+1) and set JAVA_HOME accordingly. I Installed Maven 3.8.4.This seems to meet the requirements laid out in kogito-examples/kogito-quarkus-examples/process-quarkus-example/README.md however when I run 

mvn clean compile quarkus:dev

I get ERROR [io.qua.dep.dev.IsolatedDevModeMain] (main) Failed to start quarkus: java.lang.RuntimeException: java.lang.RuntimeException: Failed to start quarkus
Which seems to be caused by Failed to load config value of type class java.lang.String for: kogito.data-index.url
And a suppressed error below that is java.util.NoSuchElementException: SRCFG00014: The config property kogito.data-index.url is required but it could not be found in any config source

To combat this I added 
kogito.data-index.url=http://localhost:8080/
to src/main/resources/application.properties, which allows process-quarkus-example to run as expected.

However, When I try to run  process-postgresql-persistence-quarkus with this added to the configuration, as well as the configurations necessary to point to the postgresql database I am running, the service runs, but when I try to send an API call, I get: 
ERROR [org.kie.kog.qua.pro.dev.DataIndexEventPublisher] (vert.x-eventloop-thread-0) Failed to send message to Data Index: io.vertx.core.impl.NoStackTraceThrowable: Response status code 404 is not equal to 202

I have not been able to find any information on what the data-index is or what I need to do to make sure it is set up properly. Is there a place I can look for the proper configurations to get these examples running, or am I missing an assumed prerequisite?

Thank you for you help.

Cristiano Nicolai

unread,
Feb 16, 2022, 7:29:18 PM2/16/22
to Kogito development mailing list
Hi Chris,

This error is happening when trying to start the Data Index Dev Service, you can check some more information about it at [1][2][3].
Just to verify a few things, are you running on the latest version of stable branch from kogito-examples repo? That should mean Kogito 1.17.0 and Quarkus 2.7.0.
Also, do you have Docker installed locally? That could be the issue as the DevService tries to pull the Data Index image from Quay.io, although we recently had fixes to contemplate users not having Docker installed locally and simply not start the service.
Also, you can simply avoid using the Dev Service completely if you add quarkus.kogito.devservices.enabled=false to your application.properties.



--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/eae55f11-d1c9-485a-a7ef-9da643b3a4ean%40googlegroups.com.


--
Best regards,

Cristiano Nicolai

Neus Miras

unread,
Mar 4, 2022, 4:09:01 AM3/4/22
to kogito-de...@googlegroups.com
Hello Chris Greene,

Data Index Service that stores all Kogito events related to processes, tasks, and domain data. Here you can find more information about Data Index service itself: https://docs.kogito.kie.org/latest/html_single/#con-data-index-service_kogito-configuring
It means that kogito.data-index.url=http://localhost:8080/ needs to point to that service url in another port(usually we are using kogito.data-index.url=http://localhost:8180) to not collide with the kogito service port that you are creating . You can see it a bit more explained in this example https://github.com/kiegroup/kogito-examples/tree/stable/kogito-quarkus-examples/process-usertasks-quarkus-with-console 
Hope this helps,


--

Chris Greene

unread,
Mar 9, 2022, 4:16:23 AM3/9/22
to Kogito development mailing list
Thank you, This documentation was exactly what I needed. I was able to update all dependencies and get the examples running as expected. The issue was an insufficient Docker version that wasn't starting the data index server correctly.
Reply all
Reply to author
Forward
0 new messages