kpsuperplane / homebridge-wiz-lan

Control Wiz lights over LAN
Apache License 2.0
116 stars 37 forks source link

Plugin stopping Hoobs Homebridge from restarting #59

Closed Lazybeez closed 2 years ago

Lazybeez commented 3 years ago

Found wiz plugin stopping Homebridge from automatically restarting. This forces users to manually unplug the home bridge and could potentially result in SD card failure if system is hosted on SD card

Haven't yet investigated into the details. Will update later if more details found. Thanks

5/29/2021, 5:19:36 PM Got SIGINT, shutting down Bridge...
5/29/2021, 5:19:37 PM Error [ERR_SOCKET_DGRAM_NOT_RUNNING]: Not running
    at healthCheck (dgram.js:897:11)
    at Socket.close (dgram.js:719:3)
    at HomebridgeAPI.<anonymous> (/home/hoobs/.hoobs/node_modules/homebridge-wiz-lan/src/util/network.ts:141:12)
    at HomebridgeAPI.emit (events.js:315:20)
    at process.<anonymous> (/usr/local/lib/node_modules/@hoobs/hoobs/bridge/cli.js:77:28)
    at process.emit (events.js:315:20)
    at process.emit (/usr/local/lib/node_modules/@hoobs/hoobs/node_modules/source-map-support/source-map-support.js:495:21)
Lazybeez commented 3 years ago

Just looked at the code. it looks like when calling socket.close() at src/util/network.ts line 141 it shuts down connections and prevent Hoobs wrapper from receiving any feedbacks thus having this core service down but wrapper still running situation

eshventures commented 3 years ago

Same problem, I noticed ever since the new update. I have narrow it down to this plug-in causing all the trouble. I actually had to replace my SD card so your theory makes sense.

Archie-88 commented 3 years ago

Getting the same issue... Any ideas on a solution or workaround?

eshventures commented 3 years ago

Curious if there any updates or workarounds?

kpsuperplane commented 2 years ago

I think this was resolved in an update, please open a new issue if it's still happening

Archie-88 commented 2 years ago

I ended up just flashing my raspberry pi for homebridge, which is working perfectly.

Thank you very much! Your plug-in is the reason I got into homebridge :)

Iain

On 17 Nov 2021, at 10:08, Kevin Pei @.***> wrote:



I think this was resolved in an update, please open a new issue if it's still happening

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/kpsuperplane/homebridge-wiz-lan/issues/59#issuecomment-970790164, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUPUOWF3WWWMOAQBEJCMJBDUMLP5JANCNFSM45YZMH7A. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.