NorthernMan54 / homebridge-alexa

Expose your homebridge controlled devices to Amazon Alexa.
https://www.homebridge.ca
442 stars 77 forks source link

All devices offline after upgrade to 0.5.53 #488

Closed aski71 closed 2 years ago

aski71 commented 2 years ago

Hi, I just upgraded to 0.5.53. Now all my devices are offline in Alexa. hombridge.ca shows this:

Bildschirmfoto 2022-01-01 um 13 19 42

Thanks for help.

NorthernMan54 commented 2 years ago

Anything in the logs ?

I'm thinking you may have tripped the DDOS protection on the cloud servers. Stop homebridge for 5 minutes, then try again.

aski71 commented 2 years ago

Stopping and starting worked. How do I prevent this from happening again? It seems to have come in with 0.5.53. Everything worked fine before I updated.

I don't see anything additional in the logs.

NorthernMan54 commented 2 years ago

The DDOS protection on the cloud servers will start blocking an IP address if it sees too many new connections in a short period of time. Stopping homebridge for a few minutes allows the DDOS to reset. I'm thinking that during the update process you stopped and started homebridge a couple of time pretty quickly and that triggered it.

DDOS has been on the cloud servers for almost a year, so if you have been running for a while you might not have been tripped up by it.

aski71 commented 2 years ago

Ok, interesting. Thanks.

Before I opened the ticket I did the following: Restarted everything and it worked again. Then went out for a few hours and when I came back I had the same status as above again. Then I stopped homenbridge again for about an hour or so and restarted it.

Since then it seems to be stable. I'll observe.

NorthernMan54 commented 2 years ago

Tks

aski71 commented 2 years ago

I'm experiencing the same symptom again this morning (see screenshot above). No reboots or anything in the meantime. Just normal operation. Now 5 is red again. As I said this is since I upgraded to 0.5.53. Before that no issue whatsoever.

NorthernMan54 commented 2 years ago

Did you see this issue and the workaround 'keep alive' setting that is available with the current beta release ?

https://github.com/NorthernMan54/homebridge-alexa/issues/479

aski71 commented 2 years ago

Thanks, looked at it but am confused what to do now.

It talks about some sort of whitelisting, but I have no clue what to whitelist where. And it talks about adjusting a keep alive time, but again not where this setting can be tweaked and I can't find it.

Can you provide some more insight what needs to be adjusted where?

Thanks.

NorthernMan54 commented 2 years ago

If you install the beta version, it exposes a new tuning option called keep alive. You can try adjusting that to 10 or lower to see if resolves the issue

aski71 commented 2 years ago

How do I do this? Installing the beta?

aski71 commented 2 years ago

Can you point me in the right direction, please? Same issue this morning again. :-(

NorthernMan54 commented 2 years ago

I went and merged the beta release into production this AM, so version 0.5.55 includes the feature "Cloud Server Connection Keepalive", try setting it to 10 minutes or lower.

aski71 commented 2 years ago

Ok, thanks. I updated and set it to 10 minutes. Will observe.

aski71 commented 2 years ago

Looking good with 10 minutes. No more outage for the last 24 hours.

NorthernMan54 commented 2 years ago

Fingers crossed