
A bit of testing with strace and it seems to be looking for libraries in a directory that's in a different place. The Unifi controller still doesn't work though, the log reports: "Cannot find any VM in Java Home". This should be relatively safe for any future upgrades: echo 'JAVA_HOME="$( readlink -f "$( which java )" | sed "s:bin/.*$::" )"' | sudo tee /etc/default/unifi The first issue to fix is the JAVA_HOME variable, otherwise you get an error saying "Cannot locate Java Home". Thankfully there are a couple of simple fixes - although this isn't supported, my controller seems to be working fine with this.Ĭheck to see why it's not starting: systemctl start unifi This will install a load of dependencies including Java 11, which initially doesn't work. apt install ca-certificates apt-transport-httpsĮcho 'deb stable ubiquiti' | sudo tee /etc/apt//100-ubnt-unifi.list

echo "deb stretch/mongodb-org/3.6 main" | sudo tee /etc/apt//mongodb-org-3.6.listĪs per the unifi instructions. It's not packaged for Buster, but the Stretch version works without any bodging. There are some guides that suggest installing 3.4 from Jessie which needs some old libraries, but there's no need - the controller works fine with 3.6. Here's how I got it working without installing truly ancient software. Installing the latest MongoDB version 4 doesn't work, as the unifi. It also doesn't help that Debian have dropped MongoDB in recent releases for licensing reasons, and that the Unifi controller requires older versions of MongoDB and Java. It seems Ubiquiti's own instructions only mention Jessie and Stretch as of July 2020, which is unfortunate as Jessie LTS is now past the end of its support and is no longer getting any security updates. I was moving my Unifi controller to a new VM and wanted to use Debian Buster which has been the current release for a year now.

I've since updated to v6 and that has worked fine, but I've had a report that these instructions may not work with a fresh v6 installation. Unifi controller on Debian Buster with Java 11Įdit: These instructions were written for the v5 controller.
