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

Homebridge hangs and stops responding #257

Open
yffud opened this issue May 16, 2024 · 4 comments
Open

Homebridge hangs and stops responding #257

yffud opened this issue May 16, 2024 · 4 comments

Comments

@yffud
Copy link

yffud commented May 16, 2024

this.log.error(`Could not load devices from Smartthings: ${reason}. Check your configuration`);

If the code gets to this catch error it hangs the code and Homebridge until Homebridge is restarted.

Could there be a retry or continue logic here?

--
Issue logged with Homebridge homebridge/homebridge#3615

Homebridge will stop responding to inputs from HomeKit until it is rebooted.

The last log messages before hanging will be something similar from the Smartthings Plugin

[5/14/2024, 4:33:14 AM] [Smartthings Plug (IK)] Error getting devices from Smartthings: Error: getaddrinfo EAI_AGAIN api.smartthings.com
[5/14/2024, 4:33:14 AM] [Smartthings Plug (IK)] Could not load devices from Smartthings: undefined. Check your configuration

No more long messages after than until rebooted

@spiazza1
Copy link

Was this issue addressed? It is still affecting v1.5.21.

@yffud
Copy link
Author

yffud commented Jul 15, 2024

I don’t believe so . I asked ChatGPT to help me write some really hackey retry code to wrap around it to kludge a temporary fix

@spiazza1
Copy link

I'm going to give this plugin a shot: Restart Plugin
Using the value @daily in order to restart the service once a day.

@yffud
Copy link
Author

yffud commented Jul 15, 2024

I'm going to give this plugin a shot: Restart Plugin Using the value @daily in order to restart the service once a day.

Good idea , my first hack was a daily restart of the service by crontab , but sometimes the service was left hung for a few hours then when I needed it

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

2 participants