Thanks. I previously had the hostname as my duckdns hostname, and didn’t have override checked. Toggling override inform host by itself did not fix the adopting loop my switch was in, but switching to my hostname/IP to the IP (instead of duckdns hostname) and toggling override inform host worked.
Anybody ever had this happen? Fresh install of Hass on a fresh SD card, everything else working, but this add-on won’t start?
Error: Invalid or corrupt jarfile /usr/lib/unifi/lib/ace.jar
[21:34:12] INFO: Starting the UniFi Controller...
Error: Invalid or corrupt jarfile /usr/lib/unifi/lib/ace.jar
[21:34:15] INFO: Starting the UniFi Controller...
Error: Invalid or corrupt jarfile /usr/lib/unifi/lib/ace.jar
EDIT Got round that problem by reinstalling the add-on. Now trying to restore from a backup and new errors:
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'.
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: destroy called
Exception in thread "Thread-14" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration: Initialization of bean failed; nested exception is java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:584)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1455)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1419)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1310)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1166)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:855)
at org.springframework.beans.factory.support.ConstructorResolver.resolvePreparedArguments(ConstructorResolver.java:802)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:143)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1308)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1143)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1455)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1419)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1310)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1166)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:855)
at org.springframework.beans.factory.support.ConstructorResolver.resolvePreparedArguments(ConstructorResolver.java:802)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:143)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1308)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1143)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.context.support.DefaultLifecycleProcessor.getLifecycleBeans(DefaultLifecycleProcessor.java:289)
at org.springframework.context.support.DefaultLifecycleProcessor.stopBeans(DefaultLifecycleProcessor.java:195)
at org.springframework.context.support.DefaultLifecycleProcessor.stop(DefaultLifecycleProcessor.java:116)
at org.springframework.context.support.AbstractApplicationContext.stop(AbstractApplicationContext.java:1331)
at com.ubnt.service.B.oÓ0000(Unknown Source)
at com.ubnt.ace.Launcher$2.run(Unknown Source)
Caused by: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:177)
at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1212)
at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:340)
at org.springframework.web.servlet.handler.AbstractHandlerMapping.detectMappedInterceptors(AbstractHandlerMapping.java:318)
at org.springframework.web.servlet.handler.AbstractHandlerMapping.initApplicationContext(AbstractHandlerMapping.java:293)
at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:124)
at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:77)
at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:78)
at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:120)
at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:96)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:419)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1737)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:576)
... 45 more
Release v0.13.5
This is a general maintenance release.
Changes
- Upgrades openjdk-8-jdk-headless to 8u242-b08-0ubuntu3~18.04
Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck
Hi,
I have had a problem for a week on my unifi controller.
When I activate the SSL mode, the controller does not start. Without SSL mode, it starts but is only accessible via unifi.ui.com
Here’s the log
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
-----------------------------------------------------------
Hass.io Add-on: UniFi Controller
Manage your UniFi network using a web browser
-----------------------------------------------------------
Add-on version: 0.13.5
You are running the latest version of this add-on.
System: HassOS 3.8 (armv7 / raspberrypi3)
Home Assistant version: 0.104.3
Supervisor version: 195
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
Log level is set to DEBUG
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] unifi.sh: executing...
[23:07:58] DEBUG: Injecting SSL certificate into the controller...
[23:07:58] DEBUG: Preparing certificate in a format UniFi accepts...
[23:07:58] DEBUG: Removing existing certificate from UniFi protected keystore...
keytool error: java.lang.Exception: Alias <unifi> does not exist
[cont-init.d] unifi.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing...
-----------------------------------------------------------
Oops! Something went wrong.
We are so sorry, but something went terribly wrong when
starting or running this add-on.
Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
Has anyone ever had the problem?
Thanks
I faced the same problem with the backup/restore function.
In my case I used the switch site option to switch my AP from another controller to this installation.
Hi - firstly, thanks for the plugin. I recently moved over to hassio and this has been working well, but (and you probably knew this was coming!) the latest hassio update may (it could always be an issue specific to my configuration) have introduced an issue where the plugin does not start. Everything seems to fire up normally, with the last message in the log stating “Starting the UniFi Controller…”, but (for me) the web gui doesn’t fire up. I’ve been running without a certificate, so when I get a chance I might set one up and see if that makes a difference, as well as dig deeper around the hassio logs to see if anything obvious is in there.
Add-on version: 0.13.5
System: HassOS 3.10 (armv7 / raspberrypi3)
Home Assistant version: 0.105.4
Supervisor version: 200
At the moment I’m not actually minded to try to work around the bug because my HA instance still seems able to detect devices coming and going on the network despite lack of a working controller! Surprising to me.
Release v0.14.0
This is a general maintenance release.
Changes
- Update add-on documentation to use new YAML configuration format
- Re-branding
- Update add-on config with new password & list features
- Upgrades add-on base image to v5.0.1
- Update community forum links
- Documentation tweaks
Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck
Hi guys, I have exactly the same problem.
I was able to configure the first time I installed. and now (after a while) I got this :
Alias does not exist
Any help or suggestions (Log in debug mode doesn’t help.
Any support is appreciated.
```
Add-on version: 0.14.0
-
You are running the latest version of this add-on.*
-
System: HassOS 3.11 (aarch64 / raspberrypi3-64)*
-
Home Assistant Core: 0.106.2*
-
Home Assistant Supervisor: 201*
[cont-init.d] 00-banner.sh: exited 0.
*[cont-init.d] 01-log-level.sh: executing… *
Log level is set to DEBUG
[cont-init.d] 01-log-level.sh: exited 0.
*[cont-init.d] unifi.sh: executing… *
[11:36:31] DEBUG: Injecting SSL certificate into the controller…
[11:36:31] DEBUG: Preparing certificate in a format UniFi accepts…
[11:36:31] DEBUG: Removing existing certificate from UniFi protected keystore…
keytool error: java.lang.Exception: Alias does not exist
[cont-init.d] unifi.sh: exited 1.
[cont-finish.d] executing container finish scripts…
*[cont-finish.d] 99-message.sh: executing… *
----------------------------------------------------------- -
Oops! Something went wrong.*
-
We are so sorry, but something went terribly wrong when*
-
starting or running this add-on.*
-
-
Be sure to check the log above, line by line, for hints.*
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
```
Hi, solved by myself.
put ssl =false -> means that unify use a selfsigned certificate but is still a HTTPS:// request.
I was confused ad tried with http://
then after confirmation that the backup file was in place in /backup/unifi i reinstalled the plugin.
services started (again the log confused me: message is_ Unify starting and not started so in not clear the real service status).
at the first login, I chose the restore from backup. in addition, I changed the controller name in the unify controller setting with the same name as the hassio node.
Now all is working again as before.
Is anyone else having the problem of the USG and AP forgetting their inform address?
I find myself regurarly fixing the inform address for the units because they revert back to http://unifi:8080/inform
instead of http://192.168.x.xxx:8080/inform
I find it usually happening when I restart my HA
I don’t know if this is related, but it’s the only error I’m getting on the plugin logs
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'.
just in case anyone else runs into the problem of devices (APs) not being found.
I had 2 AP-AC-Lites running that I had set up in standalone mode using the mobile app and they wouldn’t appear in the controller. I assumed it was something to do with my controller settings, but after a lot of hair pulling, I figured out they needed a full factory reset (not just a press of the reset button on the back).
To do this I SSH into the AP (ssh username-set-up-in-mobile-app@ip-of-AP
then I used the command “syswrapper.sh restore-default” to reset the AP.
The devices reset and then were discovered by the controller.
Hope this helps others
I must be doing something wrong. I used to SSH into my cloud key all the time, however I have since migrated to the HASSIO plugin and cannot figure out how to get to it using putty on another computer. I tried hitting the HASSIO IP however I am guessing that is not working because Unifi runs in a docker container and has a different IP. any help would be much appreciated. thanks.
Hello,
How does the upgrade process working ?
Currently it is on 5.12.35 but now is 5.12.66 out.
Can we upgrade the Controller manually or not ?
Thanks !
Regards,
Bart
Bart, if you are using the Hassio addon, in the addon details (Supervisor -> select UniFi addon) you will be able to do that.
Hello, i have Hassio addon but i dont have the option to upgrade in the addon details.
Ideas?
Thanks
Version 0.14.0 is the latest. Which version do you have?
I have this version 0.14.0. But I have Unifi version 5.12.35 and now the last is 5.12.66.
Ok I get you now. If I see the latest pull request in Git, the version 0.14.0 is built on controller software 5.12.35 indeed. A newer version of the software would need to be a new pull request and subsequently a new add on version. We have to wait for that to come.