Upgrading iSymphony fails

Hi all,

I just upgraded two FreePBX systems to 10.13.66-18 using the upgrade script /usr/sbin/sysadmin_update_system. One system upgraded without error messages, on the second system I’m getting the following error messages at the end

Error in PREIN scriptlet in rpm package iSymphonyServerV3-fpbx-3.4.0.21-1.noarch
iSymphonyServerV3-fpbx-3.3.2.59-1.noarch was supposed to be removed but is not!

Running “yum upgrade” I’m getting some more useful error messages

    Error in PREIN scriptlet in rpm package iSymphonyServerV3-fpbx-3.4.0.21-1.noarch
JAVA_HOME is defined, but the 'java' executable
cannot be found in:  

/usr/java/latest/bin

This is a fatal error.
Verify your JAVA_HOME environment variable is set
in /opt/isymphony3/server/config-vars.sh
UPGRADE FAILED: There was an issue checking the maintenance expiration dates on your current licenses. See the logs for more details.
error: %pre(iSymphonyServerV3-fpbx-3.4.0.21-1.noarch) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping iSymphonyServerV3-fpbx-3.4.0.21-1
iSymphonyServerV3-fpbx-3.3.2.59-1.noarch was supposed to be removed but is not!
  Verifying  : iSymphonyServerV3-fpbx-3.3.2.59-1.noarch                                                                                 1/2 
  Verifying  : iSymphonyServerV3-fpbx-3.4.0.21-1.noarch                                                                                 2/2 

Failed:
  iSymphonyServerV3-fpbx.noarch 0:3.3.2.59-1                           iSymphonyServerV3-fpbx.noarch 0:3.4.0.21-1

On both systems JAVA_HOME is set to /usr/java/latest/bin in /opt/isymphony3/server/config-vars.sh, but this folder does not exist on both systems. yet only one upgrade fails. I guess /usr/java/latest should be a symlink to the latest java in /etc/alternatives/jre or JAVA_HOME should be set to /etc/alternatives/jre. I did the latter and the update went through.

I’m puzzled why the other server didn’t give the same errors with what seems the same configuration.