I have had my first hub running over a year. Something happened, and it's being very difficult to get going again. I had bought and additional two hubs awhile back, joined a second one on network all was fine till few days ago. Seems my master hub has had something really go wrong with it. I did have backups which i downloaded and installed a new out of the box hub.
Registered it, upgraded, then I upload the backup. I have my devices are back, and selected apps, unfortunately it did not backup drivers I added. That would be no problem but I am getting things like this.
When I go to the drivers tab, settings or the dashboard I get this:
Error 500
A Server error has occurred
When I go to system events I get this:
DataTables warning: table id=events-loc-table - Ajax error. For more information about this error, please see http://datatables.net/tn/7
Anybody got any suggestions, I was hoping not to have to start from scratch.
It's not clear in your narrative that you Added the ZWave Devices to the ZWave radio.
If the original Hub had a removable USB stick, and you transferred that, then all the devices should be available.
However, if the original hub was using an internal Z-Radio, then you will have to Exclude/Include ZWave devices, and re-pair Zigbee devices onto the new internal radios.
You don't exactly start from scratch.. after Inclusion, Zigbee devices automagically restore themselves into your Automations. ZWave however, need to have the Automations edited to use the new Node IDs.
Some care in the naming can ease this..
You can rename all your ZWAVE devices now.. then add them back with the old name. Then as you go through the automations, pick the old name.
Oh I forgot, and I cant get to the settings tab, or drivers tab maybe its due to a driver in the drivers code not being there but that should not give me the 500 error on say the dashboard. Guess I need to do a hard reset. Then install driver code, then maybe try database restore.
Would have been nice if the backups kept any drivers added.
If your new hub is giving you the feeling it needs a reboot, do that. If it doesn't return like you're expecting, you can Soft Reset by first saving a brand new backup to your PC.
Ok so after soft reset, I added back the driver for the temp/humidity/illuminance sensor from iharyadi I use. Restored the database. Same results. Internal server errors on pages:
Dashboards gives error 500
Devices page shows all devices, but if you click on a device you get:
deviceId was not found. java.sql.SQLException: A problem occurred while trying to acquire a cached PreparedStatement in a background thread.
The Page requested could not be found
Settings page:
Error 500
Guess I start from scratch...
Looking at past logs I see this:
2020-04-18 01:54:03.083 pm infoZigbee Discovery Stopped
You can't just restore a backup to a new hub, that doesn't bring the real devices along with it. The devices are tied to the radios in the original hub. Each device must be rejoined to the new hub. This is why you are getting these errors. The devices in the restored database are not connected to the real devices. For Zigbee, the device can be reset, and then it will join as its restored self on the new hub. For Z-Wave devices, they have to be excluded and rejoined to the new hub. They will not have the same DNI on the new hub as the original, and this can be handled carefully for non-secure devices. But, from your description, you didn't do either of these steps, and that would explain the errors you are getting.
Also, drivers are part of the database, and would be restored along with everything else. So don't know what you mean by "did not backup drivers".
Ok, maybe so. I have tried to go join a zigbee bulb which is close to me, did a reset to the bulb and started the zigbee search, it did not see it.
So since I will clear it with a factory reset. I will have to rejoin over 35 devices, and then maybe try restore to get the apps to work.
Restoring a backup completely rewrites the database. So anything you "installed" before doing a restore will be lost or overwritten. It is not possible for the backup to not have every driver that you have installed on the original hub. So if the driver is there after the steps you list, then it is in the backup.