-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Intermittent "connection closed"; shows in log, does not generate an error in Node-red #1225
Comments
Check Home Assistant log. Increase the log level if nothing is shown at the time of disconnect. |
Thanks for responding! I found something notable - something about "token expired": NR log:
so it died at 13:31:49 HA log:
|
The expired token is from home connect, not NR. If there was an error it would have been around Might have to increase the log level of the websocket component. edit: Looks like the Device office-mi-fan is going offline at the same time. Are you having network issues? |
nope, this device is physically disconnected (offline). but the extension seems to be constantly trying to revive it. I'll increase the websocket log-level and wait for it to die on me again, thanks! |
any updates on this? Currently struggling with the same problem ... |
Enabled websocket logging and lying in wait. So far hasn't happened again :) |
Happens every couple of minutes here but the websocket debug log is huge ... |
Browsing through my websocket debug log on HA I find these two lines which correlates with when Nodered disconnects:
|
From what I've gathered so far every 120 seconds Home Assistant peaks on CPU usage (100%) on four cores (I am temporarily running on a Pi4B due to main server being repaired). When this happens Nodered disconnects and the reconnects. I have disabled all addons and services and HA still peaks on 100% every 120 seconds. |
I am also have this issue:
|
On my end the culprit was a timed process which ate all my cpu power (as I am temporarily running on a limited rpi), which was not interruptible which lead to NR disconnecting. I found it my enabling debug logging and carefully watching what happened every 120 sec - as the process spat out huge logs (which also contributed to "locking up" HA). I removed the offending process - temporarily - and everything is back to normal. |
I also experience this every now and then, although I have an IntelNUC with HassOS, so I don't think CPU is the issue for me... |
and it's back after update to 2023.4 and node-red-contrib-home-assistant-websocket 0.63.1 maybe suggest a debugging tool that would help collect data so this can be fixed once and for all? at the very least - escalate the error so that I can restart NR! |
In my case
The NR Sentence node is not activated. Curiously the LOG for Mosquitto Broker is showing disconnections from nodered at much the same time.
|
This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Same issue |
@bogorad - would you paste your flow json for that automation? Thanks for the help on a workaround. Stinks this isn't getting a fix. |
sure. I simplified it. now there's an "automation" in HA to trigger timer every 30 seconds, and all I have to do in NR is to wait for the timer to stop "starting" for 1 min. |
Try updating to the latest release, v0.47.0, and see if it resolves the issue. |
This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Not sure that there's any evidence to prove that this is no longer an issue |
Describe the bug
Suddenly I'm getting these messages in my NR log:
Restarting HA does not help. Restarting Node-red helps, but there's no error generated in NR, so there's no way of knowing that something is wrong.
To Reproduce
No response
Expected behavior
No response
Screenshots
No response
Example Flow
No response
Environment Information
Version:
Home Assistant version: 2023.12.3
Companion version:
Node-RED version: 3.1.3
Docker: yes
Add-on: no
Node.js version:
OS:
Additional context
No response
The text was updated successfully, but these errors were encountered: