Skip to content

Unifi Video Java Resolution

Christopher Fikes edited this page Apr 19, 2021 · 1 revision

Unifi Video has been abandoned by Ubiquiti Networks and will no longer receive updates. Some OS updates will break the application and must be held back. These include Java and MongoDB. If you are already experiencing errors with Unifi Video starting up, use the following procedure to rollback Java to a supported version.

Debian / Ubuntu LTS Instructions

Operations must be ran as root and not through sudo

sudo su

Aquire the Oracle JRE 8 271

wget -O jre-8u271-linux-x64.tar.gz https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243727_61ae65e088624f5aaa0b1d2d801acb16

Create the java location (if not already there)

mkdir /usr/local/java

Extract the JRE

cd /usr/local/java tar zxvf jre-8u271-linux-x64.tar.gz

Optional remove the archive

rm jre-8u271-linux-x64.tar.gz

Create a manual entry for the alternatives

update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jre1.8.0_271/bin/java" 1

Select the new alternative for system applications (select the specified above version using this command)

update-alternatives --config java

Update Unifi Video to use this Java

echo "JAVA_HOME=/usr/local/java/jre1.8.0_271" | tee -a /etc/default/unifi

Reboot (Yep, you have to, sorry.)

reboot

Clone this wiki locally