| 1 | == Upgrade Ubiquiti Networks !UniFi Controller 2.3.9 to 2.4.5 == |
| 2 | |
| 3 | The following upgrade was performed on a {{{EL5.i386}}} server. |
| 4 | |
| 5 | {{{ |
| 6 | # uname -nri |
| 7 | hamster 2.6.18-348.6.1.el5 i386 |
| 8 | # |
| 9 | }}} |
| 10 | |
| 11 | 1. Upgrade Java to the latest Errata patch level. |
| 12 | |
| 13 | {{{ |
| 14 | # rpm -qa |grep java-1 |
| 15 | java-1.6.0-openjdk-1.6.0.0-1.40.1.11.11.el5_9 |
| 16 | # |
| 17 | # yum update java-1.6.0-openjdk |
| 18 | [...] |
| 19 | Updated: |
| 20 | java-1.6.0-openjdk.i386 1:1.6.0.0-1.41.1.11.11.90.el5_9 |
| 21 | |
| 22 | Complete! |
| 23 | # |
| 24 | }}} |
| 25 | |
| 26 | 2. Upgrade MongoDB server package. |
| 27 | |
| 28 | {{{ |
| 29 | # rpm -qa |grep mongo |
| 30 | mongo18-10gen-1.8.4-mongodb_1 |
| 31 | mongo18-10gen-server-1.8.4-mongodb_1 |
| 32 | # |
| 33 | # url=http://downloads-distro.mongodb.org/repo/redhat/os/i686/RPMS |
| 34 | # wget -q $url/mongo18-10gen-1.8.5-mongodb_1.i686.rpm |
| 35 | # wget -q $url/mongo18-10gen-server-1.8.5-mongodb_1.i686.rpm |
| 36 | # |
| 37 | # rpm -F mongo18-10gen*-1.8.5-mongodb_1.i686.rpm |
| 38 | # |
| 39 | }}} |
| 40 | |
| 41 | 3. Download !UniFi software from the Ubiquiti Networks web site @ http://www.ubnt.com/eula/?BACK=/downloads/unifi/2.4.5/UniFi.unix.zip |
| 42 | |
| 43 | 4. Extract new version from the archive. |
| 44 | |
| 45 | {{{ |
| 46 | # cd /var/tmp |
| 47 | # unzip -q UniFi.unix.zip |
| 48 | # chown -R unifi.unifi UniFi |
| 49 | # mv UniFi /opt/UniFi-2.4.5 |
| 50 | # |
| 51 | # cd /opt |
| 52 | # ls -ld UniFi* |
| 53 | lrwxrwxrwx 1 root root 11 May 12 13:55 UniFi -> UniFi-2.3.9 |
| 54 | drwxr-xr-x 10 unifi unifi 4096 May 12 13:53 UniFi-2.3.9 |
| 55 | drwxr-xr-x 8 unifi unifi 4096 Aug 31 12:52 UniFi-2.4.5 |
| 56 | # |
| 57 | }}} |
| 58 | |
| 59 | 5. Stop !UniFi Controller, copy the 'data' sub-directory over to the new version, start Controller again. |
| 60 | |
| 61 | {{{ |
| 62 | # service unifi stop |
| 63 | Stopping Ubiquiti Networks UniFi Controller: |
| 64 | # |
| 65 | # mv UniFi-2.4.5/data UniFi-2.4.5/data.orig |
| 66 | # cp -a UniFi-2.3.9/data UniFi-2.4.5/ |
| 67 | # |
| 68 | # rm -f UniFi ; ln -s UniFi-2.4.5 UniFi |
| 69 | # ls -ld UniFi* |
| 70 | lrwxrwxrwx 1 root root 11 Aug 31 12:54 UniFi -> UniFi-2.4.5 |
| 71 | drwxr-xr-x 10 unifi unifi 4096 May 12 13:53 UniFi-2.3.9 |
| 72 | drwxr-xr-x 9 unifi unifi 4096 Aug 31 12:53 UniFi-2.4.5 |
| 73 | # |
| 74 | # service unifi start |
| 75 | Starting Ubiquiti Networks UniFi Controller: |
| 76 | # |
| 77 | # |
| 78 | # ps -fu unifi |
| 79 | UID PID PPID C STIME TTY TIME CMD |
| 80 | unifi 2197 2195 0 12:54 ? 00:00:00 -bash -c (cd /opt/UniFi ; java -jar lib/ace.jar start) |
| 81 | unifi 2217 2197 0 12:54 ? 00:00:00 -bash -c (cd /opt/UniFi ; java -jar lib/ace.jar start) |
| 82 | unifi 2218 2217 98 12:54 ? 00:00:16 java -jar lib/ace.jar start |
| 83 | 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 |
| 84 | # |
| 85 | }}} |
| 86 | |
| 87 | 6. Connect to the !UniFi controller in a web browser. Upgrade software on the AP(s) to version 2.4.5.2077. |
| 88 | |
| 89 | {{{ |
| 90 | #!html |
| 91 | <div align="center"><a href="/img/ubnt/UniFi-hamster-20130831-1.png"><img src="/img/ubnt/UniFi-hamster-20130831-1.png" width="956" height="618"></a></div> |
| 92 | }}} |
| 93 | |
| 94 | |
| 95 | === See Also === |
| 96 | |
| 97 | http://community.ubnt.com/t5/UniFi-Updates-Blog/UniFi-2-4-5-is-released/ba-p/544456 \\ !UniFi 2.4.5 is released |
| 98 | |
| 99 | wiki:UniFiControllerCentOS5 \\ Install Ubiquiti Networks !UniFi Controller on CentOS 5 |