I am suddenly getting hubLoad alerts and I’m trying to figure out why.
I am away from home for an extended period of time. I left on January 1st and everything was working perfectly until two days ago when many of my Webcore automations started to not run. I haven’t made any changes, nor have I taken any updates. When I look at the Device and App logs I see what’s in the attached screenshots.
Can anyone help me understand what’s happening? I’ve repeatedly remotely shut down the hub, cut the power, waited 30 minutes and then powered the hub back up again. Unfortunately, the problem keeps coming back. Any suggestions as to how to effectively troubleshoot this are appreciated.
Ah, I see. The first four are Webcore pistons that have been in place and have performed well for over a year. All of them are very simple and just turn lights on and off based on sunrise and sunset times. I'm going to delete and re-create them but I'm confused as to how simple pistons can suddenly go South when nothing has changed. I was hoping to find a way to dig deeper and find out what's specifically causing the extreme hub load but I'm not sure that's possible.
I'm updating this post in case anyone else encounters something similar. I looked that the two Webcore pistons that seemed to be causing load issues and while both were very simple pistons, they both used the Append to File call. When I removed that statement, the problem went away.
When I opened the text file to which they were writing, it appears it was corrupt and it was filled with garbage. Which would also explain why the pistons worked fine for a very long time and then stopped working properly. It's just a guess, but I suspect the pistons couldn't find the EOF marker after the file became corrupt.
Endless appending to the file could have also overrun the file storage somehow and started the issue. Unless you had another rule setup to trim the files?