Integrations suddenly not working

This evening, my C-7 running 2.5.1.152, did not execute it's daily evening command that has faithfully executed for several years. I realized a few other misc automations failed during the course of the day. Thus I looked at the logs to troubleshoot.

I found the log FILLED with errors and warnings. I can only go back to about 2:45 this afternoon, as Hubitat apparently hit the limit of how many log messages it will store and is purging old ones as new errors and warnings hit the logs. Thus, I can't figure out what started this.

The only thing I could think of to do is to reboot the hub from the hub settings, which seems to have solved the issue, for now. However, I would love to know what started this so I can avoid it in the future. Does anyone have any ideas?

After every log entry for a device, the logs showed either a warning or error of "Excessive Hub Load"

  • One device to monitor humidity shows repeated instances of this:

image

  • Another device to monitor humidity shows repeated instances of this:

image

Every outside connection Hubitat was trying to make was failed, as did completely local connections, such as below

The repeated “excessive hub load” messages point more toward a runaway device or driver than toward the integrations themselves, so I would start by checking which devices generate the most events and whether one humidity sensor is reporting far more often than it should. If you can, temporarily disable or pause the noisiest device and watch whether the load warnings and failed connections calm down after the next reboot. It would also help to note the exact driver and any recent device or firmware change, since that pattern often narrows the culprit much faster than rebooting alone.

What exactly are those three devices in your log screenshots, and what driver(s) are they using?

That's the hub's "excessive hub load" throttle. Several unrelated devices tripping together points away from one bad device.

It matches this thread, where a reboot also cleared it, reports came after long uptime, and there was no real load: Suddenly every device generates excessive hub load

How long had the hub been up before you rebooted? Open http://<hub-ip>/hub/eventsJson and look at the date on the last two systemStart entries.

Those are just examples. Almost every single device generated those types of log entries when it did any sort of update on temp, humidity, open/close status, battery level, lux level, etc.

Thanks. Seems to provide the exact same info as Logs/Hub Events. Both show just 6 entries. From newest to oldest:

  • Last nights "System Start" and "Manual Reboot"
  • The last 4 "Cloud Backup" entries from 10/26, 10/19, 10/12 and 10/5

So based on the above I deduce the hub had been up at least 25 days before I rebooted. However, that is not unusual. Typically it would only reboot when I update. Apparently the last time I updated was prior to 10/5/26. Is there some other way to figure out exactly when I last updated?

For future reference, is there some setting that will allow more than 25 days or 6 entries on the above log?

YES!!! I just read that entire thread, and it matches EXACTLY! As other posters noted, there was no warning of excessive hub load except in the logs. I know this because when I was troubleshooting, the upper right corner red circle on the bell has a "1" in it, and when I clicked, the only alert was that a platform update was available. I've had it give excessive hub load about twice in the past when I wrote an automation that messed things up...there was NO excessive hub load notification last night.

Per the suggestions in the thread, I will reboot again, and this time select "Rebuild Database" (I'll do a manual backup first).

Also per the thread, looks like I should install "Hub Info Driver" and the "Hub Monitor" app. I'll look for those. I read the below explanation from @GuyMan but I need a more granular step by step to set this up. Searching did not yield such. Is there a link to a step by step or can someone help me set this up?

So I have a rule, that sets a "reboot needed" hub variable boolean, when the free mem drops below 180 K - The reboot doesn't occur, at that time, as that may be the middle of the day, or I'm using the hub, etc. - But I have a rule that runs at 3:35 AM (avoiding a bunch of built in hub cleanup that happens around 1 or 2 AM), if the "reboot needed" flag is set, this rule triggers the "reboot command" (also supplied by the HubInfo driver). And if the hub reboots, for any reason, the "reboot needed" flag is cleared, and a "reboot occured" flag is set. - Then at 8AM, an alert is sent to my phone, if anything was rebooted during the night.

ETA: In the above referenced thread, @GuyMan states:

So my approach, is that I monitor the free memory as part of the HubInfo V3 driver/device (I think I have it polling every 10 mins or so). I think the hub can actually still run in the low 100K memory range, and after a reboot it's around 400K, after running a few hours, it works it's way into the high 300K range, then it's a slow/gradual, but continual drop. And for me, under 100K bad things start to happen.

I have a Watchtower chart that shows "RAM MB Free" over time.

  • When this issue occured, there was 87-89 MB free. Looks like it first dropped below 90 on 10/24, and then hovered up and down from there, but with a continual decline.
  • If the peaks after a valley indicate hub resets, looks like I last reset the hub on 8/16 where free memory went from 198 to 352. It dropped to 328 by the next day then continues a gradual decline.
  • There is a steep drop from 194 to 131 on 9/21. On 9/20 I connected my first Matter device, a plug strip with 5 child devices. I had to make numerous attempts to get it paired but it finally worked. However, I don't think it is the device itself using memory, as I unplugged it on 10/6, and the Hubitat free memory did not increase; it has continued to decline.
  • ETA 2: When I restarted after the database rebuild today, I had about 450 MB free. Then I updated to the latest firmware, 2.5.2.139. It's now showing I have 773 MB free - I have not had that much in the last years!! Maybe the firmware update fixes a big issue??

* Does Matter use more free memory than other protocols?
* Does trying to pair a device and having numerous failures use up free memory that is never recouped even if the device is no longer connected to the hub?

Thought I would post the graphic. RAM MB free is the gold:
A = the days leading up to and including the deluge of errors / warnings & hub overloaded.
B = the first reset after the deluge
C = the 2nd reset after the deluge that included a rebuild database
D = the 3rd reset after the deluge that was to update to the newest firmware. RAM MB free is now around 800. From the long term chart below you can see that over the last 2 years it peaked at barely over 450.

And since the above is only the last 4 days, here is the last 2 years:

From your Watchtower chart it looks like the last reboot before the LimitExceededException flood was on 8/16, so the hub had been up about 75 days when the errors started. That's a pretty good run!

AFAIK the LimitExceededException throttle doesn't measure current load. It trips when a device's total run time since boot goes over 33 % of the hub's uptime. After 75 days, a humidity sensor would need about 25 days of processor time to reach that, and here dozens of devices reached it on the same afternoon. That points to the hub's own count going wrong, not to your devices.

@gopher.ny is there an explanation for this or could there be an uptime accounting bug that only manifests over long run times?

I believe so.

You can edit the default settings for any device in the “device info” tab for that device. Look for the “event history size” and “state history size” entries. Set the numbers higher than they currently are.

And in the hub live logs page, there is a gear icon in the upper right that you can set to keep a greater number of events in the log.

Didn't even know that was there. Thanks!

I think the OP was asking about the hub events, though, and I think those roll off after a month. It's the same with device event history. There's an endpoint /hub/advanced/maxEventAgeDays but idk if it only affects device event history or also location and hub events.

Correct.

So no way to set it for more? This seems unfortunate...

The uptime accounting bug fix is coming for 2.5.3.