-
Notifications
You must be signed in to change notification settings - Fork 4
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] Problem using Plugwise USB Stick: Rpi hangs due to running out of memory #10
Comments
Do you use SD-cards as the storage-medium on these Pi's? |
Thanks for the reply. Both use same brand Sandisk USB sticks to run on. One has 32GB and is just now reporting 20GB free, the other one runs on 16GB and reports 5,7GB free. |
Ok, so you're saying, that should not be the cause of your problem? Next question: is there any operation-system log that you can check for clues? Like the journal-log? Also, what is crashing? The Pi operating system or HA? If HA is crashing, is the operating system still running? |
It doesn't look like the USB sticks should be a problem I think? I've been looking at the different available logs but honestly don't know what to search for. I do see some errors from the plugwise addon but not sure what is okay noise and what is an actual problem. On one of the installs I see this reoccuring:
On the other install I see many of these too:
When they have "crashed" and I ping I seem to get replies and port 22 and 8123 are also open according to my port scanner, but trying with ssh or web browser there is nothing coming back from either. |
The messages you show are indeed okay noise :) I see many of them too in my system. Ok, so your Pi OS crashes? With which method have you installed HA on your Pi? Also, have you searched for "Pi crashes" or similar in https://community.home-assistant.io/? |
I also found two of these watchdog and timeout events but only on one of the Pis, not the other one 2022-11-02 14:15:28.055 ERROR (receive_timeout_thread) [root] Uncaught thread exception 2022-11-02 14:15:46.436 WARNING (watchdog_thread) [plugwise.controller] Unexpected halt of receive thread, restart thread But it continued to run at these two occasions though, no crash
|
Sort of half crashes I guess since it still has the ports open but they are sort of dead anyway.
Used the downloadable image for the Pi and made the USB sticks with it
Ah, will do! |
Very similar to you case? https://community.home-assistant.io/t/unexpected-crashes-how-to-find-the-cause/361822 |
Ok, worth a try to add a fan. Will give it a go :-) |
There is clearly a memory-leak. You can disable the plugwise (Stick) integration and then monitor your system again. I must say, I use the Stick integration myself, next to an Adam and P1 integration, I never have any problems with the memory getting full or similar. |
So far no memory peaks like that after disabling. But I'll let it run a couple of days more. |
Interesting, it's way more responsive and fast in the web interface also. It's a Rpi4 . |
Sorry to say but HA runs flawlessly with Plugwise beta disabled. Something with using an USB stick instead of the other options I guess then 😟 Or could it be something with old data stats still in the circles? They have all been reset though. |
@brefra any idea about the above data & conclusion? |
What can I do to help pinpoint the issue? |
Hi, There is a memory leak.. but where, if i enable the plugwise integration, my systemen (i5 NUC ESXi with 8 GB memory assigned) if full in 1 to 2 days. See the graph with Plugwise enabled and disabled. My system:
Please let me know how to help debugging! |
@MagnusThome can you please try with release 0.31.1b1? |
Sorry can't, I've sold off all Plugwise gear. |
@MagnusThome ok I understand. |
Describe the bug.
Plugwise might be totally innocent but here's my scenario:
Two fully separate HA installations in different houses. Both are Rpi4 with new original Rpi OEM PSUs. Both with Plugwise USB Stick plugged in. Both regularly crash and need power cycling to get back up again.
In addition to the Plugwise Beta plus Sticks both also have Tasmota installed. Other than that they have a few things installed but not the same on both.
Just curious if the Stick can be part of the problem if anyone else have had issues? And if so if Plugwise beta is something to dig out logs from and so on.
What version of Home Assistant Core has the issue?
All (both Rpis set up from scratch this spring)
What was the last working version of Home Assistant Core?
None
What type of installation are you running?
Home Assistant OS
How did you install plugwise-beta?
HACS
What kind of Plugwise device is having issues?
USB: Stick
What firmware version is your Plugwise product at?
Circles are firmware: 2015-09-18 10:53:15
Logging
No response
Diagnostics information
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: