scottyphillips/echonetlite_homeassistant

Socket Error Issue 98

Closed this issue · 2 comments

Hello again,

The power tripped off at my home a while back. For some reason, it broke communication with all integrations I had installed previously.

To resolve it, I deleted HA entirely and reinstalled everything from scratch. Now when I go to add integrations, I receive the "Unknown error occurred" with the following Log output:

Logger: aiohttp.server
Source: custom_components/echonetlite/config_flow.py:146
Integration: ECHONETLite (documentation, issues)
First occurred: 4:03:05 PM (1 occurrences)
Last logged: 4:03:05 PM

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 67, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 235, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 146, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 180, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 271, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/echonetlite/config_flow.py", line 176, in async_step_user
await self.init_discover()
File "/config/custom_components/echonetlite/config_flow.py", line 146, in init_discover
udp.run("0.0.0.0", 3610, loop=loop)
File "/usr/local/lib/python3.10/site-packages/pychonet/lib/udpserver.py", line 33, in run
self._sock.bind((host, port))
OSError: [Errno 98] Address in use

Any idea how I fix this? Thanks so much again for your help.

Something else on your server is listening on port 3610.. so the integration is not able to bind to it. Please check your socket bindings. This is not an issue with the custom component.

Thanks for your reply! I traced the issue to an old copy of HomeBridge that was lingering on my NAS. The integration works perfectly now, many thanks for your continued help!