Ubiquiti - Troubleshooting - UniFi Network keeps restarting after upgrade

Try running the following via SSH:

systemctl stop unifi
for i in $(ps aux | grep -i "^unifi " | awk '{print$2}'); do kill -9 $i; done
systemctl start unifi

Then check the application start in a few minutes.