-
Notifications
You must be signed in to change notification settings - Fork 123
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
non-robust handling of HA server disconnection #26
Comments
not sure it will help you, but the wakeword service was not started for me, after issuing this command, it worked. As the wakeword service is now started before the satellite
|
henne48: When my HA server updates itself and reboots the connection to my rp4 wyoming-satellite is broken and never reconnects. Both the wyoming-satellite and wyoming-openwakeword services are still running. I have to manually restart them to regain the connection to HA. So your suggestion doesn't apply in this case. A more robust solution would be code added to reconnect to HA if the connection is lost. |
Fully agreed, but I simply restart the raspi to fix in the meantime, but that did not work, as the openwakeword was not starting properly after a reboot. |
Hmm, rebooting my wyoming-satellite rpi 4 works for me...
On Jan 2, 2024 8:08 AM, henne49 ***@***.***> wrote:
Fully agreed, but I simply restart the raspi to fix in the meantime, but that did not work, as the openwakeword was not starting properly after a reboot.
|
I just update my installation to 1.1.1 wyoming 1.5.2 and I'm still seeing wyoming-satellite failing to reconnect after the HA server reboots (automatically upon software updates). Here's the wyoming-satellite log:
|
As a workaround you can create an automation in HA to remotely restart services on your satellite right after HA updates. |
[Rafaille]
That sounds like a good idea, but I'm not sure how to remotely restart a service from within a HA 'start' automation. Update: added
and i then called shell_command.restart-satellite from a HA startup automation. It doesn't work yet because of passwords and other security issues, but I think this is the right approach. |
No Lucking in getting the restart wyoming-satellite service automation upon HA start-up to work as suggested by [Rafaille]. I created key pairs for ssh. It works fine in a HA terminal, but gives "Host key verification failed." when run from the automation (or service call). |
You are indeed on the right track, I had the same issue.
Just replace the x with your config and make sure that the user you login as has sudo privileges |
Adding -o StrictHostKeyChecking=no is usually considered to be a bad approach, but I tried it and along with explicitly specifying the key "-i /config/.ssh/id_rsa" it works. (I had to move id_rsa from under /root to /config) Since I created rsa key pairs I tired it again without '-o StrictHostKeyChecking=no' and that works too! I guess the problem was that automation runs under a different user than root while the terminal is root? anyway, thanks for you help. |
Yes sorry I forgot to mention that I had to move the key file. Good point about StrictHostKeyChecking not being necessary, I will take it out my command as well, just for good measure. |
In my case, I tried the remote restart of the service, but sadly, it does not help. Same error than @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.:
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)
The text was updated successfully, but these errors were encountered: