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
[BUG] Socket closes and can't be reopened, which results in a sigint for homebridge #341
Comments
Hi, are you sure your harmony hub has got a fixed IP on your router / dhcp server ? |
Yes I just checked, its fixed to .75, when I restart the homebridge process it instantly works again too. netstat -a also shows a working connection to harmony hub, if that's relevant. |
Another question : are you on Hoobs or Classic Homebridge ? Other users that reported this issue, it was network related, on dhcp renewal. |
Because I had to google what Hoobs is, I guess im on classic homebridge. :) |
It should not, but it depends if it is a prefered ip or reserved one I think. What dhcp are you using ? Like I said, the problem is network related, and the fact that it happens every 24 hours or so is likely to be linked. Di you try putting your hub offline and online again and see if it is doing the same ? I am also interested into your exact conf (node version, homebridge version, npm dependency list ...) |
My router(FRITZ!Box 7590) is acting as the DHCP. There is a checkmark "Always assign the same IPv4 address to this network device." which is activated, so that should be reserved, not preferred I think. Im not in the house where this problem is happening, but I'll ask someone to try this behaviour with me by shutting the hub off and turning it back on. Node Version: 14.15.4 What do you mean by npm dependency list? npm ls -g? That outputs: |
I've just checked, pulling the plug, leaving it out for 30 sec and putting it back on will result in: [Harmony Hub] (Harmony Hub)WARNING - socket closed But it doesn't crash the bridge and no further errors/warnings. |
Hi, Did you try to refresh home app while it was plugged off ? |
We had home app active while it was plugged off. It showed "reagiert nicht" for harmony hub, saying it doesnt react, and after a few seconds it responded again. |
Could you please post the full log when the crash is happening (if possible with homebridge running in DEBUG mode). The log in my plugin is in a catch, so it must crash somewhere else |
Ok, I will setup homebridge in debug mode and turn harmony-hub back on(turned off for usability reasons, didnt want crashes every other day). |
ok, thx |
I hope this question is not too stupid, but I just started homebridge with: Now it doesnt write to the log anymore. Could you point me in the right direction here? |
Even without DEBUG=* it doesnt write to the log file at /var/log/homebridge.log anymore |
Sorry, I d'ont understand, the fact that ther is no more log is not plugin related. I have done some test, can reproduce the socket close when i turn off my hub, but as soon as it goes back online it is ok, and homebridge does not crash meanwhile ... |
Okay, thanks anyways. I will find out why there is no log written when started with debug by myself then! :) |
If you are using config ui, you can use it to enable the debug mode . If you don't manage to have the debug log, I am still interested into the whole log with time stamps before and after the error |
I actually just found out about that. Works now. I'll get back as soon as I have new information! |
I just encountered weird behaviour with the harmony hub. Seems your plugin isn't the cause of this. We'll be sending in the harmony hub and getting a new one, I hope that fixes our problems. |
Hi, ok thanks for feedback. Did you enable xmpp on the hub ? It is not necessary so maybe disabling it would improve . |
(Harmony Hub)WARNING - socket closed is
the first thing that comes up followed by
(Harmony Hub)ERROR (1)- refreshCurrentActivity TimeoutError: Can't open WebSocket within allowed timeout: 10000 ms. - Stack : TimeoutError: Can't open WebSocket within allowed timeout: 10000 ms.
at PromiseController._handleTimeout (/usr/local/lib/node_modules/homebridge-harmony/node_modules/promise-controller/src/index.js:172:19)
at Timeout. (/usr/local/lib/node_modules/homebridge-harmony/node_modules/promise-controller/src/index.js:178:43)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[14/02/2021, 04:37:24] Got SIGTERM, shutting down Homebridge...
I can't find out what is triggering the socket to close, maybe you can point me somewhere?
As I haven't found the trigger for this idk how it could be reproduced.
My harmony config looks like this:
"name": "Harmony Hub", "hubIP": "192.168.1.75", "TVAccessory": true, "mainActivity": "TV", "platform": "HarmonyHubWebSocket"
The text was updated successfully, but these errors were encountered: