-
-
Notifications
You must be signed in to change notification settings - Fork 20
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 Crashs and shutdown #66
Comments
Could you attach the full log file, or at least show the lines before the ECONNRESET? homebridge-zp installs a handler for otherwise uncaught exceptions, that would cause NodeJS to crash. Instead it issues a controlled shutdown, so the subscriptions to the Sonos speakers can be cancelled before terminating. |
Enclosed an excerpt from a log file with more content. Mar 27 08:22:19 HomeKit homebridge[6832]: [2019-3-27 08:22:19] Homebridge is running on port 51826. |
In addition to my last comment, a note, the Homebridge usually runs about a day before it crashes. Unfortunately, I do not have a logfile anymore because I deactivated the plugin because of the error. But I would love to use it again, so I contacted you about Github. Is it possible to deactivate the controlled shutdown for testing? |
That's probably with the same ECONNRESET error. The one-line stack trace seems to indicate the error originates in NodeJS itself. Looks like nodejs/node#27065 and nodejs/node#23169.
There's no setting for that, you'll have to uncomment the setup of the handler. homebridge-zp/lib/ZpPlatform.js Lines 165 to 170 in 5614cb7
Note that as of v0.4.48, homebridge itself handles the uncaught exceptions (see homebridge/homebridge#2190). I'll be removing this function from homebridge-zp in the next release, later this weekend. |
Thanks for the answer, I'm waiting for the update and will test the plugin again. Maybe I'll be lucky and it will work again. Thanks for the plugin, it's really great. |
The Homebridge is now running stable for 2 days and hopefully it stays that way. Thank you for the quick help and the update. |
Hello,
Unfortunately, I have a problem with the plugin. Basically, the plugin works fine, but after about a day, Homebridge is shutdown, an excerpt from the log file I have attached. I currently use Homebridge 0.4.47, Node JS 11.60 and NPM 6.9.0 on a RaspberryPi 2 B and Stretch, all other plugins are working fine. Is there a solution, I would like to use the plugin.
Log:
Error: read ECONNRESET
Apr 04 11:29:33 HomeKit homebridge[16732]: at TCP.onStreamRead (internal/stream_base_commons.js:162:27)
Apr 04 11:29:33 HomeKit homebridge[16732]: [2019-4-4 11:29:33] Got SIGTERM, shutting down Homebridge...
Apr 04 11:29:33 HomeKit homebridge[16732]: [2019-4-4 11:29:33] [ZP] cleaning up...
Apr 04 11:29:33 HomeKit homebridge[16732]: [2019-4-4 11:29:33] [Logitech] INFO - shutdown
Apr 04 11:29:33 HomeKit homebridge[16732]: [2019-4-4 11:29:33] [HomeMatic] Removing Event Server for Interface BidCos-RF.
Apr 04 11:29:33 HomeKit homebridge[16732]: [2019-4-4 11:29:33] [HomeMatic] Removing Event Server for Interface HmIP-RF.
Apr 04 11:29:33 HomeKit homebridge[16732]: [2019-4-4 11:29:33] [ZP] exit
The text was updated successfully, but these errors were encountered: