Need Help: UniFi controller not starting (working fine formerly)

Hello everyone,
since some weeks my Unifi controller plugin is not starting up.
I’m using ist for at least a year now. But it’s nor working anymore.
It might be connected to an Update in Hass.os, but I’m not sure about the coincidence.
This is the log I get (log_level: trace):

22:07:06] TRACE: bashio::jq: /data/options.json if (.ssl == null) then
            null
        elif (.ssl | type == "string") then
            .ssl // empty
        elif (.ssl | type == "boolean") then
            .ssl // false
        elif (.ssl | type == "array") then
            if (.ssl == []) then
                empty
            else
                .ssl[]
            end
        elif (.ssl | type == "object") then
            if (.ssl == {}) then
                empty
            else
                .ssl
            end
        else
            .ssl
        end
[22:07:06] TRACE: bashio::var.true: false
[22:07:06] TRACE: bashio::fs.directory_exists: /data/unifi/data
[22:07:06] TRACE: bashio::fs.directory_exists: /backup/unifi
[22:07:06] TRACE: bashio::fs.file_exists: /data/unifi/data/system.properties
[22:07:06] TRACE: bashio::config.false: ssl
[22:07:06] TRACE: bashio::config: ssl
[22:07:06] TRACE: bashio::jq: /data/options.json if (.ssl == null) then
            null
        elif (.ssl | type == "string") then
            .ssl // empty
        elif (.ssl | type == "boolean") then
            .ssl // false
        elif (.ssl | type == "array") then
            if (.ssl == []) then
                empty
            else
                .ssl[]
            end
        elif (.ssl | type == "object") then
            if (.ssl == {}) then
                empty
            else
                .ssl
            end
        else
            .ssl
        end
[22:07:06] TRACE: bashio::var.false: false
[cont-init.d] unifi.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[22:07:06] INFO: Starting the UniFi Controller...
[22:07:06] TRACE: bashio::config.has_value: memory_max
[22:07:06] TRACE: bashio::config: memory_max
[22:07:06] TRACE: bashio::jq: /data/options.json if (.memory_max == null) then
            null
        elif (.memory_max | type == "string") then
            .memory_max // empty
        elif (.memory_max | type == "boolean") then
            .memory_max // false
        elif (.memory_max | type == "array") then
            if (.memory_max == []) then
                empty
            else
                .memory_max[]
            end
        elif (.memory_max | type == "object") then
            if (.memory_max == {}) then
                empty
            else
                .memory_max
            end
        else
            .memory_max
        end
[22:07:06] TRACE: bashio::config.has_value: memory_init
[22:07:06] TRACE: bashio::config: memory_init
[22:07:06] TRACE: bashio::jq: /data/options.json if (.memory_init == null) then
            null
        elif (.memory_init | type == "string") then
            .memory_init // empty
        elif (.memory_init | type == "boolean") then
            .memory_init // false
        elif (.memory_init | type == "array") then
            if (.memory_init == []) then
                empty
            else
                .memory_init[]
            end
        elif (.memory_init | type == "object") then
            if (.memory_init == {}) then
                empty
            else
                .memory_init
            end
        else
            .memory_init
        end

Without trace:

[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.2
 You are running the latest version of this add-on.
 System: HassOS 4.16  (armv7 / raspberrypi3)
 Home Assistant Core: 0.117.5
 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.
[22:15:28] INFO: Starting the UniFi Controller...

Hopefully someone can assist me :slight_smile:

Thank you!

1 Like

Just a bump on this one - I’m having same challenges with 0.19.2. Noticed my dashboard tracked based on Unifi presence wasn’t working and then found the add-on crashed/won’t start. Also on Hass.io

Hi the same issue with my setup. It stopped working few months ago. There have been several supervisor, core and Unifi updates since this time but my add-on is hanging on ‘Starting the UniFi Controller…’ message.

I checked potential ports conflicts but haven’t found any other add-on using ports proposed for default UniFi setup. I tried to run UniFi as the only add-on in my system and to run it without any port exposed (all disabled) - always the same: hangs on ‘Starting the UniFi Controller…’ . Today I re-installed add-on: nothing better.

Could anyone help with fixing?

[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... 
-----------------------------------------------------------
 Add-on: UniFi Controller
 Manage your UniFi network using a web browser
-----------------------------------------------------------
 Add-on version: 0.20.2
 You are running the latest version of this add-on.
 System: Home Assistant OS 5.11  (armv7 / raspberrypi4)
 Home Assistant Core: 2021.2.3
 Home Assistant Supervisor: 2021.02.11
-----------------------------------------------------------
 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.
[11:14:02] INFO: Starting the UniFi Controller...