This report has multiple questions, each numbered.
I could submit them as multiple reports if that is easier for you.
Platform Version: 2.3.2.141
Hardware Version: Rev C-7
Four devices: Aeotec aerQ temp sensor, Aeotec Energy Meter, Honeywell
T6 ZWave thermostat, virtual Thermostat Controller.
My Hubitat started telling me:
http://hubitat.local/alerts
"Your database is at 496m and growing. Try rebooting the hub first. If
that makes no difference, perform a soft reset as soon as possible."
The "soft reset" will erase the database. I don't want to do that.
I read that there is no way to ask Hubitat how much database space I am
using or have left. A reply by bravenel says I have to look at the size
of the backup and compare it with 8GB:
https://community.hubitat.com/t/hub-statistics/18426
bravenel: "As for disk usage, look at the size of your database backup.
How much of 8GB does that represent?"
My daily database backup is only 1.6MB (http://hubitat.local/hub/backup),
and creating and downloading a copy gives the same size (1616048 bytes).
That size doesn't correspond with the alert size of "496m" at all, and
"496m" is not close to 8GB either, so I don't know why I see the alert.
The File Manager says (correctly) that I have no files and "Free Space:
1000 MB". I presume this file space is not shared with the database
space, so I can't use the free space here to know how much database
space I have left.
-
If the database is "496m", then why does it download as 1.6MB?
-
Why am I getting an alert at "496m" if I have 8GB of space?
-
How do I find out how much database space I am using and have left?
As requested, I rebooted the hub. It came back up with:
Corrupt database found
Hub cannot continue. Please try the following actions:
Reboot the hub. Sometimes, a database file is locked but otherwise intact.
If that doesn't help, the hub needs a soft reset and a database restore.
Click here to access diagnostics tool.
- Why did the hub corrupt its own database? I've had no power failures.
So I had to try a soft reset anyway. I started the diagnostics tool,
chose "Soft Reset", typed in "soft reset", pushed the button, and it
said "Error: Request failed with status code 401". HTTP code 401 is
"unauthorized". I tried "Reboot Hub", "Shutodwn Hub", "Enable Safe
Mode", and they all gave code 401. "Download backups" flashes a page
showing no backups then returns to the menu. "Login" changes to "Logout"
when I click it, and then "Logout" changes to "Login" when I click it,
but that's all; there is no login page.
- Why am I getting error code 401 on everything?
I power cycled the hub. Still corrupt.
I tried another soft reset. Still code 401.
I tried another reboot. Still corrupt.
I went to the diagnostics tool, cleared cookies in my browser, and tried
"Login" again. It asked for the MAC address. I entered the MAC address.
Now "Soft Reset" works. I restored from backup. Everything works.
- Why didn't "Login" work, i.e. why did I have to clear cookies to make
the Login work?
This report has six questions. I can create separate reports for each, if
that is easier for you.