SQL error

Hi,

After adding a new variable in Settings --> Hub Variable, I now got the following error message when trying to access that page.

Anybody had this problem before? Is it fixable without using a old database backup?


Platform version: 2.3.7.145

Hardware version: C-7

Make a new database backup and restore that. :smiley:

The process of exporting then importing a DB, "empties the trash" that might have accumulated.

1 Like

Nice try.... but still same result.

Here what I did

  1. Settings--> Backup and Restore

  2. Then used "Create and download new local backup" to download a file called "Hubitat-01_2024-01-19~2.3.7.145~manual.lzf" on my computer

  3. Then used "Upload local backup and restore to hub" with the file created at step 2,

  4. Unit rebooted by itself after the restore operation completed. No error reported while importing the database backup.

In the Logs, that error should exist and reference the device/app that generated it.

Then, disable that app for as long as it takes to assure yourself that it's just the one Rule/App.

That column is usually hidden, but you can change that. Upper Right of the page is a gear icon, click it and get:

Screenshot 2024-01-19 at 12.03.40 PM

Turn that Show App disable box

Unfortunately, the problem is still there.

Here what I have in Logs when I click on "Settings -->Hub Variables"

Then, I disabled everything

Screen capture 1 of 2

Screen capture 2 of 2

And just to be clear, I still have the same error after I disabled all the Apps.

Screenshot 2024-01-19 at 12.29.08 PM

You aren't naming your variable according to that...
It's wanting to add to the DB using two parameters, one is a null, the other is 'gvDelaiFermentureStoreStore' -- it's objecting to that Null.

So, the database is not recoverable?

Could try this:

Interesting idea.

Unfortunately, I have one connector.

So, I would like to avoid to swap a problem with another one.

@thebearmay You make my day!

Here what I did

  1. I deleted my connector using the "Devices" page
  2. I go to the status page of "Hub Variable" using the trick

http://hubitat-01.lan/installedapp/status/3

where "hubitat-01.lan" is the local IP address of my hub and "3" the application code ID of "Hub Variable" application

  1. I clicked on "Remove Application" or "Remove Hub Variable". I don't remember the exact name of the red button

  2. Then, go in "Settings--> Hub Variable"

  3. Bingo!

I need to re-do my connector but that was a trivial thing!

In fact, I believe I deserve you a beer! @thebearmay

3 Likes