home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.12k stars 2.81k forks source link

"Restore in Progress" Stuck forever when restoring backup with insufficient disk space #22044

Open MaximizeRr opened 2 months ago

MaximizeRr commented 2 months ago

Checklist

Describe the issue you are experiencing

On a fresh install of Home Assistant, attempting to restore a backup from the web UI causes the page to get stuck on "Restore in Progress" indefinitely.

Upon inspecting the network traffic in the browser's developer tools, I noticed that the restore operation fails silently with an HTTP 400 error due to insufficient free space on the device.

HTTP/1.1 400 Bad Request
Date: Fri, 20 Sep 2024 22:18:18 GMT
Server: Python/3.12 aiohttp/3.10.5
Content-Type: application/json
Content-Encoding: deflate
Transfer-Encoding: chunked

{"result":"error","message":"'BackupManager.do_restore_partial' blocked from execution, not enough free space (0.9GB) left on the device"}

Describe the behavior you expected

The restore process should either:

Steps to reproduce the issue

  1. Perform a fresh install of Home Assistant with a limited disk space.
  2. Attempt to restore a backup from the web UI.
  3. Monitor the progress by opening the browser debugger.
  4. The page remains stuck on "Restore in Progress."
  5. Inspect the network requests in the browser debugger and observe an HTTP 400 error.

What version of Home Assistant Core has the issue?

haos_rpi4-64-13.1

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Firefox 130.0.1

Which operating system are you using to run this browser?

Ubuntu

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

lieven121 commented 1 month ago

Hi i had a similar issue but with wrong backup password.

I think a more appropriate title would be
"Restore in Progress" Stuck forever when restoring backup and encountering any error