wiki:UniFiControllerUpgrade
Last modified 6 years ago Last modified on 09/01/13 05:04:28

Upgrade Ubiquiti Networks UniFi Controller 2.3.9 to 2.4.5

The following upgrade was performed on a EL5.i386 server.

# uname -nri
hamster 2.6.18-348.6.1.el5 i386
#
  1. Upgrade Java to the latest Errata patch level.
# rpm -qa |grep java-1
java-1.6.0-openjdk-1.6.0.0-1.40.1.11.11.el5_9
#
# yum update java-1.6.0-openjdk
 [...]
Updated:
  java-1.6.0-openjdk.i386 1:1.6.0.0-1.41.1.11.11.90.el5_9

Complete!
#
  1. Upgrade MongoDB server package.
# rpm -qa |grep mongo
mongo18-10gen-1.8.4-mongodb_1
mongo18-10gen-server-1.8.4-mongodb_1
#
# url=http://downloads-distro.mongodb.org/repo/redhat/os/i686/RPMS
# wget -q $url/mongo18-10gen-1.8.5-mongodb_1.i686.rpm
# wget -q $url/mongo18-10gen-server-1.8.5-mongodb_1.i686.rpm
#
# rpm -F mongo18-10gen*-1.8.5-mongodb_1.i686.rpm
#
  1. Download UniFi software from the Ubiquiti Networks web site @ http://www.ubnt.com/eula/?BACK=/downloads/unifi/2.4.5/UniFi.unix.zip
  1. Extract new version from the archive.
# cd /var/tmp
# unzip -q UniFi.unix.zip
# chown -R unifi.unifi UniFi
# mv UniFi /opt/UniFi-2.4.5
#
# cd /opt
# ls -ld UniFi*
lrwxrwxrwx  1 root  root    11 May 12 13:55 UniFi -> UniFi-2.3.9
drwxr-xr-x 10 unifi unifi 4096 May 12 13:53 UniFi-2.3.9
drwxr-xr-x  8 unifi unifi 4096 Aug 31 12:52 UniFi-2.4.5
#
  1. Stop UniFi Controller, copy the 'data' sub-directory over to the new version, start Controller again.
# service unifi stop
Stopping Ubiquiti Networks UniFi Controller: 
#
# mv UniFi-2.4.5/data UniFi-2.4.5/data.orig
# cp -a UniFi-2.3.9/data UniFi-2.4.5/
#
# rm -f UniFi ; ln -s UniFi-2.4.5 UniFi
# ls -ld UniFi*
lrwxrwxrwx  1 root  root    11 Aug 31 12:54 UniFi -> UniFi-2.4.5
drwxr-xr-x 10 unifi unifi 4096 May 12 13:53 UniFi-2.3.9
drwxr-xr-x  9 unifi unifi 4096 Aug 31 12:53 UniFi-2.4.5
#
# service unifi start
Starting Ubiquiti Networks UniFi Controller: 
#
#
# ps -fu unifi
UID     PID  PPID  C STIME TTY          TIME CMD
unifi  2197  2195  0 12:54 ?     00:00:00 -bash -c (cd /opt/UniFi ; java -jar lib/ace.jar start)
unifi  2217  2197  0 12:54 ?     00:00:00 -bash -c (cd /opt/UniFi ; java -jar lib/ace.jar start)
unifi  2218  2217 98 12:54 ?     00:00:16 java -jar lib/ace.jar start
unifi  2236  2218  1 12:55 ?     00:00:20 bin/mongod --dbpath /opt/UniFi-2.4.5/data/db --port 27117 --logappend --logpath logs/mongod.log --nohttpinterface --bind_ip 127.0.0.1
#
  1. Connect to the UniFi controller in a web browser. Upgrade software on the AP(s) to version 2.4.5.2077.

See Also

http://community.ubnt.com/t5/UniFi-Updates-Blog/UniFi-2-4-5-is-released/ba-p/544456
UniFi 2.4.5 is released

wiki:UniFiControllerCentOS5
Install Ubiquiti Networks UniFi Controller on CentOS 5