supervisor icon indicating copy to clipboard operation
supervisor copied to clipboard

Upload backup fails with "unsupported file format" under Firefox for Windows

Open madbrain76 opened this issue 2 years ago • 24 comments

Describe the issue you are experiencing

I am not able to restore a backup made by HomeAssistant on a new installation.

Clicking “Alternatively you can restore from a previous backup” and selecting a previous tar backup always results in a pop-up stating “Unsupported file format - Please choose a Home Assistant backup file (.tar)”.

Trying to upload a backup under Settings / Systems / Backups leads to the same error.

What is the used version of the Supervisor?

2022.05.1

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

What is the version of your installed operating system?

5.10.108

What version of Home Assistant Core is installed?

2022.5.4

Steps to reproduce the issue

  1. Using HAOS on a Raspberry Pi 3B, I created a backup as follows : Went to Settings / System / Backups Selected “create backup” Waited about a half hour (!) for the backup to be created
  2. Once complete, I clicked the vertical … menu, and “download backup” to get the file onto my Windows PC
  3. On my PC, fired up the Virtualbox VM running HAOS (Linux)
  4. Logged into http://:8123 in my Firefox browser
  5. Clicked “Alternatively you can restore from a previous backup”
  6. Selected the tar backup file I downloaded in step 2
  7. I got a pop-up stating “Unsupported file format - Please choose a Home Assistant backup file (.tar)”.
  8. I then created a dummy account and went to Settings / System / Backups
  9. Using the vertical ... context menu, I clicked "Upload backup" and selected the tar file from step 2
  10. I got the same error as in step 7

Anything in the Supervisor logs that might be useful for us?

N/A

Additional information

I installed the SSH add-on and uploaded the tar backup to HAOS using WinSCP, and was then able to restore it successfully. This proves that the backup file itself wasn't the issue. It looks like there may be a problem with the backup file upload process.

The browsing I'm using is Firefox 100.0 on Windows x64, FYI.

In thread https://community.home-assistant.io/t/moving-haos-to-a-different-hardware-platform/421608/6, other users mentioned that there was a bug in the past related to backup file size. I'm not sure if this is the same problem I'm experiencing here. The tar backup file is 715 MB in size.

madbrain76 avatar May 14 '22 20:05 madbrain76

I have the same Problem, if i upload the tar to the system, restoring is possible.

TBobsin avatar May 15 '22 15:05 TBobsin

I had the same issue using Firefox, I tried the same in chromium and it worked.

Giannuz avatar Jul 05 '22 12:07 Giannuz

Just checked and tested with Chrome 103. Restore does indeed work there. But it does not work under Firefox 102.

madbrain76 avatar Jul 10 '22 23:07 madbrain76

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Sep 09 '22 00:09 github-actions[bot]

This is still a problem as of today's build.

madbrain76 avatar Sep 09 '22 01:09 madbrain76

I had the same issue using Firefox, I tried the same in chromium and it worked.

Worked for me as well by using Chrome

bakeromso avatar Sep 17 '22 16:09 bakeromso

Firefox 104.0.2 (64-Bit) still does not work. Microsoft Edge Version 105.0.1343.42 worked for me.

kaybeebee avatar Sep 18 '22 15:09 kaybeebee

Firefox 104.0.2 (64-Bit) and Home Assistant 2022.9.5 Supervisor 2022.08.6 Operating System 9.0 Frontend 20220907.2 - latest Worked for me. on x86

TBobsin avatar Sep 19 '22 12:09 TBobsin

TBobsin, I just checked, and upload still does not work for me on Firefox 104.0.2 (64-bit) and Home Assistant 2022.9.5 Supervisor 2022.09.1 Operating System 9.0 Frontend 20220907.2 - latest . I'm running HAOS on a Raspberry Pi 3B+ .

madbrain76 avatar Sep 20 '22 01:09 madbrain76

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 20 '22 02:10 github-actions[bot]

Installed HAOS fresh and updated as far as it would let me before trying to restore the backup I'd taken a couple of hours earlier. I found that this is still broken when using Firefox 105.0.3 (64-bit). Chrome works fine.

bexedmondson avatar Oct 23 '22 20:10 bexedmondson

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 22 '22 22:11 github-actions[bot]

Verified that this is still an issue today on HAOS 9.3 in Virtualbox, with Firefox 107.0 (Windows).

madbrain76 avatar Nov 22 '22 22:11 madbrain76

Confirm that this is still an issue, using a fresh install of HA OS 9.3 Raspberry Pi 4, Firefox 107.0.1 on Win10. Error message: "Unsupported file format" Restore works ok with Crome.

CodeMartn avatar Dec 12 '22 21:12 CodeMartn

Still a problem on HassOS 9.4 on a VM install with Firefox 108.0.1

Marx1 avatar Jan 06 '23 22:01 Marx1

Hm I just tried to reproduce using firefox 108 and a dev system on latest. Made the backup, downloaded it, deleted it, re-uploaded it and restored it all without issue. I'm on a Mac so perhaps that's it? I don't have a windows machine available, can anyone reproduce it on a non-windows machine?

mdegat01 avatar Jan 11 '23 20:01 mdegat01

I just tried to reproduce it on Firefox for Linux 108.0.2 and couldn't. It works fine. Looks like the issue is specific to Firefox for Windows.

madbrain76 avatar Jan 13 '23 17:01 madbrain76

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 12 '23 18:02 github-actions[bot]

I can confirm this still happens on Windows with firefox.

Marx1 avatar Feb 19 '23 23:02 Marx1

Still an issue. Exactly the same. Running VirtualBox on Windows using Edge. Tried all sorts of ways.

  • Directly restoring when onboarding
  • First onboard and install samba add-on to transfer backup
  • Onboard and use SSH add-on in combination with WinSCP

When trying to hit restore button of the backup, either nothing happens or connection is lost indefinitely. Restarting VM also doesnt work anymore.

Constant-Vathorst avatar Mar 17 '23 08:03 Constant-Vathorst

I am having the same issue trying to restore from Home Assistant 2023.3.5 Supervisor 2023.03.1 Frontend 20230309.1 - latest to a new VirtualBoxVM on Windows 10 running HA OS 9.5 and HA Core 2023.35. I tried downloading from three browsers. Is there any other way to get to and copy the backup files?

iVolt1 avatar Mar 21 '23 21:03 iVolt1

Issue still present with Firefox Nightly 113.0a1 (2023-03-23) (64-bit). Worked with Edge.

xelemorf avatar Mar 25 '23 00:03 xelemorf

Issue still present with Firefox Nightly 113.0a1 (2023-03-23) (64-bit). Worked with Edge.

Worked for me too. Thanks for the suggestion.

iVolt1 avatar Mar 25 '23 02:03 iVolt1

Most likely related to the service worker issue also observable on backup download (see https://github.com/home-assistant/frontend/issues/7258).

agners avatar Nov 21 '23 10:11 agners