Oh no, get error when I click Hub Variables in Settings

I opened the Hub Variables page to change a variable's value. When I clicked on the value I wanted to change, I got this error. Now every time I open Hub Variables page I get the error right away without clicking on anything. Rebooting hub did not help. I am running 2.2.9.146. Any ideas?

May need to restore from a backup prior to the change.

Another thing you can try is this:

When you open Settings / Hub Variables, the URL in your browser search window will look like this:

http://192.168.0.45/installedapp/configure/25043/hubVar

Of course your IP address will be different, and the 25043 will be different. Open this page, substituting your IP and digits after configure/

http://192.168.0.45/installedapp/status/25043

At the bottom of that page click on Remove Hub Variables. Don't worry, that will not remove your Hub Variables, just the utility to view them.

Then, open Settings / Hub Variables again,. If it still blows then, send me a PM and I will have further instructions for you.

2 Likes

Thanks, that worked. So what was that all about and how do I avoid it?

Unless you know exactly what steps led to that, I don't know. But, I will take steps to prevent it in the next release. I suspect it was a messed up DateTime variable.

1 Like

Thanks again. It probably won't help, but here is what I know. I had not tried changing a hub variable for quite a while, and I had several backups during that period. Before you helped me, I kept trying backups until I found one that worked. I noticed the backup that worked still had a dashboard I had deleted before the next backup (which didn't work). I was also deleting many connector devices during this time. Who knows if this has something to do with it, I just wanted to let you know.

Deleting connectors and variables with connectors does give several log messages

but hasn't caused me any issues outside of that. Were any of the connectors still in use by rules or dashboards?

Not that I know of. I deleted the dashboard before deleting its connectors.

This morning I tried creating a connector for a boolean variable that has existed before I started this thread. I don't remember if this was one of the connector's I deleted earlier or not. As soon as I select the variable type I got this error. I Removed Hub Variables @ installedapp/status. This allowed the Hub variable interface to work again, but I keep getting this error every time I try to create the connector.

The error is telling that a connector device from the prior iteration still exists. If you go to the Devices tab, and scroll down you should find a Variable Connectors device with child devices for each connector. One of the children should correspond to the connector you are trying to create - deleting it should allow you to recreate a new one that is properly linked - it will, however, generate several warning messages in the logs (I've just ignored these and have had no issues.)

I don't know the DNI of the new connector being created.

Look for a child device with the same name as the variable you're trying to create the connector for.

There is no child device with that name, I might have deleted it several days ago. I deleted several connectors last week.

Have you rebooted the hub since then?

Yes, it does auto reboot every morning.

Might try doing a soft reset -->

  • Download a new backup from Settings | Backup and Restore
  • Navigate to http://youHubIP:8081 and select Soft Reset
  • When the UI comes back and displays the "green screen", scroll to the bottom and click on the Restore link
  • Select the backup you made in the first step

I must walk the dog, he driving me nuts. I will try it when I get back. Thanks

2 Likes

If you removed Hub Variables, you must also remove Variable Connectors from your device list. This will remove all the connectors you had as well, so you may want to consider the apps where they are used first, and perhaps put in placeholder devices until you can recreate them.

1 Like

The problem described in Post 9 still exists.

Soft Reset did not help.

All connectors in the Device list are associated with a valid existing hub variable.

Playing around this morning I noticed:
I only use connectors in dashboards. When I delete tiles referencing a connector, then delete the connector in Devices, then reboot, the Hub Variables UI still indicates the variable has a connector. Rechecking the Device list, the connector is not there as is expected.

Ill wait for the next release and revisit this later. it is not that important right now.