powered by Jive Software

Install Openfire 4.0.1 from RPM on ClearOS (like CentOS) 6.7

I downloaded and instlled Openfire but cannot connect to the server to set it up.

I followed the steps in the Install Guide:

Openfire: Installation Guide

[root@netgate Downloads]# rpm -ivh openfire-4.0.1-1.i386.rpm

Preparing… ########################################### [100%]

** 1:openfire ########################################### [100%]**

[root@netgate Downloads]#

However, when I try to connect, I get the standard browser “cannot connect” error. I have tried:

http://192.168.0.1:9090/

https://192.168.0.1:9091/

I tried manually starting the service, which seemed to go ok:

[root@netgate bin]# /etc/init.d/openfire start

Starting openfire:

**[root@netgate bin]# **

I tried stopping and starting it again:

[root@netgate openfire]# /etc/init.d/openfire stop

Shutting down openfire: [FAILED]

[root@netgate openfire]# /etc/init.d/openfire start

Starting openfire:

[root@netgate openfire]#

What does it mean that shutting it down produces a FAILED response?

Is it possible that there’s something wrong with the java part of the install?

[root@netgate bin]# cd /opt/openfire/jre/bin

[root@netgate bin]# java -version

-bash: java: command not found

[root@netgate bin]#

[root@netgate bin]# ./java

-bash: ./java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

This is ClearOS Professional 6.7.0, basically a clone of CentOS customized to be an internet gateway.

[root@netgate bin]# uname -a

Linux netgate.lan 2.6.32-504.23.4.v6.x86_64 #1 SMP Fri Jun 12 17:02:59 MDT 2015 x86_64 x86_64 x86_64 GNU/Linux

If you want to use the 32bit JRE bundled with the openfire RPM, you have to install the glibc.i686 package. Otherwise, install the 64bit Java JRE package java-1.8.0-oracle and then edit /etc/sysconfig/openfire accordingly.

I looked for “glibc.686” but there doesn’t seem to be anything like that available.

So, I went here:

Java SE Runtime Environment 8 - Downloads

And downloaded their “Linux x64” rpm, jre-8u73-linux-x64.rpm

**root@netgate Downloads]# yum install jre-8u73-linux-x64.rpm **

Running Transaction

** Installing : jre1.8.0_73-1.8.0_73-fcs.x86_64 1/1 **

Unpacking JAR files…

** plugin.jar…**

** javaws.jar…**

** deploy.jar…**

** rt.jar…**

** jsse.jar…**

** charsets.jar…**

** localedata.jar…**

** jfxrt.jar…**

** Verifying : jre1.8.0_73-1.8.0_73-fcs.x86_64 1/1 **

Installed:

** jre1.8.0_73.x86_64 0:1.8.0_73-fcs **

Complete!

[root@netgate Downloads]# /etc/init.d/openfire stop

Shutting down openfire: [FAILED]

[root@netgate Downloads]# /etc/init.d/openfire start

**Starting openfire: **

[root@netgate Downloads]# java -version

java version “1.8.0_73”

Java™ SE Runtime Environment (build 1.8.0_73-b02)

Java HotSpot™ 64-Bit Server VM (build 25.73-b02, mixed mode)

The file /etc/sysconfig/openfire has a commented-out line to override the default location for java.

That location was /usr/java/default

I verified that the java files are located there, I uncommented the line and saved the file.

I stopped and started openfire again.

After this, I was able to access the setup on the unsecured port.

Thank you for answering my question. I hope this will help someone.

My message had “glibc.i686”, not “glibc.686” . Yum should have it available for install.

I have submitted a PR that hopefully makes this much less painful with future Openfire RPM releases

OF-1111 Rethink RPM build and versioning by akrherz · Pull Request #562 · igniterealtime/Openfire · GitHub

[OF-1111] Bundle 64bit JVM with RPM artifact - Jive Software Open Source

The “glibc.686” was a typo on my part when I posted the response, I believe, not when I searched for the package. It is possible I searched for the wrong package. Regardless, thanks again for your help.

I very much like the suggestion of clarifying the issue somehow in the packaging:

*Make separate 32 bit and 64 bit RPMs, each with an appropriate JVM included

*Or at least make clear which JVM is included, and instructions for people on the other arch to follow

Now so much easier: http://wikisuite.org/How-to-install-Openfire-Meetings-on-ClearOS