Skip to content

Had this error this morning where my risco local was failing #36

Description

@robertboccia

Any idea what the below means

2025-02-24 12:30:22.509 ERROR (MainThread) [homeassistant.components.risco] Error in Risco library
Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
return await fut
^^^^^^^^^
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/pyrisco/local/risco_socket.py", line 111, in send_command
return await asyncio.wait_for(future, 10)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for
async with timeouts.timeout(timeout):

File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in aexit
raise TimeoutError from exc_val
TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/pyrisco/local/risco_socket.py", line 90, in _keep_alive
await self.send_result_command("CLOCK")
File "/usr/local/lib/python3.13/site-packages/pyrisco/local/risco_socket.py", line 101, in send_result_command
command = await self.send_command(command)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pyrisco/local/risco_socket.py", line 113, in send_command
raise OperationError(f'Timeout in command: {command}')
pyrisco.common.OperationError: Timeout in command: CLOCK
2025-02-24 12:30:25.748 ERROR (MainThread) [homeassistant.components.risco] Error in Risco library
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/pyrisco/local/risco_socket.py", line 65, in _listen
cmd_id, command, crc = await self._read_command()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pyrisco/local/risco_socket.py", line 123, in _read_command
buffer = await self._reader.readuntil(END)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/streams.py", line 677, in readuntil
await self._wait_for_data('readuntil')
File "/usr/local/lib/python3.13/asyncio/streams.py", line 539, in _wait_for_data
await self._waiter
File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 1005, in _read_ready__data_received
data = self._sock.recv(self.max_size)
ConnectionResetError: [Errno 104] Connection reset by peer
2025-02-24 12:30:35.751 ERROR (MainThread) [homeassistant.components.risco] Error in Risco library
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/pyrisco/local/risco_local.py", line 208, in _listen
await self.disconnect()
File "/usr/local/lib/python3.13/site-packages/pyrisco/local/risco_local.py", line 45, in disconnect
await self._rs.disconnect()
File "/usr/local/lib/python3.13/site-packages/pyrisco/local/risco_socket.py", line 60, in disconnect
await self._close()
File "/usr/local/lib/python3.13/site-packages/pyrisco/local/risco_socket.py", line 143, in _close
await self._writer.wait_closed()
File "/usr/local/lib/python3.13/asyncio/streams.py", line 358, in wait_closed
await self._protocol._get_close_waiter(self)
File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 1005, in _read_ready__data_received
data = self._sock.recv(self.max_size)
ConnectionResetError: [Errno 104] Connection reset by peer
2025-02-24 12:30:35.777 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry 40000028000 for risco
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 849, in async_unload
result = await component.async_unload_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/risco/init.py", line 174, in async_unload_entry
await local_data.system.disconnect()
File "/usr/local/lib/python3.13/site-packages/pyrisco/local/risco_local.py", line 45, in disconnect
await self._rs.disconnect()
File "/usr/local/lib/python3.13/site-packages/pyrisco/local/risco_socket.py", line 60, in disconnect
await self._close()
File "/usr/local/lib/python3.13/site-packages/pyrisco/local/risco_socket.py", line 143, in _close
await self._writer.wait_closed()
File "/usr/local/lib/python3.13/asyncio/streams.py", line 358, in wait_closed
await self._protocol._get_close_waiter(self)
ConnectionResetError: [Errno 104] Connection reset by peer
2025-02-24 12:30:35.792 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2105, in async_reload
unload_result = await self.async_unload(entry_id, _lock=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2056, in async_unload
raise OperationNotAllowed(
...<3 lines>...
)
homeassistant.config_entries.OperationNotAllowed: The config entry '40000028000' (risco) with entry_id '06338b171d268fe126309442e736d378' cannot be unloaded because it is in the non recoverable state ConfigEntryState.FAILED_UNLOAD

Example YAML snippet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions