Unifi controller on raspberry pi 3B+ 32bit bullseye
I have been a Ubiquiti user for a really long time since 2013, Unifi switch and Unifi AP drives my Home network perfectly fine since then. But after they discontinued the first gen unifi controller cloudkey(UC-CK), i start to find a replacement for this product because the gen2 cloudkey is too expensive. So after some research on the unifi forum, i notice guys use raspberry pi to host a unifi controller with a ubuntu os on it, i also have several raspberry pi boards, so i decide to host a local unifi controller as well.
I have a raspberry pi 3B+ with raspbian bullseye 32bit system on it, which i thought is supported by the unifi controller software. But, as you know, unifi is a commerical company which relise on selling hardware products, they use mongodb version higher than 2.6, but the bullseye rasbian only have version 2.4.14, and if you install unifi controller version 7.3.83 it works like a charm, but if you install the latest version 7.4.156, you will find it not starting at all because of the mongodb version is not meet the lowest need.
So what we do? you can build a newer version on your raspberry pi 3B+ yourself, but i chose to use a binary of mongodb version 3.0.14 build by Andyfelong, i have tested it and it works pretty well and meet the basic need for the unifi controller software on my raspbian bullseye 32bit system. the only problem i'm facing is it needs openssl library version 1.0.0, so i download it from a mirror site from china libssl1.0.0. then restart the unifi controller software and it will start with now hesitation.
Yes it's ugly to do so and also not secure if you run a network based controller like this, but if you have a well designed firewall in your home network, i think it is secure enough to keep it running in your Lan side network.