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
------------------------------
Original Message:
Sent: Thu April 06, 2023 04:00 AM
From: Andreas Geßner
Subject: Feature installation issues using offical "slim" Open Liberty image
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
------------------------------