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-184.108.40.206-1.noarch iSymphonyServerV3-fpbx-220.127.116.11-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-18.104.22.168-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-22.214.171.124-1.noarch) scriptlet failed, exit status 1 error: install: %pre scriptlet failed (2), skipping iSymphonyServerV3-fpbx-126.96.36.199-1 iSymphonyServerV3-fpbx-188.8.131.52-1.noarch was supposed to be removed but is not! Verifying : iSymphonyServerV3-fpbx-184.108.40.206-1.noarch 1/2 Verifying : iSymphonyServerV3-fpbx-220.127.116.11-1.noarch 2/2 Failed: iSymphonyServerV3-fpbx.noarch 0:18.104.22.168-1 iSymphonyServerV3-fpbx.noarch 0:22.214.171.124-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.