Open CristopherGR opened 11 months ago
@cristianonicolai @wmedvede @ricardozanini looks like an issue with Flyway ?
cc @nmirasch
Add
%postgresql.quarkus.flyway.baseline-on-migrate=true
to application.properties and run
mvn clean package quarkus:dev -Pinfinispan
Running the service outside of docker will initialize the migrations for the database, which is what postgresql is missing here: the process_instances table
Yes, it seems a problem with Flyway. @nmirasch @tiagodolphine @wmedvede can you take a look?
Please download the DDL scipts file from https://repository.jboss.org/org/kie/kogito/kogito-ddl/1.43.0.Final/ which is mentioned on the documentation page https://docs.jboss.org/kogito/release/latest/html_single/#proc-infinispan-persistence-enabling_kogito-configuring. In this zip file you will find DDL scripts for postgres in a separate folder named postgresql. Execute the script V1.35.0__create_runtime_PostgreSQL.sql in the same schema/database which is mentioned in the configuration. This will resolve the error. It seems that the DDLs in this script are not executed automatically.
Regards.
Describe the bug
"process-usertasks-quarkus-with-console" Kogito Example
I am trying to start this Kogito example to test the Management Console and Task Console.
The README says that I should use these two commands:
mvn clean install -Ppostgresql,container
to compile project with postgresql configurationsh ./startServices.sh
to start all the services that the project needs (the sh file executes a docker-compose command).When the .sh execution finishes, I have the following services up:
The services started without problems, each in a docker container, including the kogito example (8080). When I am trying to do this POST request
http://localhost:8080/hiring
with following content (JSON):I have the following ERROR in the LOGS of the containers:
I understand that it is a problem with the database. But, as it is a container that is launched from a
docker-compose
command I don't know how I could fix the error.Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response