New Ubiquiti Controllers for Synology

Information for users of repository synology.acmenet.ru:
I offer you a new version of Ubiquiti Controllers for Synology:

  • UniFi Wireless Controller (former UniFi Controller version 3.xx, for those who use the controller only to access points).
  • 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).
  • mFi Controller (controller form mPower and mPort devices).

The main difference of the new packages:

  • Now before installing the controller does not need to be installed separately MongoDB.
  • After the upgrade DSM on Synology – no need to reinstall MongoDB.
  • Each controller contains MongoDB server version 2.2.7, which recommends by Ubiquiti.
  • 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).
  • 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.
  • All three packages can coexist on a single Synology, important not to cross the ports.
  • 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.

Don’t forget to make a backup of previous version UniFi Controller before migrating!!!

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.
 

2016-01-27 update: Please, read the latest news about UniFi Controller on Synology.
 

Additional links:

Comments

  1. Great work on providing this package. Just what I’ve been looking for!

    I do have one issue, on my DS411+ the UniFi Controller isn’t starting up on a reboot. It starts correctly when I start it from the DSM interface. So not sure what is wrong with it. Are there any log files kept from the startup scripts?

    Thanks

  2. Could you try to delete string «[ -f “${PACKAGE_ENABLED}” ] && rm -f “${PACKAGE_ENABLED}”» from the file «/var/packages/UniFi Controller/scripts/start-stop-status» and try again?

    • First up, thanks for your great work and help fixing this issue.

      Just to confirm, I’ve commented out line 94 as requested. Rebooted the NAS it appears to be starting automatically after a reboot. So YAY! Thanks again.

      While I understand the /var/packages/UniFi Controller/scripts/start-stop-status isn’t really for the enduser I did find that it doesn’t work correctly from the ‘root’ account when running it from the command line as the script is using a variable that hasn’t been defined $SYNOPKG_TEMP_LOGFILE, If I define this variable to a temp file, it works correctly. But I haven’t done this as its working correctly now on reboots, and I don’t want to break it, so left it as is.

      • You can leave this line commented out. In the next version it will be gone. This line – my mistake.

  3. Hi. I am not able to install anything (mongo, mfi, unifi) on DS414. Java version 1.7.0_60 (running Serviio with it)
    Package downloads ok, shows port selection screen and than fails.
    What can be the cause?

  4. level380Leverl380
    22.12.2014 - 14:22

    Just a quick one. I noticed that stable and beta version of the Unfi controller on synology don’t save the data retention setting when you change it. clicking apply says the settings are saved, but going out and back in again, the setting defaults back to 1 week.

    How to reproduce. From the unfi interface page, click Settings, then Maintenance, change the Historical Data Retention to a different value say 90 days. Click Apply. Close the settings page and go back in again, it will now be set to 1 week again.

  5. Hi, thank you for the great work on this software. I seem to have a small problem with it though, Often it does not accept my username password. When I restart my DS213 everything is ok again. any ideas why this is happening?

  6. I have a problem since the upgrade to 4.6.6. The unify controller doesn’t collect any data from the AP’s. Anyone familiar with this issue?

  7. Mike Cousins
    16.09.2015 - 02:14

    The 4.7.4 update is not working. It just says update failed each time I try. I’m trying to update from 4.6.6.

  8. Hi Dick, I have the same issue. After a while, the controller gets into a stage where it displays the login screen, but cannot login anymore. You do not need to restart your DS, though. You can just go to the Package Center and stop the UniFi Controller package and then run it again. Good news is that, if you are using UniFi in a home setting, the controller does not need to be running all the time. Once the network and the access points are configured, you can just stop the controller, and the UniFi network will keep running.

  9. Peter Lowden
    15.12.2015 - 22:58

    Hi Dick and Tarkan, I am having the same issue that required a restart of the UniFi Controller package (4.7.6). I have been running this for some time now and found the issue persists across versions (and also if you use the older UniFi Wireless Controller v3.2.10).
    It is only an inconvenience at the moment and the restart workaround gets things going again. Still it would be good to establish the root cause. I am suspecting a resource issue of other external factor.
    I am running it on a DS214 which has the ArmadaXP CPU with 512MB or RAM.I note the DS213 also has 512MB of RAM, Tarkan, what are you running?

  10. Hi Peter, I am running a DS214+ 1024MB RAM.

  11. helixpteron
    19.01.2016 - 17:28

    I tried on the DS216 play and it does not work – the error message complains about MongoDB not working. I tried to install this separately, but no luck. I guess the DS216 has a different processor than most DSMs and this makes it impossible. Would you confirm this ? Regards, Rob.

    • Could you try to run this /volume1/@appstore/UniFi\ Controller/bin/mongod file? And mail me console output.

  12. Hi and great work Wakko.

    I’m insterested in ds216play for multimedia porpouses and to install mfi controller. Do you have resolved the helixpteron’s issue?

  13. Installed on DS414, followed instructions to first install java manager and then the correct Linux x86 (jdk-7u71-linux-i586.tar.gz for the CPU Armada 370/XP.

    Then installed the latest unifi package from the community, selected all default ports and then tried to startup.

    I get an error message
    Failed to run the package service
    ERROR: MongoDB is dead exception is thread “launcher”

    Rest of error message too long and unable to copy from sysnolgy portal, have a screengrab if needed though.

    In the Log from within the Inif Controller in the package center I see

    Error system – [exec] error, rc=141
    INFO db – DbServer stopped

    Any help appreciated

    • helixpteron
      26.02.2016 - 01:04

      @David: I can say he has solved the problem ! Thanks a lot Wakko. It is running fine on my DS216 play. I will install Unifi at this site next week, so I had a look via VPN and the Unifi controller did an update and started up fine. I have not connected any devices yet, but it’s looking good. CHEERS !

    • helixpteron
      26.02.2016 - 01:05

      @David: I can say he has solved the problem ! Thanks a lot Wakko. It is running fine on my DS216 play. I will install Unifi at this site next week, so I had a look via VPN and the Unifi controller did an update and started up fine. I have not connected any devices yet, but it’s looking good. CHEERS !

  14. @helixpteron – how has Wakko solved the problem on your DS216?

    • helixpteron
      28.02.2016 - 02:32

      I don’t know. A few weeks ago it didnät work. Wakko requested that I run a command and I sent the output back to him via email. Then I forgot about it, as it was not for me, but on a client site. Now that the install there is happening in a few days time I tried to start up the controller again and I could do the update and start it up.

  15. Is there a chance to get UniFi Controller on Synology RT1900AC router ??? Please 🙂

  16. I am trying to run Unifi Controller on a Synology DS213j with a MARVELL Armada 370 88F6707 processer and running DSM 6.1-15047 Update 2.
    I have installed Java SE Embedded 8. I did not install MongoDB since that comes with the Unifi Controller.
    Each time I try to start the Unifi Controller it gives me the message: “could not execute the packet service”.
    I have also increased the timeout in the start-stop-status file to 360 seconds but this does not solve the problem.
    Do you have any idea what could be wrong?
    Thanks in advance.
    Dick

  17. Hi
    After the newest DSM updates for Synology the UniFi Controller dont work anymore 🙁 Is there a solution comming or is it done deal?!

  18. offline? never answer on mails, never update unifi, ….

Leave a Reply