Changes between Initial Version and Version 1 of UniFiControllerUpgrade


Ignore:
Timestamp:
Sep 1, 2013 5:04:28 AM (11 years ago)
Author:
iva
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UniFiControllerUpgrade

    v1 v1  
     1== Upgrade Ubiquiti Networks !UniFi Controller 2.3.9 to 2.4.5 ==
     2
     3The following upgrade was performed on a {{{EL5.i386}}} server.
     4
     5{{{
     6# uname -nri
     7hamster 2.6.18-348.6.1.el5 i386
     8#
     9}}}
     10
     111. Upgrade Java to the latest Errata patch level.
     12
     13{{{
     14# rpm -qa |grep java-1
     15java-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 [...]
     19Updated:
     20  java-1.6.0-openjdk.i386 1:1.6.0.0-1.41.1.11.11.90.el5_9
     21
     22Complete!
     23#
     24}}}
     25
     262. Upgrade MongoDB server package.
     27
     28{{{
     29# rpm -qa |grep mongo
     30mongo18-10gen-1.8.4-mongodb_1
     31mongo18-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
     413. Download !UniFi software from the Ubiquiti Networks web site @ http://www.ubnt.com/eula/?BACK=/downloads/unifi/2.4.5/UniFi.unix.zip
     42
     434. 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*
     53lrwxrwxrwx  1 root  root    11 May 12 13:55 UniFi -> UniFi-2.3.9
     54drwxr-xr-x 10 unifi unifi 4096 May 12 13:53 UniFi-2.3.9
     55drwxr-xr-x  8 unifi unifi 4096 Aug 31 12:52 UniFi-2.4.5
     56#
     57}}}
     58
     595. Stop !UniFi Controller, copy the 'data' sub-directory over to the new version, start Controller again.
     60
     61{{{
     62# service unifi stop
     63Stopping 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*
     70lrwxrwxrwx  1 root  root    11 Aug 31 12:54 UniFi -> UniFi-2.4.5
     71drwxr-xr-x 10 unifi unifi 4096 May 12 13:53 UniFi-2.3.9
     72drwxr-xr-x  9 unifi unifi 4096 Aug 31 12:53 UniFi-2.4.5
     73#
     74# service unifi start
     75Starting Ubiquiti Networks UniFi Controller:
     76#
     77#
     78# ps -fu unifi
     79UID     PID  PPID  C STIME TTY          TIME CMD
     80unifi  2197  2195  0 12:54 ?     00:00:00 -bash -c (cd /opt/UniFi ; java -jar lib/ace.jar start)
     81unifi  2217  2197  0 12:54 ?     00:00:00 -bash -c (cd /opt/UniFi ; java -jar lib/ace.jar start)
     82unifi  2218  2217 98 12:54 ?     00:00:16 java -jar lib/ace.jar start
     83unifi  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
     876. 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
     97http://community.ubnt.com/t5/UniFi-Updates-Blog/UniFi-2-4-5-is-released/ba-p/544456 \\ !UniFi 2.4.5 is released
     98
     99wiki:UniFiControllerCentOS5 \\ Install Ubiquiti Networks !UniFi Controller on CentOS 5