Backup - not able to restore

My home assistant instance died and had to replace the SSD/SD card. After a fresh install I try to restore my past back-ups but do not succeed at all.
Have done multiple attempts but the backup’s simply do not load.

When I select my backup, type my password and restore the connection gets lost. After a while the system comes back in the same state as before the attempt to restore the backup.

Checking the suppervisor log the following log is seen:
24-02-25 11:18:21 INFO (MainThread) [supervisor.backups.manager] Restore 737c4f35 starting stage docker_config
24-02-25 11:18:21 INFO (MainThread) [supervisor.backups.manager] Restore 737c4f35 starting stage folders
24-02-25 11:18:21 INFO (SyncWorker_2) [supervisor.backups.backup] Restore folder share
24-02-25 11:18:21 WARNING (SyncWorker_2) [supervisor.backups.backup] Can’t restore folder share: not a gzip file
24-02-25 11:18:21 WARNING (MainThread) [supervisor.backups.backup] Can’t restore folder share: Can’t restore folder share: not a gzip file
24-02-25 11:18:21 INFO (SyncWorker_1) [supervisor.backups.backup] Restore folder addons/local
24-02-25 11:18:21 WARNING (SyncWorker_1) [supervisor.backups.backup] Can’t restore folder addons/local: not a gzip file
24-02-25 11:18:21 WARNING (MainThread) [supervisor.backups.backup] Can’t restore folder addons/local: Can’t restore folder addons/local: not a gzip file
24-02-25 11:18:21 INFO (SyncWorker_0) [supervisor.backups.backup] Restore folder ssl
24-02-25 11:18:21 WARNING (SyncWorker_0) [supervisor.backups.backup] Can’t restore folder ssl: not a gzip file
24-02-25 11:18:21 WARNING (MainThread) [supervisor.backups.backup] Can’t restore folder ssl: Can’t restore folder ssl: not a gzip file
24-02-25 11:18:21 INFO (SyncWorker_2) [supervisor.backups.backup] Restore folder media
24-02-25 11:18:21 WARNING (SyncWorker_2) [supervisor.backups.backup] Can’t restore folder media: not a gzip file
24-02-25 11:18:21 WARNING (MainThread) [supervisor.backups.backup] Can’t restore folder media: Can’t restore folder media: not a gzip file
24-02-25 11:18:21 INFO (MainThread) [supervisor.backups.manager] Restore 737c4f35 starting stage home_assistant
24-02-25 11:18:22 ERROR (MainThread) [supervisor.homeassistant.module] Can’t read tarfile <securetar.SecureTarFile object at 0x7f804ccf80>: not a gzip file
24-02-25 11:18:22 ERROR (MainThread) [supervisor.backups.manager] Restore 737c4f35 error
Traceback (most recent call last):
File “/usr/src/supervisor/supervisor/homeassistant/module.py”, line 421, in restore
await self.sys_run_in_executor(_extract_tarfile)
File “/usr/local/lib/python3.12/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/supervisor/supervisor/homeassistant/module.py”, line 413, in _extract_tarfile
with tar_file as backup:
File “/usr/local/lib/python3.12/site-packages/securetar/init.py”, line 129, in enter
self._tar = tarfile.open(
^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/tarfile.py”, line 1833, in open
stream = _Stream(name, filemode, comptype, fileobj, bufsize,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/tarfile.py”, line 377, in init
self._init_read_gz()
File “/usr/local/lib/python3.12/tarfile.py”, line 484, in _init_read_gz
raise ReadError(“not a gzip file”)
tarfile.ReadError: not a gzip file
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/src/supervisor/supervisor/backups/manager.py”, line 427, in _do_restore
task_hass = await backup.restore_homeassistant()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/supervisor/supervisor/jobs/decorator.py”, line 311, in wrapper
raise err
File “/usr/src/supervisor/supervisor/jobs/decorator.py”, line 303, in wrapper
return await self._method(obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/supervisor/supervisor/backups/backup.py”, line 736, in restore_homeassistant
await self.sys_homeassistant.restore(
File “/usr/src/supervisor/supervisor/jobs/decorator.py”, line 311, in wrapper
raise err
File “/usr/src/supervisor/supervisor/jobs/decorator.py”, line 303, in wrapper
return await self._method(obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/supervisor/supervisor/homeassistant/module.py”, line 423, in restore
raise HomeAssistantError(
supervisor.exceptions.HomeAssistantError: Can’t read tarfile <securetar.SecureTarFile object at 0x7f804ccf80>: not a gzip file
24-02-25 11:18:22 INFO (MainThread) [supervisor.backups.manager] Restore 737c4f35 starting stage check_home_assistant
24-02-25 11:18:22 INFO (SyncWorker_2) [supervisor.docker.manager] Starting homeassistant

Any help possible? I try this all from the frontend; not very experienced on the raspberry PI 3B+ console itself.
Thanks.

Looks like your backup may be corrupt. Can you open it with 7zip (free)?

With 7ZIP I can open the archive; but also gives an error when after unzip I try to open homeassistant.tar.gz.

Got an older backup you can try?

Oldest I have, has the same issue. Need to restart from scratch it seems.

Did you password protect your backups?

not that I am aware off, used the google drive backup option.
It does ask for a password upon restore, used my homeassistant password as input.

That’s your problem. You did password protect it. Search the forum. There is a script to extract password protected backups.

EDIT: here, Get files from password protected snapshot? - #16 by Burningstone