HAOS request help - fails (never completes) loading created Backups

TLDR: HAOS stuck endlessly with “Loading Backups. This can take a few seconds” - how to fix?

Context:
We have had a number of power failures recently, may have caused a corruption.
I have HAOS installed, fully updated as of today 2024-12-08. System otherwise appears working. Regular Backups are made and save to both NAS via Saba and Google Drive - this is working and Backups can be seen.

Issue: I wish to restore HA from an earlier Backup. Under Settings, System, I can see “last backup 4 hours ago”. BUT selecting ‘Backups’ only results in a never ending message “Loading Backups. This can take a few seconds” with rotating icon showing its busy - this never completes, as a result I appeared to be stuck unable to access or restore any backups. I have rebooted, started HA in safe mode without success.

Id greatly appreciate any guidance on how what / how I may do to correct this - a last resort I’m guessing is to reinstall fresh HAOS and restore from there, that bypasses the issue so id like to try diagnose / fix the issue (and learn from the process) if possible.
thanks in anticipation

1 Like

Same issue here. I noticed it after upgrading to Core.2024.12.1 and noticing a new error with my Reolink Integration. I eventually saw the following 2 errors in the Core log file:

Timeout on /backups/reload request
Failed to to call /backups/reload -

Rather than restoring from backup I ended up reverting Core back to 2024.11.3 by running the following command in the HA Terminal window:

ha core update --version=2024.11.3

You should be able to restore your backup by performing the following commands in a Terminal window:

ha backups list>backups.log
nano backups.log

Look in the backups.log file for the backup you want to restore and locate the slug name for that backup. Then use the following command to initiate the restore:

ha backups restore <slugname>

Same problem here, latest hassos on rpi3b+ with samba share as backup storage.

Thank you so much for replying and taking time to explain how I may be able to resolve this - I am briefly away from home but will try upon return.
greatly appreciated.
cheers

Just by way of feedback I have not resolved this yet.

  • ‘ha backups list>backups.log’ in terminal does not produce any output.
  • ‘nano backups.log’ does list two (not most recent) backups on my NAS. I’m out of my depth atm to be able delve any further on this listing. example of first nano log listing suggests (to me) its seeing a least this backup - but I don’t know what I can do with that info?
    backups:
  • compressed: true
    content:
    addons:
    • core_mosquitto
    • a0d7b954_vscode
    • core_samba
    • cebe7a76_hassio_google_drive_backup
    • core_whisper
    • core_piper
    • a0d7b954_influxdb
    • core_mariadb
    • a0d7b954_ssh
    • a0d7b954_aircast
    • a0d7b954_logviewer
    • a0d7b954_tailscale
    • 8bce8ef4_dbstats
    • core_openwakeword
      folders:
    • share
    • addons/local
    • ssl
    • media
      homeassistant: true
      date: “2024-11-28T16:30:00.559407+00:00”
      location: Backup_nas
      name: '2024-11-29 03:30:00 PLASH HA Full Backup ’
      protected: false
      size: 2020.9
      slug: 38cdd115
      type: full

The > symbol is a redirect, it sends the output of the preceding command to an output file instead of to the screen, in this case: backups.log. I did that because I have MANY backups and just listing them all with the command ha backups list caused it to scroll off the screen and make it difficult to read.

The output from that command shows that one of your 2 backups was created on 2024-11-28 at 16:30 and named '2024-11-29 03:30:00 PLASH HA Full Backup ’. It is located on Backup_nas and has a slug name of 38cdd115. So if you want to restore your entire HA instance to that particular Full backup you would run the following command:

ha backups restore 38cdd115

Since it’s a full backup, including your influxdb and mariadb, it will put your HA back exactly as it was when that backup occurred.

Edit: If you have other, more current backups, I’m not sure why they aren’t showing up from that ha backups list command. Try running it without adding the >backups.log part to see if more are listed. If you can find more current backups located elsewhere, you might try manually copying them to the same Backup_nas location and then repeat the process to see if they show up and restore the most recent, good backup.

I have the same issue.
image

Hi mightybosstone
I just wanted to reach out and say thank-you for taking the time to reply and advise on the Backup problem I was having - I definitely benefitted from your guidance & was able to now recently from an earlier full backup which is up and running and the corruption / change in HA that was preventing seeing or restoring from backup normally from HA is back working.
Overall Im glad I went through this - nothing like testing backups by doing a full restore to find all the quirks of so doing (Database history lost etc - which I expected) and the sheer number of entities, automations and scripts etc that break as a result (of changes over time). I did restore separately backups of all user created code (automations, etc) which I do regularly backup as well so that worked well. Figured out how to restore (from recent backup) my dashboards - eventually, although had to recreate all categories for Automations, Scripts etc as ‘restoring’ those from HA raw entities store looked too risky and tedious.
In summary its working, I learned a lot and was initially completely unaware how to proceed without your suggested approach - again thankyou.
cheers