When upgrading Unifi to 5.6.22, you will find that Unifi does not start on Linux system.
If you see the log files, you will see something like this:
<UniFi> ERROR system - [exec] error, rc=255
This is because of a change in the release notes:
The controller will not start if it is set to bind to a privileged port (<1024), as it now runs as a non-root user
To fix this, you must change your config file to use a port outside of the 1024 range. This will be an issue if you’ve changed your port, like me.
- Edit /var/lib/unifi/system.properties
- Change your ports from
- Now type
sudo service unifi restart
You should now be able to login to your system using the new ports.