unifi video ubuntu nvr broken with java update

amazing that the guys at unifi decided not to support the unifi video systems anymore as they are migrating to the unifi protect platform and now we are having all kinds of problems with our systems (which we have in multiple locations). I guess in the near future they will be unusable and will probably have the replace at the expense of thousands of dollars.

this is kind of like, if apple or android decided not to continue to update their systems and you would need to trash a 2 year old iphone as it becomes unusable -

the specific problem here is that when you update your ubuntu server where the nvr is installed, by default is installs the latest java version which is not compatible to unifi's lastest nvr firmware so the "legacy" system is not compatible with the new version of java and the service basically fails to start. this means your security system will not work.

the specifics.

the latest version of java supported by the nvr is java build 8u275, so you need to downgrade java to this version. its kind of tricky but if you follow the next steps you'll be on your way shortly.

proces:

downgrading to the previous 8u275 version of openjdk-8-jre-headless (i found de 271 version on the oracle website, so will install this version)

 

https://www.oracle.com/java/technologies/oracle-java-archive-downloads.html

update-alternatives --list java

 

download:

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

 

upload to:

/usr/lib/jvm

 

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

 

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_271/bin/java" 0

sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_271/bin/javac" 0

 

sudo update-alternatives --set javac /usr/lib/jvm/jdk1.8.0_271/bin/javac

 

update-alternatives --config java

 

as an addditional problem, the nvr system is also not compatible with firefox, so we have to use chrome to view it. I guess that at some point chrome will not support it any more.

 

ubiquiti is crap!

Leave a Reply

Your email address will not be published. Required fields are marked *