Search Engine: Elastic

Article ID: 133955, created on Apr 23, 2019, last review on Apr 23, 2019

  • Applies to:
  • Operations Automation 8.0

Symptoms

Odin Automation 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:

  1. Find path to jre:

    find / -name jre
    
  2. 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
    
  3. 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
    
  4. 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.

5356b422f65bdad1c3e9edca5d74a1ae 8fc71f07abe5b233fea1ae0377cd5e3d adc6deaa66054d8a194d131ba07f2785 aab95f5cf9bcfa920cc1dda8487f084a

Email subscription for changes to this article
Save as PDF