IKEA Tradfri stopped to work

I have used IKEA Tradfri gateway for months flawlessly. I suppose that the gateway updated itself yesterday to Firmware 1.4.15. I am using Homeassistant 0.77.3 installed on a RPi3 with Hassbian.

I have read the docs and removed the .tradfri_psk.conf. Now I receive the configuration panel but cannot get it to accept the security code.

Error message from log:

2018-09-07 19:02:21 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall configurator.configure (c:2697721920b14926b433bcf817ee10b6): configure_id=1771938192-1, fields=security_code=xxx>
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py", line 1117, in _event_to_service_call
    await service_handler.func(service_call)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/configurator.py", line 224, in async_handle_service_call
    call.data.get(ATTR_FIELDS, {}))
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/tradfri.py", line 74, in configuration_callback
    key = yield from api_factory.generate_psk(security_code)
  File "/srv/homeassistant/lib/python3.5/site-packages/pytradfri/api/aiocoap_api.py", line 193, in generate_psk
    self._psk = yield from self.request(command)
  File "/srv/homeassistant/lib/python3.5/site-packages/pytradfri/api/aiocoap_api.py", line 149, in request
    result = yield from self._execute(api_commands)
  File "/srv/homeassistant/lib/python3.5/site-packages/pytradfri/api/aiocoap_api.py", line 139, in _execute
    _, res = yield from self._get_response(msg)
  File "/srv/homeassistant/lib/python3.5/site-packages/pytradfri/api/aiocoap_api.py", line 90, in _get_response
    protocol = yield from self._get_protocol()
  File "/srv/homeassistant/lib/python3.5/site-packages/pytradfri/api/aiocoap_api.py", line 70, in _get_protocol
    loop=self._loop)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiocoap/protocol.py", line 528, in create_client_context
    self.transport_endpoints.append((yield from TransportEndpointUDP6.create_client_transport_endpoint(new_message_callback=self._dispatch_message, new_error_callback=self._dispatch_error, log=self.log, loop=loop, dump_to=dump_to)))
  File "/srv/homeassistant/lib/python3.5/site-packages/aiocoap/transports/udp6.py", line 191, in create_client_transport_endpoint
    sock = socket.socket(family=socket.AF_INET6, type=socket.SOCK_DGRAM)
  File "/usr/lib/python3.5/socket.py", line 134, in __init__
    _socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 97] Address family not supported by protocol

Any clever ideas? Wouldn’t like to reinstall Hassbian because all Z-wave integrations there.

DId a reinstallation of Hassbian and it started to work. Probably some serious issue.

I also have this issue… Reinstalling homeassistant (I used the installation method with virtualenv) did not solve the problem. Could this perhaps be related to me using pi-hole on the same raspberry pi? The errno 97 seems to be unrelated to HA, but I think a more system wide problem.