I have a C7 hub with a simple setup, around 30 devices (between zwave and zigbee) and
only a few automations which are are all pico remotes handling scenes with the exception of one turning lights on and off based on sunset/sunrise.
It was working fine until this morning when it started giving me error 500 on every page.
I couldn't do anything so I unplugged the power, waited a few secinds and plugged it back.
Now it is opening as a brand new hub, straight to the getting started page.
It does have an option to restore from backup and when I click on it the last automated backup is from this morning.
Should I restore one of these backups?
And... what could cause this?
The thought of going through this again as my setup grows is scary. A device shouldn't "hard reset" itself like this.
I went ahead and restored a backup (figured that was my only move).
When I looked at the logs it is getting flooded with this error (tons of it):
dev:3272021-07-09 11:38:24.357 am errorjava.lang.RuntimeException: java.sql.SQLException: A problem occurred while trying to acquire a cached PreparedStatement in a background thread. Query: UPDATE DEVICE D SET D.STATE = ? WHERE D.ID = ? Parameters: [{"reportedHumidity":51,"wakeUpInterval":43200,"configVal2":10,"configVal3":10,"configVal4":10,"configVal5":15,"configVal6":3,"configVal7":4,"reportedTemp":"76.12","pendingRefresh":false}, 327] (parse)
Sounds like something corrupted your database. Is your hub on a UPS? It should be. Do you have a backup downloaded to your computer? That’s a good idea going forward.
Regardless, here is what I would suggest:
Download a backup. This is just in case things go badly. Even if you restore that downloaded backup, the process of downloading and restoring a backup cleans up the database, discarding bad records.
Do a Soft Reset from the Diagnostic Tool at port 8081 of your hub’s IP (e.g., https://your_hub_IP:8081 ). You will need the hub’s MAC address to log in. It’s found on the sticker on the underside of your hub, but the easier way to get it is to copy it from Settings, Hub Details. The Soft Reset procedure is found here: Hubitat Diagnostic Tool - Hubitat Documentation
When the hub boots after the Soft Reset to the Getting Started page, click on the small link at the bottom to restore from backup, and restore an earlier backup than the one from this morning.
Let us know if that gets you going.
Edit: well, looks like @thebearmay was typing while I was, and we suggested the same thing. I am just more verbose and type slower than he does.
I did that yesterday and everything was fine until now when I noticed the z-wave radio is not responding. I press the button on the switches and noting shows up in the logs. I press the on and off buttons in the device pages and nothing happens. When I press on a pico remote a see everything showing up on the logs but nothing actually happens as if the radio is turned off.
Could this be related? As for the hub be connected to an UPS yes so power outage is definitelly not the cause here.
I wouldn’t do that. First, try rebooting (not resetting) the Z-Wave Radio. Only known way to do this is:
Shut hub down cleanly to red light (settings, shutdown).
Power off the hub at the mains plug, not the micro USB plug into the hub, whose solder joints to the PC board are fragile and can break.
Leave power off for 30 seconds, then apply power again, let hub boot. See if you can turn the Z-Wave radio on: (Settings, Z-Wave Details): Z-Wave Status drop-down should say enabled. If not, change to enabled.
That's correct.
Z-Wave radio was working as expected after I restored the backup.
I did test a few buttons and automations and since my family room light can only be turned on through automations, the kid and wife will let me know as soon as it stop working
It became unresposive this evening.
On the other hand, zigbee radio and devices (including related automations) are working 100%. Definitelly something with the radio.
I don't think the hub is overheating.
It is ambient temperature - at least to the touch.
But I will go ahead and install the suggested driver.
And I'm not sure if this is relevant since we are talking zwave:
Interesting thing:
I can see in the logs when my Inovelli switches (zwave 500) report power consumption.
But it doesn't show up on the logs if I turn the lights on or off through the switches (all of them).
I have a single zwave 700 switch from zoo and that one shows up in the logs when I phisically turn it on and off.
Unless you have a Z-Wave sniffer or Z-Wave Toolbox device to watch Z-Wave traffic, it’s a process of elimination. Does actuation of any particular device correlate with when everything stopped working?
And... it just started to work again. Just like magic. I didn't change anything.
I will get some rest now and try your other suggestions tomorrow to see if I can figure out what is going on because chances are it is going to happen again.
I will report back tomorrow. I appreciate your help and you all have a good night,