Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kogito Management console doesn't retrieve Job or instances (javascript error) #1296

Open
juangon opened this issue Jun 17, 2022 · 8 comments

Comments

@juangon
Copy link

juangon commented Jun 17, 2022

Describe the bug

I cloned kogito-examples and followed instructions on README (in my case, it was process-usertasks-with-security-oidc-quarkus-with-console).

After making mvn clean install, then docker-compose/startServices.sh, and then running quarkus demo jar file, Management console can't get Job or Instance. It gives a javascript error:

Uncaught Error: Callback not found for [object Object]

and keeps showing "Loading process instances..." message.

Can you check please?

Thanks very much!

Expected behavior

Job or instances are shown, and no error shows.

Actual behavior

Javascript error in Management console, not showing any Job or instance even after creating one by following README instructions

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

11

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)

stable

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@nmirasch
Copy link
Contributor

@juangon hello, Let me try it. Just a few details to try to reproduce it properly, What OS are you trying with? I guess you are trying with 'stable' branch, is that correct?

@juangon
Copy link
Author

juangon commented Jun 20, 2022

Hi @nmirasch .

I am using Ubuntu 20.04.

Yes, I am using default, wich is "stable" branch.

Thanks very much!

@nmirasch
Copy link
Contributor

@juangon thanks, let me give this a try!

@juangon
Copy link
Author

juangon commented Jun 20, 2022

Thanks @nmirasch ! BTW, after doing startServices.sh it gives me this output with some errors:

Project version: 1.22.1.Final
./startServices.sh: 10: [[: not found
Kogito Image version: 1.22.1
./startServices.sh: 21: [: Linux: unexpected operator
./startServices.sh: 23: [: Linux: unexpected operator
WARNING: The DOCKER_GATEWAY_HOST variable is not set. Defaulting to a blank string.

@pefernan
Copy link
Contributor

hey @juangon I'm currently trying the example in Fedora and it's working fine... based on your last comment, it looks like the startServices.sh script is failing when tries to identify your OS and it doesn't properly sets the DOCKER_GATEWAY_HOST.

Looks like that the if sencence in lines 21~25 isn't working fine in ubuntu. Something you can try to do your tests is just get rid of the if and replace it for echo "DOCKER_GATEWAY_HOST=172.17.0.1" >> ".env".

@juangon
Copy link
Author

juangon commented Jun 20, 2022

Thanks @pefernan ! That worked!

I don't understand why $(uname) doesn't work properly in my Ubuntu

@pefernan
Copy link
Contributor

Good!

I'm not sure but I think the issue might be more on the if syntax than the $(uname) itself :S

@tokarenko
Copy link

sh interpreter can't handle "[[" in if statements. So, we should use bash to call startServices.sh
$ bash startServices.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

4 participants