Skip to content

non-robust handling of HA server disconnection #26

Open
@KeithSBB

Description

@KeithSBB

My HA server occasional performs automatic software updates in the early morning and then reboots. this breaks the connection to wyoming-satellite which then goes nuts producing many errors in its log files.:

run
8:30 AM
await writer.drain()
run
8:30 AM
File "/home/mycroft/wyoming-satellite/.venv/lib/python3.9/site-packages/wyoming/event.py", line 129, in async_write_event
run
8:30 AM
await async_write_event(event, self._writer)
run
8:30 AM
File "/home/mycroft/wyoming-satellite/wyoming_satellite/satellite.py", line 128, in event_to_server
run
8:30 AM
Traceback (most recent call last):
run
8:30 AM
ERROR:root:Unexpected error sending event to server
...

Sometimes it reconnects, other times it just hangs and I have to restart wyoming-satellite manually.

I'm running both wyoming-openwakeword and wyoming-satellite as services on a RP4. I also noticed that when wyoming-satellite hangs due to the server disconnecting I can't simply restart it. I must shutdown wyoming-openwakeword first (which forces a shutdown or wyoming-satellite) and then start wyoming-satellite (which will start up wyoming-openwakeword)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions