Solve a 'hanging' backup job by cancel or forced restart of HA #3233
Unanswered
randyxxl
asked this question in
Home Assistant OS & Supervisor
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature
While a backup is 'running' a restart of HA is postponed until that backup is finished.
When the backup jobs hangs you don't have an easy, 'user friendly way' to restart HA and get full control over HA again.
I propose an option to either cancel a running backup or do a forced restart of HA in these situations.
Maybe both options are worth being considered.
Both options might be added with an extra button in the respective screens and warnings that data loss or file corruption is a possibility.
Also a kind of sanity check on the duration of a backup job seems appropriate.
Use cases
Because of some major maintenance on and reconfiguration of my network (both on router and web server) the Pi running HA somehow got stuck at a backup job. My HA instance stores backups both local disk and a NAS. It was presumably this connection to the NAS that got lost.
During the time the backup was 'running' HA was seemingly functioning normal, e.g. lights turned on and off on demand, but no statistical data was being stored. My HA instance lost a considerable amount of data during the approximately 24 h before I discovered that the sensor history was not available.
Current workarounds
Open the terminal (when installed) and enter
reboot now(+Enter).Or simply unplug and re-plug the power supply.
Not very elegant solutions and possible a risky operations because of the possibility of ending up with corrupt files. It will at least give back control over your HA and start logging of sensor data once HA has restarted properly.
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions