MongoDB and Ubiquiti UniFi Controller

The discussion lounge for third-party packages.
Forum rules
Please note the Disclaimer before modifying your Synology Product.
Wakko
Beginner
Beginner
Posts: 22
Joined: Fri Feb 15, 2013 5:03 pm
Location: Saint-Petersburg, Russia
Contact:

Re: MongoDB and Ubiquiti UniFi Controller

Postby Wakko » Tue Nov 04, 2014 2:24 am

Hello!

I offer you a new version of Ubiquiti Controllers for Synology:
1. UniFi Wireless Controller (former UniFi Controller version 3.xx, for those who use the controller only to access points).
2. UniFi Controller (new UniFi Controller version 4.xx, for those who use the controller to the access points and other equipment from the UniFi Switching & Routing equipment).
3. mFi Controller (controller form mPower and mPort devices).

The main difference of the new packages:
1. Now before installing the controller does not need to be installed separately MongoDB.
2. After the upgrade DSM on Synology - no need to reinstall MongoDB.
3. Each controller contains MongoDB server version 2.2.7, which recommends by Ubiquiti.
4. During installation, you can now set the controller ports for the web-interface of the controller, as well as you can change the system ports, to prevent conflicts with other packages (eg service SABnzbd, which also uses port 8443).
5. The script for starting the controller has been rewritten, now, in the event of an error on startup, error text will be displayed on the screen.
6. All three packages can coexist on a single Synology, important not to cross the ports.
7. And finally, during the installation of new packages (as well as during migration UniFi Controller <==> UniFi Wireless Controller), you can import the previous database and logs.

Previous versions of the controllers (depending on the package with MongoDB) is now considered deprecated and will be removed from the repository. The package itself MongoDB will as before be present in the repository, but later it will be split into branches 2.2, 2.4 and 2.6.

PS. There is a great desire to make a version of controllers for Synology devices with ARM-based CPU, but unfortunately, the equipment for the tests is absent yet. See details on the web-page http://synology.acmenet.ru/
PPS. Any comments and bug reports can be sent to me at the address wakko@acmelabs.spb.ru
User avatar
syno_user
Experienced
Experienced
Posts: 128
Joined: Fri Jan 02, 2009 4:31 pm

Re: MongoDB and Ubiquiti UniFi Controller

Postby syno_user » Fri Nov 07, 2014 11:10 am

Hello,

great deal :)

Anyway I am little confused about the packages.

What package is most up to date for using wifi?
Unifi Controller Cloud (old) 4.2.0-beta-3
Unifi Controller 4.2.0-141105-beta
Unifi Wireless Controller 3.2.7-141105-beta

I am asking because if I try use Unifi Controller Cloud (old) it give me newer FW for UAP than Unifi Controller. So it looks like "old" package is more upto date than "new". And it sound strange :)

And why you make separate wifi package if the package Unifi Controller can work also in "only wifi" mode. I guess it would be better even for you maintain less packages, dont you think? Or do you recommend use "Wireless Controller" if I want use only wifi?

And last question. Does work migration db between "old" and "new" package or just beween "new". And should be separate MongoDB uninstalled at first?
DS415+ with Synology Remote
Wakko
Beginner
Beginner
Posts: 22
Joined: Fri Feb 15, 2013 5:03 pm
Location: Saint-Petersburg, Russia
Contact:

Re: MongoDB and Ubiquiti UniFi Controller

Postby Wakko » Fri Nov 07, 2014 11:33 am

Hi!

All of packages you list has firmware 3.2.7-2816.
Data from "Unifi Controller Cloud (old)" could be migrated to both "Unifi Controller" and "Unifi Wireless Controller".
Data from "UniFi Controller" could be migrated to "UniFi Wireless Controller" only.
Data from "UniFi Wireless Controller" could be migrated to "UniFi Controller" only.
Data from "new" to "old" could be migrated via backup/restore functional.

If you use controller with access points only, I recomend to use "UniFi Wireless Controller", cause "UniFi Controller" has features what you don't use. :)

Packages with the word "old" in the title will not be updated anymore, and will be deleted from the repository after 01.01.2015.
MongoDB package is needed only for "old" controller packages.
User avatar
syno_user
Experienced
Experienced
Posts: 128
Joined: Fri Jan 02, 2009 4:31 pm

Re: MongoDB and Ubiquiti UniFi Controller

Postby syno_user » Fri Nov 07, 2014 1:01 pm

Wakko wrote:Hi!

All of packages you list has firmware 3.2.7-2816.


Yes, now you are correct. I use for comparison version 141104. Which has older FW than "old" package ;)

Wakko wrote:If you use controller with access points only, I recomend to use "UniFi Wireless Controller", cause "UniFi Controller" has features what you don't use. :)

Ok, but do I understand correctly that at the other point of view It could be used even if I dont use all funcionality and youcan maintain only one package and not two. I think it would be better for you ;)

And why is Ufi Wireless Controller 3.2.x and Unifi Controller 4.2.x? It looks like at least the GUI is newer in AllInOne" Unifi Controller. So I would prefer use this package cause id looks for me "newer" ;)

Does it make sense?
DS415+ with Synology Remote
Wakko
Beginner
Beginner
Posts: 22
Joined: Fri Feb 15, 2013 5:03 pm
Location: Saint-Petersburg, Russia
Contact:

Re: MongoDB and Ubiquiti UniFi Controller

Postby Wakko » Fri Nov 07, 2014 1:26 pm

syno_user wrote:
Wakko wrote:If you use controller with access points only, I recomend to use "UniFi Wireless Controller", cause "UniFi Controller" has features what you don't use. :)

Ok, but do I understand correctly that at the other point of view It could be used even if I dont use all funcionality and youcan maintain only one package and not two. I think it would be better for you ;)

And why is Ufi Wireless Controller 3.2.x and Unifi Controller 4.2.x? It looks like at least the GUI is newer in AllInOne" Unifi Controller. So I would prefer use this package cause id looks for me "newer" ;)

Does it make sense?

I'm using old-style "UniFi Wireless Controller", so I will maintain both of version. :)
Later I will check memory load both versions and will publish the result here.
User avatar
syno_user
Experienced
Experienced
Posts: 128
Joined: Fri Jan 02, 2009 4:31 pm

Re: MongoDB and Ubiquiti UniFi Controller

Postby syno_user » Fri Nov 07, 2014 2:08 pm

Do you plan sign your package with certificate? I think selfsined will be enough and share public key for import to DSM?
DS415+ with Synology Remote
Wakko
Beginner
Beginner
Posts: 22
Joined: Fri Feb 15, 2013 5:03 pm
Location: Saint-Petersburg, Russia
Contact:

Re: MongoDB and Ubiquiti UniFi Controller

Postby Wakko » Fri Nov 07, 2014 2:13 pm

syno_user wrote:Do you plan sign your package with certificate? I think selfsined will be enough and share public key for import to DSM?
Yes, a little later.
Magunder
I'm New!
I'm New!
Posts: 1
Joined: Fri Nov 07, 2014 7:52 pm

Re: MongoDB and Ubiquiti UniFi Controller

Postby Magunder » Fri Nov 07, 2014 8:30 pm

First and foremost, Thank you for the packages!!... These are excellent additions to my NAS Applications. I do have an issue with the mFi controller though and Sorry to bring it up from an earlier post. It was asked that the new version of the mFi controller is not adopting any devices... This is happening to my seup as well. Is there a fix for this or is something new coming? It sees the devices (Power Strips) continually sit in "Adopting" Mode. The older version with the MongoDB worked. Thanks for your work! Todd
BigTy
Novice
Novice
Posts: 43
Joined: Fri Mar 09, 2012 8:15 pm

Re: MongoDB and Ubiquiti UniFi Controller

Postby BigTy » Fri Nov 07, 2014 10:05 pm

Wakko


After the last update I am getting Java is dead when trying to load this app. When I look at my Java app it says its running do you happen to know what I'm doing wrong?
DS 1512+
Wakko
Beginner
Beginner
Posts: 22
Joined: Fri Feb 15, 2013 5:03 pm
Location: Saint-Petersburg, Russia
Contact:

Re: MongoDB and Ubiquiti UniFi Controller

Postby Wakko » Fri Nov 07, 2014 10:10 pm

BigTy wrote:After the last update I am getting Java is dead when trying to load this app. When I look at my Java app it says its running do you happen to know what I'm doing wrong?

What version of Java is installed?
BigTy
Novice
Novice
Posts: 43
Joined: Fri Mar 09, 2012 8:15 pm

Re: MongoDB and Ubiquiti UniFi Controller

Postby BigTy » Sat Nov 08, 2014 1:40 am

1.7.0_72 is what I currently have installed.
DS 1512+
Wakko
Beginner
Beginner
Posts: 22
Joined: Fri Feb 15, 2013 5:03 pm
Location: Saint-Petersburg, Russia
Contact:

Re: MongoDB and Ubiquiti UniFi Controller

Postby Wakko » Sat Nov 08, 2014 10:46 am

BigTy wrote:1.7.0_72 is what I currently have installed.

Could you please send me output of the next commands:

Code: Select all

% ls -al /var/packages/
% ls -al /var/packages/JavaManager/
% ls -al /var/packages/JavaManager/target/
% ls -al /var/packages/JavaManager/target/Java/bin/
BigTy
Novice
Novice
Posts: 43
Joined: Fri Mar 09, 2012 8:15 pm

Re: MongoDB and Ubiquiti UniFi Controller

Postby BigTy » Sat Nov 08, 2014 3:12 pm

Code: Select all

drwxrwxrwx   19 root     root          4096 Nov  7 20:30 .
drwxr-xr-x   14 root     root          4096 Oct 31 20:01 ..
drwxr-xr-x    3 root     root          4096 Nov  7 15:44 AntiVirus
drwxrwxrwx    3 root     root          4096 Nov  7 15:43 DownloadStation
drwxr-xr-x    3 root     root          4096 Nov  7 20:05 JavaManager
drwxr-xr-x    4 root     root          4096 Nov  7 15:42 MariaDB
drwxrwxrwx    3 root     root          4096 Nov  7 15:41 MediaServer
drwxr-xr-x    3 root     root          4096 Nov  4 21:55 MongoDB
drwxr-xr-x    3 root     root          4096 Nov  7 15:43 Perl
drwxrwxrwx    3 root     root          4096 Nov  7 15:43 PhotoStation
drwxrwxrwx    3 root     root          4096 Nov  1 07:58 Plex Media Server
drwxr-xr-x    4 root     root          4096 Aug 21 06:55 SurveillanceStation
drwxrwxrwx    3 root     root          4096 Oct  7 17:56 TimeBackup
drwxr-xr-x    4 root     root          4096 Nov  7 20:10 UniFi Controller
drwxrwxrwx    3 root     root          4096 Nov  7 15:43 VPNCenter
drwxr-xr-x    3 root     root          4096 Nov  7 20:30 Webalizer
drwxrwxrwx    3 root     root          4096 May 15 20:23 iTunesServer
drwxr-xr-x    4 root     root          4096 Nov  7 15:42 phpMyAdmin
drwxr-xr-x    5 root     root          4096 Nov  7 15:43 zabbix


Code: Select all

drwxr-xr-x    3 root     root          4096 Nov  7 20:05 .
drwxrwxrwx   19 root     root          4096 Nov  7 20:30 ..
-rw-r--r--    1 nobody   nobody       11186 Nov  7 20:05 INFO
------x--x    1 root     root             0 Nov  7 20:05 enabled
lrwxrwxrwx    1 root     root            34 Nov  7 20:05 etc -> /usr/syno/etc/packages/JavaManager
drwxr-xr-x    3 nobody   nobody        4096 Nov  6 02:48 scripts
lrwxrwxrwx    1 root     root            30 Nov  7 20:05 target -> /volume1/@appstore/JavaManager


Code: Select all

drwxr-xr-x    5 root     root          4096 Nov  7 20:08 .
drwxrwxrwx   19 root     root          4096 Nov  7 20:30 ..
drwxr-xr-x    8 10       dovecot       4096 Sep 26 23:00 Java
drwxr-xr-x    4 root     root          4096 Oct 16 05:40 indexdb
drwxr-xr-x    6 root     root          4096 Oct 16 05:40 ui


Code: Select all

drwxr-xr-x    2 10       dovecot       4096 Sep 26 22:56 .
drwxr-xr-x    8 10       dovecot       4096 Sep 26 23:00 ..
lrwxrwxrwx    1 10       dovecot          8 Sep 26 22:52 ControlPanel -> jcontrol
-rwxr-xr-x    1 10       dovecot       5953 Sep 26 22:52 appletviewer
-rwxr-xr-x    1 10       dovecot       5865 Sep 26 22:52 apt
-rwxr-xr-x    1 10       dovecot       5873 Sep 26 22:52 extcheck
-rwxr-xr-x    1 10       dovecot       5893 Sep 26 22:52 idlj
-rwxr-xr-x    1 10       dovecot       5861 Sep 26 22:52 jar
-rwxr-xr-x    1 10       dovecot       5873 Sep 26 22:52 jarsigner
-rwxr-xr-x    1 10       dovecot       5714 Sep 26 22:52 java
-rwxr-xr-x    1 10       dovecot       1809 Sep 26 22:44 java-rmi.cgi
-rwxr-xr-x    1 10       dovecot       5865 Sep 26 22:52 javac
-rwxr-xr-x    1 10       dovecot       5873 Sep 26 22:52 javadoc
-rwxr-xr-x    1 10       dovecot       2052 Sep 26 19:36 javafxpackager
-rwxr-xr-x    1 10       dovecot       5865 Sep 26 22:52 javah
-rwxr-xr-x    1 10       dovecot       5865 Sep 26 22:52 javap
-rwxr-xr-x    1 10       dovecot     109088 Sep 26 22:52 javaws
-rwxr-xr-x    1 10       dovecot       5861 Sep 26 22:52 jcmd
-rwxr-xr-x    1 10       dovecot       5929 Sep 26 22:52 jconsole
-rwxr-xr-x    1 10       dovecot       6391 Sep 26 22:52 jcontrol
-rwxr-xr-x    1 10       dovecot       5897 Sep 26 22:52 jdb
-rwxr-xr-x    1 10       dovecot       5865 Sep 26 22:52 jhat
-rwxr-xr-x    1 10       dovecot       5985 Sep 26 22:52 jinfo
-rwxr-xr-x    1 10       dovecot       5985 Sep 26 22:52 jmap
-rwxr-xr-x    1 10       dovecot      63050 Jul  8 18:20 jmc
-rwxr-xr-x    1 10       dovecot        377 Jul  8 18:28 jmc.ini
-rwxr-xr-x    1 10       dovecot       5857 Sep 26 22:52 jps
-rwxr-xr-x    1 10       dovecot       5881 Sep 26 22:52 jrunscript
-rwxr-xr-x    1 10       dovecot       5901 Sep 26 22:52 jsadebugd
-rwxr-xr-x    1 10       dovecot       5993 Sep 26 22:52 jstack
-rwxr-xr-x    1 10       dovecot       5861 Sep 26 22:52 jstat
-rwxr-xr-x    1 10       dovecot       5869 Sep 26 22:52 jstatd
-rwxr-xr-x    1 10       dovecot       5356 Sep 26  2013 jvisualvm
-rwxr-xr-x    1 10       dovecot       5873 Sep 26 22:52 keytool
-rwxr-xr-x    1 10       dovecot       5877 Sep 26 22:52 native2ascii
-rwxr-xr-x    1 10       dovecot       6013 Sep 26 22:52 orbd
-rwxr-xr-x    1 10       dovecot       5893 Sep 26 22:52 pack200
-rwxr-xr-x    1 10       dovecot       5981 Sep 26 22:52 policytool
-rwxr-xr-x    1 10       dovecot       5857 Sep 26 22:52 rmic
-rwxr-xr-x    1 10       dovecot       5865 Sep 26 22:52 rmid
-rwxr-xr-x    1 10       dovecot       5877 Sep 26 22:52 rmiregistry
-rwxr-xr-x    1 10       dovecot       5889 Sep 26 22:52 schemagen
-rwxr-xr-x    1 10       dovecot       5873 Sep 26 22:52 serialver
-rwxr-xr-x    1 10       dovecot       5893 Sep 26 22:52 servertool
-rwxr-xr-x    1 10       dovecot       6045 Sep 26 22:52 tnameserv
-rwxr-xr-x    1 10       dovecot     215380 Sep 26 22:52 unpack200
-rwxr-xr-x    1 10       dovecot       5873 Sep 26 22:52 wsgen
-rwxr-xr-x    1 10       dovecot       5881 Sep 26 22:52 wsimport
-rwxr-xr-x    1 10       dovecot       5877 Sep 26 22:52 xjc
DS 1512+
BigTy
Novice
Novice
Posts: 43
Joined: Fri Mar 09, 2012 8:15 pm

Re: MongoDB and Ubiquiti UniFi Controller

Postby BigTy » Sun Nov 09, 2014 3:23 pm

Just tried to load the Mfi app and that works great. I tried the Unifi controller old app 3.2.7.2 and it gave me an error of failed to run package service. Also the 3.2.5 version is the one reporting that Java is dead.

My last question is the newer version of Unifi is 4.2 and 3.2.7 but you have 3.2.7 marked as old. Was that a typo?

*Update*
I was able to resolve my issue. Fr some reason Java was still showing in use even when I had removed the package. I removed ALL packages that wasn't needed for this setup, rebooted the system. Installed Java first, then the database, and the controller last. Once I did that everything ran smoothly.
DS 1512+
Wakko
Beginner
Beginner
Posts: 22
Joined: Fri Feb 15, 2013 5:03 pm
Location: Saint-Petersburg, Russia
Contact:

Re: MongoDB and Ubiquiti UniFi Controller

Postby Wakko » Thu Dec 04, 2014 5:33 pm

Dear all, who wants to test the operation of the UniFi Controller on Synology ARM-based CPU (Armada 370/XP), please respond to the PM, please.

Return to “Third-party Packages”

Who is online

Users browsing this forum: No registered users and 1 guest