hassio-addons/addon-unifi

can't start after restoring from backup #115

michalk-k posted onGitHub

Problem/Motivation

After restoring the controller from HA backup the Controller can't start. Backup has been created on RPi4 HA 0.115.x. Restored on new RPi4 HA 0.117.6, HassOS 5.5 (SSD boot). In first step all components has been restored except of Unify Controller. After making all up and running, and shuting down old Pi, I restored Unify Controller only.

note, backup contains Unifi Controller integration v.0.19.0

Logs (debug mode) shows as follows:

[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.19.0
 There is an update available for this add-on!
 Latest add-on version: 0.19.2
 Please consider upgrading as soon as possible.
 System: HassOS 5.5  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 0.117.6
 Home Assistant Supervisor: 2020.11.0
-----------------------------------------------------------
 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... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] unifi.sh: executing... 
[cont-init.d] unifi.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[21:16:21] INFO: Starting the UniFi Controller...
Exception in thread "SocketListener(a0d7b954-unifi-local-hass-io.local.)" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1967)
    at javax.jmdns.impl.ServiceInfoImpl.decodeQualifiedNameMapForType(ServiceInfoImpl.java:291)
    at javax.jmdns.impl.JmDNSImpl.registerServiceType(JmDNSImpl.java:1074)
    at javax.jmdns.impl.JmDNSImpl.handleRecord(JmDNSImpl.java:1383)
    at javax.jmdns.impl.JmDNSImpl.handleResponse(JmDNSImpl.java:1412)
    at javax.jmdns.impl.SocketListener.run(SocketListener.java:60)
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: destroy called
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
s6-svwait: fatal: timed out
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

I can update to latest integration version, but not sure if it helps.


Strange... today I did another try, restoring the same backup over non working integration. And it started inspite of the same error in logs (see below).

[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.19.0
 There is an update available for this add-on!
 Latest add-on version: 0.19.2
 Please consider upgrading as soon as possible.
 System: HassOS 5.5  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 0.117.6
 Home Assistant Supervisor: 2020.11.0
-----------------------------------------------------------
 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... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] unifi.sh: executing... 
[cont-init.d] unifi.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[09:56:25] INFO: Starting the UniFi Controller...
Exception in thread "SocketListener(a0d7b954-unifi-local-hass-io.local.)" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1967)
    at javax.jmdns.impl.ServiceInfoImpl.decodeQualifiedNameMapForType(ServiceInfoImpl.java:291)
    at javax.jmdns.impl.JmDNSImpl.registerServiceType(JmDNSImpl.java:1074)
    at javax.jmdns.impl.JmDNSImpl.handleRecord(JmDNSImpl.java:1383)
    at javax.jmdns.impl.JmDNSImpl.handleResponse(JmDNSImpl.java:1412)
    at javax.jmdns.impl.SocketListener.run(SocketListener.java:60)
posted by michalk-k about 4 years ago

same here can't start mein unifi controller after restore :/

posted by BiasF about 4 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests