0.60 KNX Problem - 'UDPClientFactory' object has no attribute 'xknx'

Hi there,

my log file is full of the following error, anyone can help?
I am running HA with this docker image:
https://hub.docker.com/r/homeassistant/raspberrypi3-homeassistant/

HA and KNX is working till the log file grows too big …

with best regards,
Björn

2017-12-30 07:45:09 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback UDPTransport._on_read_ready
Traceback (most recent call last):
File “uvloop/handles/udp.pyx”, line 56, in uvloop.loop.UDPTransport._on_read_ready
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “uvloop/cbhandles.pyx”, line 52, in uvloop.loop.Handle._run
File “uvloop/handles/udp.pyx”, line 60, in uvloop.loop.UDPTransport._on_read_ready
File “/usr/lib/python3.6/site-packages/xknx/io/udp_client.py”, line 59, in error_received
self.xknx.logger.warning(‘Error received: %s’, exc)
AttributeError: ‘UDPClientFactory’ object has no attribute ‘xknx’

1 Like

I have the same problem, with hass.io, but it seems only to happen if I start the homebridge-addon. I turned it off for some days and everything looked fine, today I tried again to use the homebridge addon and the log grew very fast with this error message

2018-01-13 17:14:56 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback UDPTransport._on_read_ready
Traceback (most recent call last):
  File "uvloop/handles/udp.pyx", line 56, in uvloop.loop.UDPTransport._on_read_ready
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 52, in uvloop.loop.Handle._run
  File "uvloop/handles/udp.pyx", line 60, in uvloop.loop.UDPTransport._on_read_ready
  File "/usr/lib/python3.6/site-packages/xknx/io/udp_client.py", line 59, in error_received
    self.xknx.logger.warning('Error received: %s', exc)
AttributeError: 'UDPClientFactory' object has no attribute 'xknx'

UPDATE yesterday I restarted home-assistant and homebridge and until now the Error is not happening, so maybe there is no connection to homebridge.

I dont use homebridge, anyway the error appears after a few days … :frowning:

I updated to 0.62.1 and the problem still remains :frowning: anyone can help?

Same problem here. Frustrating. Did you find an answer?
Best
/PH

With 0.63.3 the problem seems to be gone … just upgraded to 0.64 and testing

0.64.1 running und the error appeared again :frowning:

2018-02-28 18:42:47 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback UDPTransport._on_read_ready
Traceback (most recent call last):
File “uvloop/handles/udp.pyx”, line 56, in uvloop.loop.UDPTransport._on_read_ready
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “uvloop/cbhandles.pyx”, line 52, in uvloop.loop.Handle._run
File “uvloop/handles/udp.pyx”, line 60, in uvloop.loop.UDPTransport._on_read_ready
File “/usr/lib/python3.6/site-packages/xknx/io/udp_client.py”, line 59, in error_received
self.xknx.logger.warning(‘Error received: %s’, exc)
AttributeError: ‘UDPClientFactory’ object has no attribute ‘xknx’

Same error here. Running on 0.72.1 (Hass.io Raspberry 3B)
Knx connector installed.

Wed Jun 27 2018 12:05:31 GMT+0200 (Midden-Europese zomertijd)

Error doing job: Exception in callback UDPTransport._on_read_ready
Traceback (most recent call last):
File “uvloop/handles/udp.pyx”, line 57, in uvloop.loop.UDPTransport._on_read_ready
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “uvloop/cbhandles.pyx”, line 67, in uvloop.loop.Handle._run
File “uvloop/handles/udp.pyx”, line 61, in uvloop.loop.UDPTransport._on_read_ready
File “/usr/lib/python3.6/site-packages/xknx/io/udp_client.py”, line 59, in error_received
self.xknx.logger.warning(‘Error received: %s’, exc)
AttributeError: ‘UDPClientFactory’ object has no attribute ‘xknx’