Symptoms
CloudBlue Commerce hotfix installation fails with the following output:
[DEBUG] Executing command: '"keytool" -list -alias apsc -keystore "/usr/local/pem/credentials/truststore.jks" -storepass password '
/bin/sh: keytool: command not found
[DEBUG] Executing command '"keytool" -list -alias apsc -keystore "/usr/local/pem/credentials/truststore.jks" -storepass password ' failed with status '127', '0' retries left
[DEBUG] Traceback (most recent call last):
File "/usr/local/pem/var/updates/oa-8.0-120_KB133934-207/update.py", line 815, in main
doUpdate(config, binfo)
Cause
Missed soft links in /usr/bin
directory for keytool.
Resolution
In order to fix the issue follow steps below:
Find path to jre:
find / -name jre
Path should be somethings like below:
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64/jre
Check directories
/etc/alternatives/
and/usr/bin
and make sure that keytool links are absent:ls -laht /usr/bin | grep keytool ls -laht /etc/alternatives/ | grep
In case of links are absent perform the following:
#cd /etc/alternatives/ #ln -s /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64/jre/bin/keytool #cd /usr/bin #ln -s /etc/alternatives/keytool
And restart hotfix installation procedure.