Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection reset by peer error #1

Open
sfmcfar1960 opened this issue Jan 23, 2019 · 7 comments
Open

Connection reset by peer error #1

sfmcfar1960 opened this issue Jan 23, 2019 · 7 comments

Comments

@sfmcfar1960
Copy link

sfmcfar1960 commented Jan 23, 2019

HI, just started working with the Russound RIO module and I have a problem. Approximately once a day I get the following error from HASS:

2019-01-23 01:17:19 ERROR (MainThread) [russound] Unhandled exception in IO loop
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/russound_rio/rio.py", line 171, in _ioloop
response = net_future.result()
File "/usr/lib/python3.6/asyncio/streams.py", line 488, in readline
line = yield from self.readuntil(sep)
File "/usr/lib/python3.6/asyncio/streams.py", line 581, in readuntil
yield from self._wait_for_data('readuntil')
File "/usr/lib/python3.6/asyncio/streams.py", line 464, in _wait_for_data
yield from self._waiter
File "/usr/lib/python3.6/asyncio/selector_events.py", line 725, in _read_ready
data = self._sock.recv(self.max_size)
ConnectionResetError: [Errno 104] Connection reset by peer

which causes the HASS front ends to stop communicating with my MCA-C6. The only way to fix it so far is to reboot HASS. Any suggestions?

Thanks

Stan McFarland

@shinyshoes16
Copy link

I'm getting a similar error. Any comments @wickerwaka ? Here is my log file entry:

Logger: russound
Source: /usr/local/lib/python3.7/site-packages/russound_rio/rio.py:209
First occurred: June 28, 2020, 10:45:28 AM (1 occurrences)
Last logged: June 28, 2020, 10:45:28 AM

Unhandled exception in IO loop
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/russound_rio/rio.py", line 172, in _ioloop
response = net_future.result()
File "/usr/local/lib/python3.7/asyncio/streams.py", line 496, in readline
line = await self.readuntil(sep)
File "/usr/local/lib/python3.7/asyncio/streams.py", line 588, in readuntil
await self._wait_for_data('readuntil')
File "/usr/local/lib/python3.7/asyncio/streams.py", line 473, in _wait_for_data
await self._waiter
File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 814, in _read_ready__data_received
data = self._sock.recv(self.max_size)
ConnectionResetError: [Errno 104] Connection reset by peer

@sfmcfar1960
Copy link
Author

sfmcfar1960 commented Jun 29, 2020 via email

@shinyshoes16
Copy link

Thanks Stan, I've implemented that hack this morning and so far so good. This issue still needs to be resolved however as it is ridiculous that we need to rely on automations to keep the connection alive. Thanks for your help.

@wickerwaka
Copy link
Owner

The only thing I found that worked was to create an automation that pinged the Russound every hour. Otherwise the connection times out. Stan

I'm not seeing this issue with my MCA-88X. @sfmcfar1960 what are you doing to ping it? Just making a service call?

@sfmcfar1960
Copy link
Author

sfmcfar1960 commented Sep 14, 2020 via email

@joshlawless
Copy link

Those of you who set up an automation to keep your Russound alive - what "action" did you use? looking through the service calls available, I don't see anything that would query volume, only those that set volume (which I worry would turn on a zone unexpectedly)

@Snowcola
Copy link

I have a pretty similar issue, though using an automation to set the volume doesn't seem to keep the connection alive.

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/russound_rio/rio.py", line 193, in _ioloop
yield from writer.drain()
File "/usr/local/lib/python3.9/asyncio/streams.py", line 387, in drain
await self._protocol._drain_helper()
File "/usr/local/lib/python3.9/asyncio/streams.py", line 190, in _drain_helper
raise ConnectionResetError('Connection lost')
ConnectionResetError: Connection lost

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants