I run the Unifi Controller software on a Raspberry Pi and every now and again it dies. Through various googling I’ve found that the below generally cures it.
- Repair the database as per these instructions.
- Prune the database as per these instructions.
- Run sudo apt-get update && sudo apt-get -y upgrade