How do I upgrade to a modern QueueMetrics system on Elastix 2 / CentOS 5?
2017-05-29The current version of QueueMetrics depends on Java 1.8. This version of Java
is not present in the CentOS 5 upstream repositories and so QueueMetrics will complain
that a required package is not present and a fully automated install is not
possible.
In order to upgrade, you need to:
You can download a Java 1.8 SDK (not just the JRE, but the full SDK) for your architecture from http://www.oracle.com/technetwork/java/javase/downloads/index.html - choose the right RPM format for your architecture. Use exactly Java 8, not an earlier or later version.
Now run:
As our Tomcat 8 package has a requirement for Java 1.8, we need to download and install it manually:
Now you can upgrade QueueMetrics as usual:
In order to upgrade, you need to:
- Download Java 1.8 from the Oracle repositories. It seems that OpenJDK 8 is not available for CentOS 5 systems
- Manually install it
- Download the queuemetrics-tomcat package and install it manually
- Upgrade QueueMetrics normally via yum
You can download a Java 1.8 SDK (not just the JRE, but the full SDK) for your architecture from http://www.oracle.com/technetwork/java/javase/downloads/index.html - choose the right RPM format for your architecture. Use exactly Java 8, not an earlier or later version.
Now run:
yum localinstall jdk-8u121-linux-i586.rpm
If all goes well, by running it you should receive a confirmation message
like the one below:
# java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) Client VM (build 25.121-b13, mixed mode, sharing)
Now we need to create a symlink that lets QueueMetrics find it:
mkdir -p /usr/lib/jvm
cd /usr/lib/jvm
ln -s /usr/java/jdk1.8.0_121/jre/ java
Make sure you change the exact directory (where it says jdk1.8.0_121) to match your version of Java.
Downloading and installing Tomcat 8 As our Tomcat 8 package has a requirement for Java 1.8, we need to download and install it manually:
cd /root
wget http://yum.loway.ch/RPMS/noarch/queuemetrics-tomcat-8.5.12-28.noarch.rpm
rpm --nodeps -Uvh queuemetrics-tomcat-8.5.12-28.noarch.rpm
If all goes well, by running the following command you get a confirmation that QueueMetrics will use
the right Java package:
# /usr/local/queuemetrics/java/bin/java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) Client VM (build 25.121-b13, mixed mode, sharing)
Updating QueueMetrics
Now you can upgrade QueueMetrics as usual:
yum update queuemetrics
And then go to home page and follow the update wizard to upgrade your database.