Home Assistant Community Add-on: UniFi Controller

I had this problem a while back, it was because my controller wasn’t stable. Can you log on fine to the controller from unifi ? I see that you have changed the inform ip which is a good start. Maybe try reseting on the hardware ?
If the controller isn’t starting check your ports, unifi needs the ones that the pluging uses. Make sure another plugin isn’t using the ports that unifi does or the plugin won’t start.
I also had a problem with L2 discovery. Never needed it so i turned it off.

If I am right this is now Unify Controller version 5.9.29 right?
When is the 5.10.10 version (just became stable) expected, so I can use my backup from that version.

Thanks!

Hi @frenck ,
Do you also have an Hassio.io Add-on Unifi Controller for running Hassio.io on Ubuntu?

When I check the information in Hassio I go to the following site

When I google I find another one, this

How can I install the last one in Hassio

I can’t get it to work on my nuc either.
Any tips perhaps @frenck?

Thanks!

:tada: Release v0.5.0

Full Changelog

Changed

  • Fixes spelling error in Dockerfile
  • Removes BountySource links
  • Removes Anchore.io links
  • Updates maintenance year to 2019
  • Refactor of GitLab CI
  • Upgrades add-on base image to 2.2.1
  • Configure renovate
  • Replaces add-on link with GitHub link
  • Upgrades openjdk-8-jdk-headless to 8u191-b12-2ubuntu0.18.04.1
  • Fixes controller stuck on startup (#11)
  • Adds control over Java Xmx & Xms settings (#13)

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

1 Like

Thank you for the UniFi Controller add-on. I trying to migrate from a previous non hassio UniFi Controller. All seems to go will but I get a login error.

I tried my UniFI username/password, the ubnt default, and the Hass.io password with login on to UniFi.

The log has a warning about OpenJDK.

I see others reported problems. I also see Release v0.5.0 was release today. Hassio still has v0.4.0. I’m new to hassio. Will v0.5.0 once available to the public correct this?

All help and recommendations are welcome.
Thanks.

Config file:
{
“log_level”: “info”,
“ssl”: false,
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}

The log has:
[services.d] starting services
[services.d] done.
INFO: Starting the UniFi Controller
OpenJDK Client VM warning: You have loaded library /usr/lib/unifi/lib/native/Linux/armv7/libubnt_webrtc_jni.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It’s highly recommended that you fix the library with 'execstack -c ', or link it with ‘-z noexecstack’.
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: destroy called
INFO: Starting the UniFi Controller
OpenJDK Client VM warning: You have loaded library /usr/lib/unifi/lib/native/Linux/armv7/libubnt_webrtc_jni.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It’s highly recommended that you fix the library with 'execstack -c ', or link it with ‘-z noexecstack’.

Please try v0.5.0. This has been release, maybe your Hassio hasn’t picked up the update yet.
You can force refresh of the add-on store by going to Hass.io -> Add-on store -> Hit the refresh button in the top right.

General tip for you in this case, uninstall the current version first.

I recently replaced my SD card and restored from a snapshot, all is well other than… Unifi controller is stuck on the startup screen (UniFi Controller is starting up… ) I have left it like this overnight and it still says the same, I previously used cloud access via the unifi app and that as well shows as offline.

I have uninstalled and updated as you pointed out earlier and then re-applied the snapshot, same issue.
Log file has no errors.

Running 86.4 - Snapshot was from 86.3 with Unifi 0.4.0.

I had the same issue no error , nothing.
I changed the
Container 1900/upd = host 1901.
Now I can start UniFi Controller , but I have troubles with in UniFi Controller

This may be a foolish question, but I am getting a dialog when I log in stating:

Controller software update 5.10.12 is now available.

How do I update this? Do I just need to wait for the add-on to update, or is there a procedure?

Thanks.

:tada: Release v0.6.0

Full Changelog

Changed

  • Upgrades UniFi Controller to 5.10.12

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

2 Likes

@frenck Hi, I would like to ask you for your help. My SD card is corrupted, but I´m lucky, that I can read files. Can you please let me know, where is saved/located config files for UniFi Controller? I don´t want to make the settings from beginning (reset all devices and do complete settings). Thanks a lot in advance for your reply…

Hello @frenck , many thanks for all your excellent add-ons. Really appreciated.

I’m trying out this unifi add-on in a Ubuntu environment on my NUC but it doesn’t want to start. Any idea what could be wrong?
There is no log of any kind. When I try to start (protected mode or not) nothing happens.

:tada: Release v0.7.0

Full Changelog

Changed

  • Upgrades UniFi Controller to 5.10.17 (#23) (@schliflo)
  • Added a workaround to the hung adoption issue (#25) (@Firespyer)
  • Upgrades add-on base image to 2.3.0
  • Adds ARMv7 support

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

Hi @frenck, I can’t get this beautiful addon to work on my nuc.

Starting the addon in home assistant just gives red start knob without a log.
Looking in portainer and starting it there gives me below error message.
Any idea what could be the problem? (I do have a Unify docker image running on my Synology already which I want to remove, don’tknow if that is conflicting…)

Failure

driver failed programming external connectivity on endpoint addon_a0d7b954_unifi (f2ae105126186af20c13512e07706fab946a6a73306578aafba8254993f1a1da): Error starting userland proxy: listen udp 0.0.0.0:1900: bind: address already in use

I’m having trouble getting it started in the first place.

INFO: Starting the UniFi Controller
Feb 23, 2019 11:21:05 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused (Connection refused)
Feb 23, 2019 11:21:05 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
Feb 23, 2019 11:21:05 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused (Connection refused)
Feb 23, 2019 11:21:05 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
Feb 23, 2019 11:21:05 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused (Connection refused)
Feb 23, 2019 11:21:05 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
OpenJDK Client VM warning: You have loaded library /usr/lib/unifi/lib/native/Linux/armv7/libubnt_webrtc_jni.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
1 Like

Wonder if anyone can help me. I’m trying to diagnose sky rocketing swap usage and I’m going to try disabling my addons one by one to see if I can find the root cause.
If I disable the UniFi Controller addon, will my WiFi go down, or will I simply be unable to manage it until I reintroduce a controller? Thanks

I have the same issue. When i run 0.5.0 everything works great.

@daneboom
I had the same issue, RAM usage went thru the roof on the Rpi with the unifi controller running alongside everything else.

Wifi will work without the controller running. The APs will work on their own.

Just start up the controller when you wish to change anything.
I went the other way and migrated the entire HASS setup to an old laptop and kept the Rpi running more or less only the Unifi-addon.

:tada: Release v0.7.1

Full Changelog

Changed

  • Upgrades UniFi Controller to 5.10.19 (#26)
  • Document known issue about connection refused exception

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck