Openfire doesnt start after Update

I ve updatet my openfire Installation (Raspberry with Raspian) to 4.0.2…

then no login from Spark Clients were possible. After some search here i ve read that the java Version have to be 1.8.

Then I ve updatet my installation to 1.8 with this manual:

How To Install Oracle Java 8 In Debian Via Repository [JDK8] ~ Web Upd8: Ubuntu / Linux blog

After that i cant connect to the admin Interface… and Spark doesnt connect too.

ERR_CONNECTION_REFUSED

Java - version:


java version “1.8.0_77”

Java™ SE Runtime Environment (build 1.8.0_77-b03)

Java HotSpot™ Client VM (build 25.77-b03, mixed mode)

There is no Openfire process in top and when i try to start openfire by hand:

sudo /etc/init.d/openfire start

this is the only that comes back:

best java alternative in: /usr/lib/jvm/java-8-oracle/jre

Starting openfire: openfire.

but still no openfire process…

What is set as JAVA_HOME in /etc/default/openfire ?

If you wish to override the auto-detected JAVA_HOME variable, uncomment

and change the following line.

#JAVA_HOME=/usr/java/default

You can try uncommenting it and pointing to java 8 manually. Also check lib folder in openfire directory. Are all libraries of the same modification date?

“You can try uncommenting it and pointing to java 8 manually.”

to which path? This:

/usr/lib/jvm/java-8-oracle/jre

??? doesnt have any effect:

/etc/init.d/openfire start

Starting openfire: openfire.

and still nothing in top.

“Also check lib folder in openfire directory. Are all libraries of the same modification date?”

/usr/share/openfire/lib

all files from 21.3 19:09

Have a look at how the /etc/init.d/openfire script starts Openfire. It probably either invokes java directly, or executes another script to start Openfire. Try doing that step ‘manually’, and see if an error pops up.

Which Step do you mean exactly?

Here is the script:

/etc/init.d/openfire

The script in /etc/init.d/openfire executes something else. Try executing that yourself, directly.

Sorry… i dont understand what you mean.

What excatly should i execute?

Look inside of the /etc/init.d/openfire script. See what it does. Somewhere, it starts Openfire trough some command. Try to execute that command, instead of executing the /etc/init.d/openfire script. You are likely to get an error. This will help to discover why the /etc/init.d/openfire script is failing.

ok, but which command in the script… because i dont know i ve posted the script via paste bin…

Run the script in verbose mode, then you see all commands and what’s executed. Either run “sh -x …” or edit the script and add as the 2nd line “set -x”

sudo -i

sh -x /etc/init.d/openfire start