C5 Hub requires weekly reboot

For the last 3-4 weeks, the hub appears to freeze. Requires a reboot then everything comes back to order. I have not added any new devices, rules, or config changes. I have added a few more devices to the MAKER API.

Is there a way to narrow down why its doing this? It was working flawlessly for 2 years with maybe needing a yearly reboot. Well, hard to say as for a while updates were coming in weekly. Maybe it just needs a weekly poke and the updates were handling this for me?

Curious to see what might be happening regardless .. Thanks!!

Any Warn or Error in the Logs?

Any devices or apps taking up lots of time in the App Stats or Device Stats? (in Logs menu)

Anything in Hub Events or Location Events (also in Logs menu)

3 Likes

thank you for the reply. I will dig in.

Hub/Location Events

ZigBee network is offline.
appears quite often

Warn/Error Logs

dev:5452025-03-15 09:14:48.549 PMerrorjava.lang.NullPointerException: Cannot invoke method toInteger() on null object on line 28 (method setHumidity)
dev:5462025-03-15 09:14:48.549 PMerrorjava.lang.NullPointerException: Cannot invoke method toInteger() on null object on line 28 (method setHumidity)

I need to dig into this error

App/Device Stats Taking Time
Hunter Douglas Powerview and Maker API has above 20%

Do you have anything like the hubinfo driver to tell you how the memory and cpu usage is doing on the hub?

Have you performed a reboot with the Advanced option to rebuild database on reboot selected. I have seen this fix allot of things in the past.

1 Like

Thanks @mavrrick58 ... The additional oddity is, the hub appears happy its the Alexa and Maker API integrations that seem disconnected (need to verify this) ... Unfortunately those are the two most used pieces in the ecosystem ...

Just did a rebuild-reboot

Cpu5 Min	
1.53
Cpu Pct	
38.25
Current Hsm Mode	
null
Current Mode	
Day
Data	
[hardwareID:000D, zigbeeEui:000D6F001394B624, zigbeeChannel:0x14 (20), zigbeePanID:3DED, localSrvPortTCP:39501, localIP:192.168.2.250]
Firmware Version String	
2.4.0.151
Formatted Uptime	
0d,0h,2m,9s
Free Memory	
613840
Hardware ID	
000D
Html	
Name	Home 606 Hub
Version	C-5 / 2.4.0.151
IP Addr	192.168.2.250
Free Mem	613840 KB
CPU Load/Load%	1.53 / 38.25 %
DB Size	null
Last Restart	2025-03-16 09:03:20
Uptime	0d,0h,2m,9s
Temperature	127.4 °F
ZB Channel	0x14 (20)
ZW Radio/SDK	null / null
1 Like

The cpu load/pct values seem very high. How soon after restart did you capture that. It isn't uncommon for a hub to be pretty hot right after a restart. Give it like 20 min and then check it again. If it is still showing that high you certainly have something that isn't operating well.

The key with that value is that it is a average over 5 min. That means there are probably times in that 5 min interval it was much higher then that.

It can also take a while for memory to be consumed. So the hub needs time to run and stabilize its memory usage.

If you don't see a particlar device being pointed to in dev stats then there is likely a process getting into a rqce condition. Did anything change right before this started like new app or driver?

1 Like

That log was very soon after a reboot. Here is it after the last hour or so
Additionally, Ive now resolved the one device error log which was nodered sending an null value to a water sensor. Resolved it to not do that anymore ..

As for updates, I think the only thing I added was a zigbee on/off switch that used a generic dirver. Three might have also been a MIRROR added to a v-switch a this zigbee on/off

Will explore more .. thank you!

Cpu5 Min	
0.05
Cpu Pct	
1.25
Current Hsm Mode	
null
Current Mode	
Day
Data	
[hardwareID:000D, zigbeeEui:000D6F001394B624, zigbeeChannel:0x14 (20), zigbeePanID:3DED, localSrvPortTCP:39501, localIP:192.168.2.250]
Firmware Version String	
2.4.0.151
Formatted Uptime	
0d,2h,2m,16s
Free Memory	
486896
Hardware ID	
000D
Html	
Name	Home 606 Hub
Version	C-5 / 2.4.0.151
IP Addr	192.168.2.250
Free Mem	486896 KB
CPU Load/Load%	0.05 / 1.25 %
DB Size	null
Last Restart	2025-03-16 09:03:20
Uptime	0d,2h,2m,16s
Temperature	105.8 °F
ZB Channel	0x14 (20)
ZW Radio/SDK	null / null
1 Like

Well that cpu usage looks allot better.

Maker API does allow us to do things that can potentiall kill the hub performace. I would check periodically to see how the CPU and memory are being used.

You may want to look into setting something up so you can track/graph usage over time. There are a few ways to do that

1 Like

FWIW in the future if these recur, errors w/the Zigbee radio can be related to excessive load on the hub - the Zigbee radio can be the first thing to go, so to speak, when times get tough. :wink: So a good idea (as @mavrrick58 suggested and you have done) to look at errant devices/integrations (LAN integrations can be the worst) to see if anything is pummeling your hub.

2 Likes

Ive had setting up a log-grapher on my list for 2 years. I have some reminder that I keep setting and pushing ... guess its close to time.

Ill keep this in mind, other tips/tricks on watching for these misbehaved devices would be fantastico

2 Likes

I use grafana and influxdb logger. I have a dashboard that helps me see all of the Hubinfo collected stats like cpu, memory, db size, and temp so i can see when a app or device behave very poorly and kill my the cpu, ect.

What @mavrrick58 / @neonturbo said above is where to start:

  • Scanning your logs for error/warn messages, or lots of repeating messages in general from devices/apps
  • Scanning App and Device logs for excessive load/usage
  • Looking for radio messages
  • Start w/recently added devices/automations or changes to existing setup
  • Add the Hub Info Device v3 (in HPM) to your hub(s) and you can monitor CPU/memory use when things are getting weird

Scan node-red logs looking for high frequency writes back to the hub. Can also turn on debug logging on maker api, but that isn't as useful as it won't show you in your node-red logic what is sending it...

If things are writing too often from node-red, fix your logic or just get lazy and stick a filter block before the write configured in rate limiting mode (with drop intermediate messages configured).

I watch my loading pretty closely and still do that sometimes as 'belt + suspenders':
image
image

1 Like

Thanks @JasonJoel I Itailed my node-red logs and they look REAL boring

17 Mar 08:34:06 - [info] [hubitat device:1a72c922cd261eea] status: buffering
17 Mar 08:34:06 - [info] [hubitat device:1a72c922cd261eea] status: playing
17 Mar 08:34:07 - [info] [hubitat device:1a72c922cd261eea] status: idle
17 Mar 08:34:08 - [info] [hubitat device:1a72c922cd261eea] status: buffering
17 Mar 08:34:08 - [info] [hubitat device:1a72c922cd261eea] status: playing
17 Mar 08:34:09 - [info] [hubitat device:1a72c922cd261eea] status: idle
17 Mar 08:34:10 - [info] [e-mail:74a06db7a0f081d5] Message sent: 250 2.0.0 OK  1742218450 e9e14a558f8ab-3d47a667eb0sm27280555ab.23 - gsmtp
17 Mar 08:34:10 - [info] [e-mail:74a06db7a0f081d5] Message sent: 250 2.0.0 OK  1742218450 ca18e2360f4ac-85db8743d4esm223428139f.6 - gsmtp
17 Mar 08:46:04 - [info] [hubitat device:49c27466ab722813] temperature: 64.9
17 Mar 08:51:04 - [info] [hubitat device:b21e30ec952bdba3] temperature: 68.4
17 Mar 08:56:04 - [info] [hubitat device:b21e30ec952bdba3] temperature: 68.5
17 Mar 08:56:04 - [info] [hubitat device:49c27466ab722813] temperature: 64.8
17 Mar 09:01:04 - [info] [hubitat device:49c27466ab722813] temperature: 64.7
17 Mar 09:01:04 - [info] [hubitat device:b21e30ec952bdba3] temperature: 68.4
17 Mar 09:26:04 - [info] [hubitat device:49c27466ab722813] temperature: 64.6
17 Mar 09:36:04 - [info] [hubitat device:b21e30ec952bdba3] temperature: 68.3
17 Mar 09:46:05 - [info] [hubitat device:49c27466ab722813] temperature: 64.5
17 Mar 10:06:05 - [info] [hubitat device:b21e30ec952bdba3] temperature: 68.2
17 Mar 10:11:04 - [info] [hubitat device:b21e30ec952bdba3] temperature: 68.3
17 Mar 10:11:04 - [info] [hubitat device:49c27466ab722813] temperature: 64.4
17 Mar 10:16:04 - [info] [hubitat device:49c27466ab722813] temperature: 64.5
17 Mar 10:21:04 - [info] [hubitat device:49c27466ab722813] temperature: 64.6
17 Mar 10:26:04 - [info] [hubitat device:49c27466ab722813] temperature: 64.7
17 Mar 10:31:04 - [info] [hubitat device:49c27466ab722813] temperature: 64.8
17 Mar 10:41:04 - [info] [hubitat device:b21e30ec952bdba3] temperature: 68.4
17 Mar 10:46:04 - [info] [hubitat device:b21e30ec952bdba3] temperature: 68.3
17 Mar 11:06:04 - [info] [hubitat device:49c27466ab722813] temperature: 64.7
17 Mar 11:26:04 - [info] [hubitat device:b21e30ec952bdba3] temperature: 68.2
17 Mar 11:31:04 - [info] [hubitat device:49c27466ab722813] temperature: 64.6
17 Mar 11:31:05 - [info] [hubitat device:b21e30ec952bdba3] temperature: 68.3
17 Mar 11:36:04 - [info] [hubitat device:b21e30ec952bdba3] temperature: 68.2
17 Mar 11:46:04 - [info] [hubitat device:49c27466ab722813] temperature: 64.5
17 Mar 12:01:05 - [info] [hubitat device:49c27466ab722813] temperature: 64.4

That's good at least. :slight_smile: