Home Unifi Controller Service does not start after update

Unifi Controller Service does not start after update

Feb 16 17:45:08 moshpit systemd[1]: Starting unifi...
Feb 16 17:45:24 moshpit unifi[908]: Feb 16, 2019 17:45:24 PM org.apache.commons.ttpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request:

Solution is quite simple, you have to update your Java Installation to get rid of this issue.

This Version will work

pi@moshpit:~ $ java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) Client VM (build 25.201-b09, mixed mode)

Stop the Service

sudo systemctl stop unifi

Enter the Java Directory

cd /usr/lib/jvm

Backup old Java

sudo mv <oldversion_dir>/ backup_oldjava

Copy the new Java into the old Directory or simple use a symbolic link 

sudo cp -rf /usr/java/jdk1.8.0_201/ <javadir>

Start the Service again

sudo systemctl start unifi


This post is licensed under CC BY 4.0 by the author.