|Applies To||RSA Product Set: Security Analytics|
RSA Product/Service Type: Security Analytics Server
RSA Version/Condition: 10.5.1.2
Platform (Other): puppet
O/S Version: EL6
|Issue||After upgrading SA server to 10.5.1.2 running puppet agent -t produces the following error:|
Error: Execution of 'keytool -importkeystore -srcstoretype PKCS12 -destkeystore /opt/rsa/carlos//keystore.jks -srckeystore /tmp/carlos.20160401-16587-u3dm1q-0 -alias carlos' returned 1: Error: Could not execute posix command: No such file or directory - keytool
The same errors can be observed in the /var/log/messages file.
|Cause||The symlinks in /etc/alternatives were not properly updated during the SA server upgrade.|
|Workaround||This error can be resolved by modifying the /etc/puppet/modules/rsa-java/manifests/init.pp file.|
It will be necessary to ssh into the SA server, and use vi to modify the following file: /etc/puppet/modules/rsa-java/manifests/init.pp
On approximately line 61 the following value will be found ( the exact version may very, but should be somewhat similar) :
package => 'java-1.8.0-openjdk-220.127.116.11',
The value should be changed to the following:
package => 'java-1.8.0-openjdk',
Once the change has been made and saved, simply run puppet agent -t again and the error in relation to "missing package keytool" should be resolved.