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

java.lang.UnsatisfiedLinkError: no jep in java.library.path: [/usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib]

XMLWordPrintable

    • False
    • None
    • False
    • Issue found in the container image provided in the sonataflow CR.
    • ---
    • ---
    • 2023 Week 36-38 (from Sep 4)

      Problem: Jep libraries (libjep.so and jep.cpython-311-x86_64-linux-gnu.so) are not in the java.library.path. This causes an error when the application attempts to interact with the jep code:
      Caused by: java.lang.UnsatisfiedLinkError: no jep in java.library.path: [/usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib]
      at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2678)
      at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
      at java.base/java.lang.System.loadLibrary(System.java:1886)
      at jep.MainInterpreter.initialize(MainInterpreter.java:129)
      at jep.MainInterpreter.getMainInterpreter(MainInterpreter.java:101)
      at jep.Jep.<init>(Jep.java:133)
      at jep.SharedInterpreter.<init>(SharedInterpreter.java:60)
      at org.kie.kogito.serverless.workflow.python.PythonWorkItemHandlerUtils.interpreter(PythonWorkItemHandlerUtils.java:38)
      at org.kie.kogito.serverless.workflow.python.PythonScriptWorkItemHandler.internalExecute(PythonScriptWorkItemHandler.java:40)
      at org.kie.kogito.serverless.workflow.WorkflowWorkItemHandler.executeWorkItem(WorkflowWorkItemHandler.java:40)
       

      Steps to reproduce:

      • Deploy the latest code of the sonataflow operator
      • Deploy the sonataflow demo (https://github.com/hbelmiro/sonataflow-inference-pipeline-demo).Note that you'll need to change the base image referenced in the 01-sonataflow-platform.yaml` to quay.io/ricardozanini/sonataflow-python-devmode:latest
      • Wait for the pod to be in running and ready state.
      • Launch the route provided (oc get route)
      • Upload image attached in the ticket and click the `process image` button

      Expected result:

      • Image is processed correctly

      Actual result:

      • Image fails to process and the pod logs show the stacktrace shown earlier.

        1. coco_image.jpg
          138 kB
          Jordi Gil
        2. sonataflow-pipeline.yaml
          5 kB
          Helber Belmiro

              jgil@redhat.com Jordi Gil
              hbelmiro@redhat.com Helber Belmiro
              Jakub Schwan Jakub Schwan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: