Hi All,
I’ve recently moved from a standalone debian server to a RP3. I used to have a unifi controller docker on the debian server and have now configured the unifi docker on RP3. I had to use a different docker image that supported RP3.
https://hub.docker.com/r/ryansch/unifi-rpi/
docker pull ryansch/unifi-rpi
My config is as follows:
device_tracker 2:
platform: unifi
username: admin
password: PASS
and the errors I get in my log which point to a user/pass issue but everything is OK. I can login no problems via browser. Also tried to use the IP of the server in the config file but no change. Im unsure what exactly is the issue and dont know why the server is failing to login?
Traceback (most recent call last):
File "/usr/lib/python3.4/urllib/request.py", line 1174, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.4/http/client.py", line 1090, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.4/http/client.py", line 1128, in _send_request
self.endheaders(body)
File "/usr/lib/python3.4/http/client.py", line 1086, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.4/http/client.py", line 924, in _send_output
self.send(msg)
File "/usr/lib/python3.4/http/client.py", line 859, in send
self.connect()
File "/usr/lib/python3.4/http/client.py", line 1221, in connect
super().connect()
File "/usr/lib/python3.4/http/client.py", line 836, in connect
self.timeout, self.source_address)
File "/usr/lib/python3.4/socket.py", line 509, in create_connection
raise err
File "/usr/lib/python3.4/socket.py", line 500, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/init.py”, line 138, in setup_platform
scanner = platform.get_scanner(hass, {DOMAIN: p_config})
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/unifi.py”, line 42, in get_scanner
ctrl = Controller(host, username, password, port, ‘v4’, site_id)
File “/home/homeassistant/.homeassistant/deps/unifi/controller.py”, line 92, in init
self._login(version)
File “/home/homeassistant/.homeassistant/deps/unifi/controller.py”, line 163, in _login
self.opener.open(login_url, params).read()
File “/usr/lib/python3.4/urllib/request.py”, line 455, in open
response = self._open(req, data)
File “/usr/lib/python3.4/urllib/request.py”, line 473, in _open
‘_open’, req)
File “/usr/lib/python3.4/urllib/request.py”, line 433, in _call_chain
result = func(*args)
File “/usr/lib/python3.4/urllib/request.py”, line 1217, in https_open
context=self._context, check_hostname=self._check_hostname)
File “/usr/lib/python3.4/urllib/request.py”, line 1176, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>