WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Feature installation issues using offical "slim" Open Liberty image

  • 1.  Feature installation issues using offical "slim" Open Liberty image

    Posted Thu April 06, 2023 04:01 AM

    Hi everyone,

     

    we are in the process of migrating from Websphere Application Server to Open Liberty.

     

    We already brought our application up and running in Open Liberty locally
    and we are now working on the containerization as a prerequisite for running it in k8s.

     

    We want to use an offical Open Liberty Image from docker hub (e.g. "open-liberty:23.0.0.2-kernel-slim-java11-openj9") which dynamically installs features that are specified in the configuration.

     

    However, this mechanism somehow fails.

    According to the documentation of the dockerfile of the image on docker hub, there is a call to the script "features.sh"
    which produces the following error message:

     

    ....

    Step 16/17 : RUN features.sh

     ---> Running in fa478dcc3210

    The command '/bin/sh -c features.sh' returned a non-zero code: 21

     

    For us it is not clear what it actually means and how we can resolve the issue.

    Could you please provide us a hint? May be this has been report before.

     

    Thanks and best regards,

    Andreas Geßner



    ------------------------------
    Andreas Geßner
    ------------------------------


  • 2.  RE: Feature installation issues using offical "slim" Open Liberty image

    Posted Wed April 26, 2023 05:44 AM

    Hi everyone,

     

    we found out the root cause that has led to the above described error code 21.

     

    Apparently, the features.sh script call the featureUtility. The documentation of featureUtility,

    gave us some ideas regarding the cause of the error message, there are also descriptions of the exit codes of the featureUtility in this documentation:
    https://openliberty.io/docs/latest/reference/command/featureUtility-installFeature.html

     

    After some investigations it turned out that features were not downloaded because connections could not be established to the feature repos.

     

    After configuring http/https proxys (i.e. provided the proxy settings as values of the environment variables http_proxy and https_proxy), the error was resolved and features got downloaded successfully.

     

    Suggestion: May be the documentation of feature.sh (e.g. in the description of the official docker image etc.)
    can be extended with a link to the above documentation of featureUtility, where exit codes are described.

     

    Thanks and best regards,

    Andreas



    ------------------------------
    Andreas Geßner
    ------------------------------