stefanlaheij/hassio-addons

Multiple Unifi errors and device_tracker not updated correctly

Closed this issue · 2 comments

HA version: hass.io 0.63
Hardware: Raspberry Pi3

I have been successfully running the Unifi addon for more than a month, after the hass.io update to 0.63 I have started to get multiples errors in the log related to Unifi and device_tracker. Are there any backend changes that could affect this?

Below some of the errors I am getting:

Updating device list from unifi took longer than the scheduled scan interval 0:00:12
15:38 components/device_tracker/__init__.py (WARNING)
Failed to perform <function Controller._read at 0x6fa0b4f8> due to api.err.LoginRequired
15:38 components/device_tracker/unifi.py (WARNING)
Updating device list from unifi took longer than the scheduled scan interval 0:00:12
15:38 components/device_tracker/__init__.py (WARNING)
Updating device list from unifi took longer than the scheduled scan interval 0:00:12
15:37 components/device_tracker/__init__.py (WARNING)
Failed to scan clients: HTTPSConnectionPool(host='localhost', port=8443): Max retries exceeded with url: /api/login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6e8cb370>: Failed to establish a new connection: [Errno 111] Connection refused',))
15:37 components/device_tracker/unifi.py (ERROR)
Failed to perform <function Controller._read at 0x6fa0b4f8> due to HTTPSConnectionPool(host='localhost', port=8443): Max retries exceeded with url: /api/s/default/stat/sta (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6e8cbd70>: Failed to establish a new connection: [Errno 111] Connection refused',))
15:37 components/device_tracker/unifi.py (WARNING)
Failed to scan clients: HTTPSConnectionPool(host='localhost', port=8443): Max retries exceeded with url: /api/login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x758d4950>: Failed to establish a new connection: [Errno 111] Connection refused',))
15:37 components/device_tracker/unifi.py (ERROR)
Failed to perform <function Controller._read at 0x6fa0b4f8> due to HTTPSConnectionPool(host='localhost', port=8443): Max retries exceeded with url: /api/s/default/stat/sta (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6f8f7050>: Failed to establish a new connection: [Errno 111] Connection refused',))
15:37 components/device_tracker/unifi.py (WARNING)
Failed to scan clients: HTTPSConnectionPool(host='localhost', port=8443): Max retries exceeded with url: /api/login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x71f85cf0>: Failed to establish a new connection: [Errno 111] Connection refused',))
15:36 components/device_tracker/unifi.py (ERROR)
Failed to perform <function Controller._read at 0x6fa0b4f8> due to HTTPSConnectionPool(host='localhost', port=8443): Max retries exceeded with url: /api/s/default/stat/sta (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6f8f7970>: Failed to establish a new connection: [Errno 111] Connection refused',))
15:36 components/device_tracker/unifi.py (WARNING)
Failed to scan clients: HTTPSConnectionPool(host='localhost', port=8443): Max retries exceeded with url: /api/login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6f864ef0>: Failed to establish a new connection: [Errno 111] Connection refused',))
15:36 components/device_tracker/unifi.py (ERROR)
Failed to perform <function Controller._read at 0x6fa0b4f8> due to HTTPSConnectionPool(host='localhost', port=8443): Max retries exceeded with url: /api/s/default/stat/sta (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6f417070>: Failed to establish a new connection: [Errno 111] Connection refused',))
15:36 components/device_tracker/unifi.py (WARNING)
Failed to scan clients: HTTPSConnectionPool(host='localhost', port=8443): Max retries exceeded with url: /api/login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x71f855f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
15:36 components/device_tracker/unifi.py (ERROR)
Failed to perform <function Controller._read at 0x6fa0b4f8> due to HTTPSConnectionPool(host='localhost', port=8443): Max retries exceeded with url: /api/s/default/stat/sta (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x71f858f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
15:36 components/device_tracker/unifi.py (WARNING)
Failed to scan clients: HTTPSConnectionPool(host='localhost', port=8443): Max retries exceeded with url: /api/login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x71eabbf0>: Failed to establish a new connection: [Errno 111] Connection refused',))
15:36 components/device_tracker/unifi.py (ERROR)
Failed to perform <function Controller._read at 0x6fa0b4f8> due to HTTPSConnectionPool(host='localhost', port=8443): Max retries exceeded with url: /api/s/default/stat/sta (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:777)'),))
15:36 components/device_tracker/unifi.py (WARNING)

Hi @tomoqv,

As you might know there is now an official mantained add-on for Unifi:
https://community.home-assistant.io/t/community-hass-io-add-on-unifi-controller/56297

Thanks, but I moved on to put the Unifi controller on my Ubuntu Server instead. It works somehow, although I right now don't have it installed at all after a server upgrade. The APs still have the settings stored though, but I need to reinstall the controller soon.