shutdown/restart Homeassistant recorder/sqlite #294
Labels
No Label
Bug
Bump/Update
Cleanup
Dupe
Enhancement
File Collision
Forked
help wanted
Integration: accuweather
Integration: airzone_cloud
Integration: anel_pwrctrl
Integration: august
Integration: blink
Integration: bluetooth
Integration: bmw_connected_drive
Integration: bosch_shc
Integration: cast
Integration: comelit
Integration: dsmr
Integration: enphase_envoy
Integration: esphome
Integration: frontend
Integration: google
Integration: honeywell
Integration: ld2410_ble
Integration: led_ble
Integration: local_calendar
Integration: local_todo
Integration: lupusec
Integration: matter
Integration: netatmo
Integration: nextbus
Integration: opower
Integration: overkiz
Integration: private_ble_device
Integration: rainbird
Integration: reolink
Integration: smarttub
Integration: subaru
Integration: tolo
Integration: unifi
Integration: unifiprotect
Integration: velbus
Integration: waqi
Integration: workday
Integration: yalexs_ble
Integration: zwave_js
invalid
New Integration
Python 3.10
Python 3.11
question
requirement
Requirement vanished
slot-conflict
Source Incomplete
SrcDir ${S} mismatch
TopLevelViolation
Update required
virtual
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: onkelbeh/HomeAssistantRepository#294
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Is there a way to shutdown or restart the Homeassistance instance without start-stop-daemon? Restarting the instance in the frontend (Developer Tools/Restart) leads to a crashed openrc daemon.
Linked to this issue is the error logged by recorder
To prevent this error I had to modify the init script to set a recorder end time in the sqlite database (vacuum is only for compression).
Looks like #260, never had a problem like that because my recorder writes to a mariadb. We could take it into the regular init controlled by a UseFlag.
Also mentioned in https://github.com/home-assistant/core/issues/73679
Again I would recommend to use MariaDB.
My sqlite database grows more or less 3MB per week after sqlite/vakuum. Because my Mysql databases are on an encrypted volume and not available after a power loss I`ll stay with sqlite for the moment.